Guest theonesuperdave Posted January 8, 2008 Posted January 8, 2008 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
Recommended Posts