Solved

Remotely Scan and Set Local Account Password Required.

Posted on 2009-05-19
4
771 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
  • 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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Cobalt Digital Marketing began using the Scrum Framework development process in summer 2009.  We hired a consultant to train the teams, observe meetings, and answer questions. He recommended that we begin using one-week sprints for several reason…
Communication between departments might not happen in two different languages, but they do exist in two different worlds. With different targets and performance goals the same phrase often means something completely different to each party. Learn ho…
This video discusses moving either the default database or any database to a new volume.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

707 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now