官术网_书友最值得收藏!

Configuring templates

As mentioned earlier, only the Active Directory Users and Computers MMC Snap-in gives you the ability to copy a user account. With the new Active Directory Administrative Center MMC Snap-in or PowerShell, it isn't possible to copy a user account. However, from Windows Server 2012, you can create a user account with the most common parameters for a specific job role or department configured and use that account as a template. As mentioned earlier, attributes that are copied to the new user account are as follows:

  • Group memberships
  • Home directories
  • Profile settings
  • Logon scripts
  • Logon hours
  • Password settings
  • Department name
  • Manager

The template user account can be created using PowerShell or either of the MMC Snap-ins. Creating a new user account from the template can be done with the Active Directory Users and Computers MMC Snap-in with the copy option, as mentioned earlier, or using the PowerShell command:

$Template = Get-ADUser -Identity vladimir.stefanovic -Properties Company

New-ADUser -GivenName John -Surname Doe -Name "John Doe" -UserPrincipalName john.doe@mcsacertguide.local -SamAccountName john.doe –AccountPassword (Read-Host –AsSecureString "Enter password") -Enabled $true -Instance $Template
主站蜘蛛池模板: 安徽省| 竹山县| 措勤县| 策勒县| 武穴市| 内丘县| 永和县| 浠水县| 兴隆县| 万年县| 琼海市| 永善县| 松江区| 泰州市| 汝南县| 民权县| 谷城县| 泰宁县| 汤原县| 集贤县| 公主岭市| 湄潭县| 潼关县| 海门市| 台东市| 曲靖市| 泰和县| 漳州市| 香港| 济宁市| 德阳市| 随州市| 耿马| 自治县| 巴彦县| 乐业县| 通州区| 河南省| 长兴县| 靖西县| 米脂县|