PowerShell Script To Add New E-Mail Alias and Set As Default

For this you need the Exchange powershell console open. Use the script below to set a new e-mail alias by OU to firstname.lastname@fqdn Get-User -OrganizationalUnit “the ou name” | % {Set-Mailbox -Identity $_.identity -Alias (“{0}.{1}” -f $_.firstname, $_.lastname)} Test the new setting per user: get-user -identity “flast” | get-mailbox   Advertisements

Rate this:

Recover from a Domain Controller Crash

If one of your DC crashes and you have another online. Build a DC and transfer the roles from the DC that crashed with the following command: Move-ADDirectoryServerOperationMasterRole -identity “CrashedDCServername” -OperationMasterRole 0,1,2 0= PDC Emulator 1= RID Master 2= Infrastructure Master 3= Schema Master 4= Domain Naming Master

Rate this:

Recover a Domain Controller from failure

$Policy = New-WBPolicy $Volume = Get-WBVolume -VolumePath F: Add-WBVolume -Policy $Policy -Volume $Volume Add-WBBareMetalRecovery $Policy $BackupLocation = New-WBBackupTarget -VolumePath D: Add-WBBackupTarget -Policy $Policy -Target $BackupLocation Start-WBBackup -Policy $policy -Async $BackupJob = Get-WBJob   In this scenario, you want to ensure that the domain controller can be restored if it will not boot due to a…

Rate this: