sqlagent007
asked on
Powershell - windows 2008 r2 - how to change IIS [application user (pass-through authentication)
I need to create a powershell script that changes the IIS setting: "authentication" > "connect as" > "specific user" > "set" > to domain\service_account.
See attached for location
How-can-I-change-the-IIS-7-w-powersh.pdf
See attached for location
How-can-I-change-the-IIS-7-w-powersh.pdf
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
what do I do when I get an error: " The Windows PowerShell snap-in 'WebAdministration' is not installed on this machine."
pssnapin-webAdministration-error.tiff
pssnapin-webAdministration-error.tiff
ASKER
For both solutions, I am getting this error:
The term 'Get-WebConfiguration' is not recognized as the name of a cmdlet, function, script file, or operable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:21
+ Get-WebConfiguration <<<<
+ CategoryInfo : ObjectNotFound: (Get-WebConfiguration:Stri ng) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
The term 'Get-WebConfiguration' is not recognized as the name of a cmdlet, function, script file, or operable program.
The term 'Get-WebConfiguration' is not recognized as the name of a cmdlet, function, script file, or operable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:21
+ Get-WebConfiguration <<<<
+ CategoryInfo : ObjectNotFound: (Get-WebConfiguration:Stri
+ FullyQualifiedErrorId : CommandNotFoundException
ASKER
To me it looks like the "WebAdministration" module is installed...When I run Get-Module -ListAvailable
PS C:\Windows\system32> Get-Module -ListAvailable
ModuleType Name ExportedCommands
---------- ---- ----------------
Manifest ActiveDirectory {}
Manifest ADRMS {}
Manifest AppLocker {}
Manifest BestPractices {}
Manifest BitsTransfer {}
Manifest PSDiagnostics {}
Manifest ServerManager {}
Manifest TroubleshootingPack {}
Manifest WebAdministration {}
Are you running Powershell as admin?
ASKER
Thanks, I needed to close the PS terminal and re-open it. Then I was able to bring in the WebAdministration module.
Open in new window
Then run this:
Open in new window