microsoft / iis-docker

Dockerfile for IIS
https://hub.docker.com/r/microsoft/iis/
MIT License
288 stars 128 forks source link

Unable to use IIS: drive in powershell #202

Closed ryandailey21 closed 5 months ago

ryandailey21 commented 1 year ago

I get the follow error after running a command to change the physical path of the IIS site

PS C:\ASPApp> Get-IISSite

Name ID State Physical Path Bindings


Default Web Site 1 Started %SystemDrive%\inetpub\wwwroot http *:80:

PS C:\ASPApp> Get-IISSite Set-ItemProperty IIS:\Sites\sitea -name physicalPath -value %SystemDrive%\inetpub\wwwroot\test Get-IISSite : A positional parameter cannot be found that accepts argument 'Set-ItemProperty'. At line:1 char:1