Skip to content

Instantly share code, notes, and snippets.

View DXPetti's full-sized avatar
🏠
Working from home

DXPetti

🏠
Working from home
View GitHub Profile
<#
.Synopsis
Restores Out of Office Message for all shared mailboxes
.DESCRIPTION
Taking a path as input to location of backups created with the corrosponding cmdlet Set-SharedMbxOoo,
this cmdlet gets all current mailboxes in specific OU, loops through and restores (if any) Out of
Office message plus parameters defined for the message.
.EXAMPLE
Set-SharedMbxOoo -Path C:\Temp\BackupOfOoo\
.NOTES
<#
.Synopsis
Restore select Ad Attributes from a mounted AD DS database
.DESCRIPTION
This cmdlet will take a OU path as input, takes a backup of the attributes of all users
in said OU, import the attributes from a currently mounted AD DS database into a
hashtable, loop through each user in the OU and apply said attributes. Finally, a export
of the users current attributes is saved in the same path as the backup for before/after
comparisons
.EXAMPLE