forked from dsccommunity/WebAdministrationDsc
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
xWebSite: Revert back to Set-ItemProperty for LogFlags (dsccommunity#560
) - xWebsite - Fix an issue where changes to LogFlags would fail to apply. Set LogFlags using Set-ItemProperty to fix error when updating flags.
- Loading branch information
1 parent
bbc6aea
commit 0d012cb
Showing
9 changed files
with
174 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
source/Examples/Resources/xIisLogging/Sample_xIisLogging_LogFlags.ps1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
configuration Sample_xIisLogging_LogFlags | ||
{ | ||
param | ||
( | ||
# Target nodes to apply the configuration | ||
[String[]] $NodeName = 'localhost' | ||
) | ||
|
||
# Import the module that defines custom resources | ||
Import-DscResource -Module xWebAdministration | ||
|
||
Node $NodeName | ||
{ | ||
xIisLogging Logging | ||
{ | ||
LogPath = 'C:\IISLogFiles' | ||
Logflags = @('Date', 'Time', 'ClientIP', 'ServerIP', 'UserAgent') | ||
LogFormat = 'W3C' | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters