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

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
主站蜘蛛池模板: 镇平县| 宝丰县| 阿合奇县| 潞西市| 宝鸡市| 全州县| 泰和县| 滨海县| 鸡西市| 任丘市| 南岸区| 虹口区| 平陆县| 得荣县| 安达市| 新竹县| 巴塘县| 阿克| 兰西县| 新泰市| 纳雍县| 七台河市| 信宜市| 辽中县| 兰溪市| 池州市| 上栗县| 湘潭市| 叙永县| 南郑县| 兴宁市| 荣成市| 肇东市| 汉阴县| 米易县| 剑川县| 上林县| 长春市| 平阳县| 东辽县| 永泰县|