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

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
主站蜘蛛池模板: 丰城市| 阆中市| 青川县| 周宁县| 金湖县| 阿拉善右旗| 阳江市| 武陟县| 衢州市| 仁布县| 莆田市| 哈巴河县| 宝坻区| 民乐县| 建瓯市| 邻水| 美姑县| 余姚市| 大埔县| 西盟| 襄樊市| 黔西县| 正蓝旗| 上思县| 元阳县| 靖边县| 张家口市| 永定县| 刚察县| 安平县| 呼和浩特市| 榕江县| 高陵县| 措美县| 屏东市| 广平县| 沧州市| 连南| 通城县| 六盘水市| 望江县|