将用户的组织单位复制到新用户
我的目标是复制一个现有的用户,包括AD树中的OU位置。 到目前为止,我有这样的: $SName = Read-Host "Please Enter the login initials of the source user " $U = Get-ADUser -Identity $SName -Properties streetaddress,homepage,POBox,postalcode,city,country,company,department,office,fax $FirstName = read-host -Prompt "Enter first name of new user: " $LastName = read-host -Prompt "Enter last name of new user: " $DisplayName = "$Firstname $LastName" $DName = Read-Host "Please Enter logon initials […]