• Status: Solved
  • Priority: Low
  • Security: Public
  • Views: 72
  • Last Modified:

PowerShell Question

I would like to unlock, user logon name, AAAAA

what command line should I use
PS C:\> Unlock-ADAccount -Identity AAAAA
0
Hiroyuki Tamura
Asked:
Hiroyuki Tamura
4 Solutions
 
Jason CrawfordTransport NinjaCommented:
0
 
Jose Gabriel Ortega CCEO J0rt3g4 Consulting ServicesCommented:
import-module activedirectory
Unlock-ADAccount -Identity Username

Open in new window

0
 
Hiroyuki TamuraField EngineerAuthor Commented:
Snap3784.pngthis means i dont have right?
0
Making Bulk Changes to Active Directory

Watch this video to see how easy it is to make mass changes to Active Directory from an external text file without using complicated scripts.

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

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

0
 
Hiroyuki TamuraField EngineerAuthor Commented:
Thank you
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Creating Active Directory Users from a Text File

If your organization has a need to mass-create AD user accounts, watch this video to see how its done without the need for scripting or other unnecessary complexities.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now