If the above response helps answer your question, remember to "Accept Answer" so that others in the community facing similar issues can easily find the solution. Your contribution is highly appreciated.
hth
Marcin
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hi!
I've been trying to get gwmi and Get-WmiObject to work. But it won't budge.
For some reason, using command "gwmi win32_service -Credential [domain]\login] -computer [ip]" gives me HRESULT: 0x80070005 (E_ACCESSDENIED).
I have tested the same command from non-domain PC, where I didn't configure WMI at all, works fine.
I've scouted politics, no PS or WMI restrictions.
Tested from same domain\user.
Here how it looks right now (blue - domain, green - WMI success, red - WMI fail):
If the above response helps answer your question, remember to "Accept Answer" so that others in the community facing similar issues can easily find the solution. Your contribution is highly appreciated.
hth
Marcin
Didn't help.
But TSS script revealed that update needed, although, how access and updates connected. : |
Anyway, after updating it started to work!
Hi AV,
Thanks for your post. Can I know if you are running the script "as administrator" (UAC)? When your credentials are calculated for your local instance if you have UAC enabled and you didn't run it "as administrator" it removes the local administrator security token. Connecting to a different machine over the network, A) it completely bypasses UAC, and B) when the target evaluates your token, the group memberships you're in are fully evaluated and thus you get "administrator" access.
Best Regards,
Ian Xue
If the Answer is helpful, please click "Accept Answer" and upvote it.