Alans Wiki

IT tips and tricks

Disable Outlook / Exchange Auto-mapping

Posted by alambert on January 20, 2016
Posted in: Exchange, Powershell. Leave a Comment
$FixAutoMapping = Get-MailboxPermission -Identity discovery | where {$_.AccessRights -eq "FullAccess" -and $_.IsInherited -eq $false}
$FixAutoMapping | Remove-MailboxPermission
$FixAutoMapping | ForEach {Add-MailboxPermission -Identity $_.Identity -User $_.User -AccessRights:FullAccess -AutoMapping $false}

Append date to file name with Powershell.

Posted by alambert on January 20, 2016
Posted in: Powershell. Tagged: Date, powershell. Leave a Comment
$today = (get-date).tostring("MM-dd-yyyy")
$outfile = 'C:\logs\FileName_' + $today + '.log'

Book Reader

Posted by alambert on January 11, 2016
Posted in: Apps, Workstation. Tagged: epup, mobi, reader. Leave a Comment
When I reload my workstation I always forget the name of this app. Posting here so I can find it next time. LOL http://calibre-ebook.com/ Use for Mobi and ePub files..

Exchange 2010 – Unhide user from GAL / Offline Address Book

Posted by alambert on December 16, 2015
Posted in: Exchange, Powershell. Leave a Comment
From script
$name=Read-Host "Enter login name of user to hide"
Set-Mailbox -Identity domain\$name -HiddenFromAddressListsEnabled $true
or one time from shell
$name=Read-Host "Enter login name of user to hide"
Set-Mailbox -Identity domain\first_lambert-HiddenFromAddressListsEnabled $true

Exchange 2010 – Delete all contents from users mailbox

Posted by alambert on December 14, 2015
Posted in: Exchange, Powershell. Leave a Comment
Deletes all contents (emails) from users mailbox but does not delete the account.
Get-Mailbox -Identity "first_last"| Search-Mailbox -DeleteContent -Force
 

Exchange 2010 Room Mailbox Management

Posted by alambert on December 11, 2015
Posted in: Exchange, Powershell. Leave a Comment
Room Mailbox Auto-attendant
Set-CalendarProcessing "My Room" -AutomateProcessing AutoAccept
  Add Room Mailbox View permissions for everyone.
Set-MailboxFolderPermission "my_room:\Calendar" -User Default -AccessRights Reviewer
  Add Room Mailbox Delegate
Add-MailboxPermission -Identity "My Room" -User first_last -AccessRights FullAccess
 

Merge two email accounts in Exchange 2010

Posted by alambert on December 8, 2015
Posted in: Exchange, Powershell. Tagged: exchange; mailbox; folders; powershell, merge. Leave a Comment
Export Mailbox cmdlet example
New-MailboxExportRequest -Mailbox first_last -FilePath d:\first_last.pst
  Import Mailbox cmdlet example
New-MailboxImportRequest -Mailbox first_last -FilePath d:\first_last.pst -TargetRootFolder "RecoveredFiles"

Posts navigation

Newer Entries →
  • Recent Posts

    • Change the RDS “Work Resources”
    • Create SG for folders
    • Enable inheritance on all AD user
    • MSGraph Powershell module
    • Folder Permissions Groups
  • Categories

    • Active Directory
    • Apps
    • Azure
    • Azure Active Directory
    • Backup Exec
    • Command Line
    • Data Center
    • DHCP
    • DNS
    • DNS
    • Exchange
    • Hyperv
    • Networking
    • Offfice 365
    • OneNote
    • Patching
    • PowerCLI
    • Powershell
    • RemoteApps
    • Shortcuts
    • Single
    • Splunk
    • Uncategorized
    • Veeam
    • VMware
    • Windows
    • Workstation
  • Meta

    • Log in
    • Entries feed
    • Comments feed
    • WordPress.org
Proudly powered by WordPress Theme: Parament by Automattic.