Modifying the Attributes of a Computer Account
This topic explains how to use the Active Directory module for Windows PowerShell to modify the attributes of a computer object.
Example
The following example demonstrates how to modify the ManagedBy attribute of the computer FABRIKAM-SRV1.
Set-ADComputer FABRIKAM-SRV1 -ManagedBy 'CN=SQL Administrator 01,OU=UserAccounts,OU=Managed,DC=FABRIKAM,DC=COM'
Set-ADComputer FABRIKAM-SRV1 -ManagedBy 'CN=SQL Administrator 01,OU=UserAccounts,OU=Managed,DC=FABRIKAM,DC=COM'
Additional information
You can use the following parameters when you set many of the common values that are associated with computer management.
- -Description
- -DisplayName
- -DNSHostName
- -Enabled
- -Location
- -ManagedBy
- -OperatingSystem
- -OperatingSystemHotfix
- -OperatingSystemServicePack
- -OperatingSystemVersion
- -ServicePrincipalNames
- -TrustedForDelegation
No comments:
Post a Comment