Set Attribute in Active Directory

Chris 656 Reputation points
2022-10-17T16:43:51.137+00:00

hello all,

is it posible to change a Attribute in Active Directory with Powershell ?

251193-dfsr.png

Windows for business Windows Server User experience PowerShell
0 comments No comments
{count} votes

Accepted answer
  1. Rich Matheisen 47,901 Reputation points
    2022-10-17T18:43:02.507+00:00

    I don't think you can use a cmdlet to do this, but you can use ADSI.

    The msDFSR-Enabled property should be found on this distinguishedName: CN=SYSVOL Subscription,CN=Domain System Volume,CN=DFSR-LocalSettings,CN=<the server name>,OU=Domain Controllers,DC=<domain>

    0 comments No comments

2 additional answers

Sort by: Most helpful
  1. Dillon Silzer 57,826 Reputation points Volunteer Moderator
    2022-10-17T17:04:48.283+00:00

    Hi @Chris

    Please see the following about the Set-ADUser command in PowerShell:

    https://lazyadmin.nl/powershell/set-aduser/

    https://learn.microsoft.com/en-us/powershell/module/activedirectory/set-aduser?view=windowsserver2022-ps

    -----------------------------------

    If this is helpful please accept answer.

    0 comments No comments

  2. Chris 656 Reputation points
    2022-10-17T17:10:40.83+00:00

    thanks Dillon,

    It's an Configuration Object from Domain Controller. I can't set it with set-aduser

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.