I am receiving an access denied error when attempting to use the following to query a service on a Windows 2012 server:
get-wmiobject -Class Win32_Service -comp 192.168.60.23 -cred lab\test -filter "name='tapisrv'"
If I use an account that is a domain admin for the -cred parameter, then of course everything works fine. However, using the test account I can't seem to make it work. Here are the things I have tried so far:
- Added test account to WinRMRemoteWMIUsers__ and Distributed COM users group
- Ensured Distributed COM group is added in dcomcnfg ->Component Services -> My Computer -> properties ->COM Security ->Launch and Activate Permissions
- Added test account to WMIMGMT.msc -> WMI Control -> Properties -> Security -> Root -> Security
Most of the troubleshooting steps have come from here:
Only way I can seem to get the test user to work is make him a local admin, which I do not want to do. Is there any configuration I am overlooking in order to make this work?
Thanks