I have added a "SearchingUser" user to administrators group of a remote server "RemoteServer". I am trying to verify the user is added to the server using WMIC and this is the command:
wmic /node:RemoteServer useraccount where "name='SearchingUser' and Domain='domainNameHere'" list
I am sure the user is added but the query result is:
"No Instance(s) Available"
How can I find if the user is added to specified group thru WMI
Thanks
There are some syntax requirements that may fool the request.
If I do not use the full domain name between quotes sais "The rcp server is unavailable"
for me worked:
By the way, if not asking to the Domain Server it will return "Not instance(s) available"
Best Regards
Your syntax seems correct but what are you using for the value of
Domain
? Is the user a local or domain user? Assuming it's a local user, the value ofDomain
needs to be the computer's hostname.