Solved

Remotely Scan and Set Local Account Password Required.

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Transparency shows that a company is the kind of business that it wants people to think it is.
When we talk about DevOps toolchains, I sometimes wonder how many people really get what we’re talking about. I don’t know if it’s just semantics or tone or something else, but sometimes I think it just sounds like buzzword sausage. So it’s always …
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
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…

867 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

22 Experts available now in Live!

Get 1:1 Help Now