Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

Assciators of users in Powershell

$
0
0

Hi,

I am using the following to know the groups of the user using powershell.

Associators of {Win32_UserAccount.Name='$username',Domain='$domainname'} WHERE AssocClass=Win32_GroupUser

On some windows 2008 machines it passes and on some it fails.

If someone could shed light as to why it timesout/fails, it would be great.

Also is there any logging provided by Windows machines by default where why these powershell queries fail or behave ?

Thanks

Randeep


Viewing all articles
Browse latest Browse all 15028

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>