Solved

Remotely Scan and Set Local Account Password Required.

Posted on 2009-05-19
4
776 Views
Last Modified: 2013-11-25
Need a script to scan domain computers who have local accounts that do not have password required and then set password required.
Don't know if I can do this automatically or not.

I want to make sure that all accounts on local computers have passwords even the ones that I don't know to ensure no one has added a local account without password.
0
Comment
Question by:tspotwi
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 6

Assisted Solution

by:drewha1969
drewha1969 earned 20 total points
ID: 24424309
You can create a GPO to enforce password length and complexity requirements, although I am not sure you can make one to automatically make existing accounts to create a password.

0
 

Accepted Solution

by:
tspotwi earned 0 total points
ID: 24424403
Do you know of a way to script a batch file to scan a domain for computers with local accounts that don't have a password, then use the Net User <username> /passwordreq:yes substituting <username> with the names in that list? Here's what I thought would work, but didn't...

Set objOU = GetObject("LDAP://OU=XXXX, DC=XXXX, DC=XXXX, DC=XXXX, DC=XXX")
objOUI.Filter = Array("Computer")
For Each objItem in objOU
           strComputer = objItem.CN
           Set objUser = GetObject("WinNT://" & str Computer & "/<username>")
           Net user <username> /passwordreq:yes
Next

The X's in one line is for OU and DC
0
 

Author Comment

by:tspotwi
ID: 24475607
No solution found.
0
 
LVL 6

Expert Comment

by:drewha1969
ID: 24476678
Sorry I couldnt help you out.  Good luck!
0

Featured Post

MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Documentation is a big contentious issue in Agile. There is a reason for this. When you start your presentation on Agile you start by going through the 4 statements of agile manifesto (https://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&…
"Disruption" is the most feared word for C-level executives these days. They agonize over their industry being disturbed by another player - most likely by startups.
Progress
Introduction to Processes

632 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question