Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Remotely Scan and Set Local Account Password Required.

Posted on 2009-05-19
4
Medium Priority
?
782 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 80 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

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

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

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…
It was Monday morning and while heading to work those familiar feelings of frustration began to rise: How was I ever going to get my yard work done?! At the end of every weekend I discovered that I spent more time trying to decide what to work on th…
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…
Starting up a Project

885 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