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

How to check if a specific list of user accounts are disabled in AD, using powershell v2.0 or CMD

$
0
0

Hi guys, I have a list of user accounts in txt format.

I need to check every user by the sAMAccountName and determine if their account is disabled or not.

The catch is that I cannot use a powershell version higher than 2.0, also the Active Directory module is not installed on the DC in question. 

Can anyone help me to accomplish this from CMD or VBSCRIPT / Powershell v2.0?

Much appreciated.


Viewing all articles
Browse latest Browse all 15028

Latest Images

Trending Articles



Latest Images

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