Wednesday, October 03, 2012 9:51 AM
I would like to know if the following syntax is correct and sufficient in order to check if WMI access has been enabled on my Windows Server 2008 R2 (hosted somewhere in Europe, or should I say not in the same domain?).
wmic /node:myserver.com /user:wmi_user /password:123456 systemenclosure get serialnumber
I have tried the above command from my home laptop however it gives "The RPC server is unavailable" error.
What I have done so far:
1. Enabled WMI traffic on the firewall using the following command:
netsh advfirewall firewall set rule group="windows management instrumentation (wmi)" new enable=yes
netsh firewall set service RemoteAdmin enable (<== is this needed as well?)
2. CIMOM settings
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WBEM\CIMOM\AllowAnonymousCallback change the value from 0 to 1.
3. UAC settings
I have adjusted the UAC for wmi_user to never notify.
4. DCOM settings
I've read on one article which mentions if the user is in the administrator group, there is no need to change this setting. Is this correct ?
Looking forward for some answers.
- Moved by Cheers ZHANGMicrosoft Contingent Staff, Moderator Friday, October 05, 2012 8:48 AM (From:General)
Friday, October 05, 2012 8:49 AMModerator
You can ask in Script guy forum to let them check your syntax.
The Official Scripting Guys Forum!
- Marked As Answer by Cheers ZHANGMicrosoft Contingent Staff, Moderator Thursday, October 11, 2012 9:26 AM