ICACLS IIS AppPool\DefaultAppPool = invalid parameter
You need to wrap the whole of the grant argument in quotes:
icacls c:\inetpub\wwwroot\ /grant "IIS AppPool\DefaultAppPool:F"
You need to wrap the whole of the grant argument in quotes:
icacls c:\inetpub\wwwroot\ /grant "IIS AppPool\DefaultAppPool:F"