Solved

Remotely Scan and Set Local Account Password Required.

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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

5 Tips For Long Jumpers: A Sprinter's Approach to Agile Software Development As a Sprinter, long jumping — applying momentum to progress by leaps and bounds — is a natural and complementary skill. In the following article, I will share my five ti…
You can provide a virtual interface for remote stakeholders in a SWOT analysis through a Google Drawing template. By making real time viewing and collaboration possible, your team can build a stronger product.
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…

828 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