Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $webConfig = "C:\temp\applaunch.exe.config"
- $xml = [xml] (Get-Content $webConfig)
- $systemNet = $xml.configuration.configSections.sectionGroup | Where-Object {$_.name -eq "system.net"}
- ($systemNet.section | Where-Object {$_.name -eq "authenticationModules"}).type = "Just a test 2"
- $xml.Save($webConfig)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement