PowerShell Question

Hiroyuki Tamura
Hiroyuki Tamura used Ask the Experts™
on
I would like to unlock, user logon name, AAAAA

what command line should I use
PS C:\> Unlock-ADAccount -Identity AAAAA
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Jose Gabriel Ortega CastroTop Rated Freelancer on MS Technologies
Awarded 2018
Distinguished Expert 2018
Commented:
import-module activedirectory
Unlock-ADAccount -Identity Username

Open in new window

Hiroyuki TamuraField Engineer

Author

Commented:
Snap3784.pngthis means i dont have right?
Python 3 Fundamentals

This course will teach participants about installing and configuring Python, syntax, importing, statements, types, strings, booleans, files, lists, tuples, comprehensions, functions, and classes.

Commented:
find-module  
Search for AD or Active Directory
install-module

verify
get-module
import-module
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

Hiroyuki TamuraField Engineer

Author

Commented:
Thank you

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial