Can I install users in a new forest?

Asked By 10 points N/A Posted on -
qa-featured

Hello experts,

I have a question. Can I install users in a new forest? Mentioned that, I don’t want to download the user installation basis files from management point. What should I do?

Please help. Thanks a lot.

SHARE
Answered By 75 points N/A #106226

Can I install users in a new forest?

qa-featured

Generally, it is not feasible to run a script single script on the Exchange Server. As a solution to this, I suggest that you run two scripts using the same .csv format, that is, one script on AD Forest and other script on Exchange forest.

Follow the following steps to run a script on AD Forest:

Import-Csv c:scriptsallusersallusers.csv |foreach-object {New-ADUser -GivenName $_.FirstName –Surname $_.LastName -Name $_.DisplayName -SamAccountName $_.SamAccount –UserPrincipalName $_.LMA -Enabled $true -AccountPassword (ConvertTo-SecureString "Welcome.01" -AsPlainText -force) -ChangePasswordAtLogon $true -passthru -path "OU=users,DC=hello,DC=com"}

Follow the following steps to run a script on Exchange Forest linked mailbox:

$credential = Get-Credential

Import-Csv c:scriptsallusersallusers.csv | foreach {New-mailbox –Name $_.DisplayName –firstname $_.FirstName –lastname $_.LastName -alias $_.SamAccount –PrimarySmtpAddress $_.SMTP -OrganizationalUnit ‘exchange.local/users’-UserPrincipalName $_.UPN -LinkedMasterAccount $_.LMA  -LinkedDomainController "dc01.hello.com" -LinkedCredential $credential}

CSV file format:

CSV file format

Related Questions