I need to generate a report that shows the guest account is disabled for a given list of computers.
How can I use net user, powershell, or any other commonly used tool for this purpose?
|
I need to generate a report that shows the guest account is disabled for a given list of computers. How can I use |
|||
|
|
|
Here's a little PowerShell function to check for this.
If you have a list of computers in a text file separated by line breaks, you could do something like
|
|||||||||||
|
|
PowerShell is probably the easiest way:
Using
|
|||||||||||||
|
|
A Powershell script with something like this should do the trick:
This will read in a list of server names from a text file, and loop through them displaying an entry for each disabled guest account. If you take out |
|||||||
|