Link to home
Start Free TrialLog in
Avatar of Jerry Seinfield
Jerry SeinfieldFlag for United States of America

asked on

locked account users, powershell review

Hi Experts,

I did recently downloaded a powershell script from the script MS page, however the script it does not or I missing some parameters.

I am in powershell calling the script as they suggest in the link below, but it just comes right back to the powershell prompt.  No error no nothing.  I have a feeling something is not where it is supposed to be.

I did create the following folders as per indicated on the script

C:\PS\AccountLockout\Tools
C:\PS\AccountLockout\Logs

I did download the tools exactly as the link states, but can you please indicate where should I enter my domain controllers on the script? I have 10 DCs that need to enter on the code.

I did also setup the execution policy in powershell to unrestricted, and Remotesigned, with no luck

By the way, I also imported the AD powershell module


Any ideas where to update the domain controllers on the script to use my new 10 DCs and then run the script?

http://gallery.technet.microsoft.com/scriptcenter/83f9132f-e508-4ee8-941f-45c2b602bfea/view/Discussions#content
ASKER CERTIFIED SOLUTION
Avatar of footech
footech
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Jerry Seinfield

ASKER

Thanks fotech,

Could you please re-writte the script and enter 10 generic DCs names?

Perhaps something like below

MIADC001
MIADC002
NYCDC001
NYCDC002
.......
Can I please get an update ?
Good Morning Footech

How is the script going so far?

Have you had a chance to modify the script and add new updates?
Frankly that goes against what I believe the purpose of the PowerShell topic area should be.  It should be for helping others with specific questions about PowerShell, understanding nuances, suggestions for optimization, assistance when stuck on how to code for a particular problem, etc.; and not for providing complete scripts for people (or as I like to call it, a "free scripting service").  I'll admit that that line is crossed from time to time, but I try to avoid it.

The Get-AccountLockout script relies on another, which relies on two others.  It's a mess and I don't think I have want to devote all the time to clean it all up.  If you want to attempt it yourself and get stuck at specific points, feel free to open new questions.  Best of luck.
no comments