Jump to content

Windows Powershell and WMI access to IIS application pools


Recommended Posts

Guest theonesuperdave
Posted

I was wondering if anyone knows how to use WMI and powershell to access

application pools on a remote machine? I have tried different variation of

the following command:

 

PS C:\Scripts> gwmi -class IIsApplicationPool -namespace

"root\MicrosoftIISv2" -

computer [servername] -credential [servername]\testaccount

 

Each time, the command returns with, "Get-WmiObject : Access denied." I have

tried both local and domain accounts for the credentials. Also, I have tried

things in other posts for setting the Authentication level to PacketPrivacy,

and none of this seems to get me around the access error. I have also

verified that I have admin access to the remote server and I can perform view

and manage the application pools locally using the IIS Admin GUI.

 

--Dave

  • Replies 0
  • Created
  • Last Reply

Popular Days

Popular Days


×
×
  • Create New...