powershell script to create AD user
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-04-2018 05:18 AM
Hi Guys,
I have used the following powershell command to create AD user:
New-ADUser -Name "XXX" -GivenName xxx -Surname xxx -SamAccountName XXXXXXX -UserPrincipalName xxxx@example.com -path "OU=XYZ, DC=example, DC=com"
But when running this script i am getting followinf error message:
"errorMessages": "The term 'New-ADUser' is not recognized as the name of a cmdlet, function, script file, or operable program.
So can someone please suggest on this.
Thanks,
Sri
5 REPLIES 5
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-04-2018 07:00 AM
++when i am trying to create manually its working fine in AD.