Creating Active Directory users using Forms

Asked

Viewed 84 times

1

I am creating a form for a user to be created in AD with the fields concerned, but right now you are giving me the following error:

New-Aduser : The server is not available to process the request
At D: Scripts Createusersad Createuserad_v2.ps1:191 char:5
+ New-Aduser $name -Otherattributes @{
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ Categoryinfo : Notspecified: (CN=8888,CN=User...MIN- SAUDE,DC=PT:String) [New-Aduser], Adexception
+ Fullyqualifiederrorid : The server is not available to process the request, Microsoft.ActiveDirectory.Management.Commands.Newaduser

Does anyone have any suggestions?

  • https://docs.microsoft.com/pt-br/powershell/scripting/Creating-a-Custom-Input-Box?view=powershell-6 This article shows you how to input data via form into the powershell if that’s what you’re looking for.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.