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.
– Felipe