Skip to main content
Question

Orchestrator Problem with Powershell Command "Set-ADUser"

  • 10 June 2024
  • 5 replies
  • 64 views

Hello everyone

I have problem with the PowerShell command ‘set-Aduser’. I always get the following error:

~ + CategoryInfo : ResourceUnavailable: (ext-Wini.stoni:ADAccount) nset-Aduser], ADServerDownE xception + FullyQualifiedErrorId : ActiveDirectoryServer:0,Microsoft.ActiveDirectory.Management.Commands.SetADAccountExpira tion Get-ADUser : Unable to contact the server. This may be because this server does not exist, it is currently down,

 

Can anyone help me please?  Is “set-Aduser” not supported? 

 

Thank you in advance

Andy

 

P.S.

Some simple PowerShell commands are working, like  “New-Item -Path 'c:\temp\Test Folder' -ItemType Directory”

5 replies

Badge +3

a stupid question here, does your script run on the server where AD is located?Or Does the Script itself specify the location of the AD?

Badge

Hello

The script is running on a member Server, AD Admin Tools are installed.

Should the script running directly on a DC?

 

 

 

 

 

Badge +3

What I meant was if your Set-ADUser has the parameter targetting specific domain.

Example:
Set-ADUser -Identity “test.user” -Server DCTEST -Surname “Testing”

I believe you need to use the -Server parameter to target the specific domain if you are not running the script on the machine where AD is located
Set-ADUser (ActiveDirectory) | Microsoft Learn
 

 

Badge

ok … no, I have not added the parameter.

Will try it t the next few days and let you know.

Thanks a lot

Andy

 

Badge

It doesn’t work, strange, here the Error 

Allways the same error

When I start the PowerShell command on the server directly, it is working

 

 

Reply