PowerShell Question

I would like to unlock, user logon name, AAAAA

what command line should I use
PS C:\> Unlock-ADAccount -Identity AAAAA
Hiroyuki TamuraField EngineerAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Jason CrawfordTransport NinjaCommented:
Jose Gabriel Ortega CastroCEOCommented:
import-module activedirectory
Unlock-ADAccount -Identity Username

Open in new window

Hiroyuki TamuraField EngineerAuthor Commented:
Snap3784.pngthis means i dont have right?
Defend Against the Q2 Top Security Threats

Were you aware that overall malware worldwide was down a surprising 42% from Q1'18? Every quarter, the WatchGuard Threat Lab releases an Internet Security Report that analyzes the top threat trends impacting companies worldwide. Learn more by viewing our on-demand webinar today!

Search for AD or Active Directory

You have inserted a colon as a parameter. The error says "A positional parameter cannot be found that accepts the argument ':'". So remove the colon.

Search-ADAccount -LockedOut

Open in new window

You get get the list of parameters and examples from help or refer here.

Get-Help Search-ADAccount -Full

Open in new window


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Hiroyuki TamuraField EngineerAuthor Commented:
Thank you
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.