Search
Home IIS.NET Forums General IIS Feature Feedback BUG: Changing the Log File Directory in IIS 8 with PowerShell
Last post Nov 15, 2012 08:22 AM by Perkinsville
2 Posts
Oct 19, 2012 01:58 PM|LINK
logging logfile iis 8 directory powershell bug
109 Posts
Nov 15, 2012 08:22 AM|LINK
Hi,
Have you tried using the get-webconfiguration and/or set-webconfigurationproperty cmdlets instead?
HTH, Ben
Tumerkan Tek...
2 Posts
BUG: Changing the Log File Directory in IIS 8 with PowerShell
Oct 19, 2012 01:58 PM|LINK
PS C:\Users\administrator> Set-ItemProperty IIS:\Sites\domain.com -Name LogFile.Directory -Value D:\WebSites\domain.com
PS C:\Users\administrator> Get-ItemProperty IIS:\Sites\domain.com -Name LogFile.directory
After these commands, log file directory is still same and no error!
PS C:\Users\administrator> Set-ItemProperty IIS:\Sites\domain.com -Name LogFile.directory -Value D:\WebSites\domain.com
PS C:\Users\administrator> Get-ItemProperty IIS:\Sites\domain.com -Name LogFile.directory
Now, log file directory has been changed.
logging logfile iis 8 directory powershell bug
Perkinsville
109 Posts
Re: BUG: Changing the Log File Directory in IIS 8 with PowerShell
Nov 15, 2012 08:22 AM|LINK
Hi,
Have you tried using the get-webconfiguration and/or set-webconfigurationproperty cmdlets instead?
HTH, Ben