Crash reporter crashed would you like to report this crash?
It's stuff like this that makes working in IT a comedy gold mine for those working in IT.
Add-PSSnapin *exchange*
$user = "TESTUSER" $mailboxes = get-mailbox foreach ($mailbox in $mailboxes) { $mailboxpermission = Get-Mailboxpermission $mailbox foreach ($permission in $mailboxpermission) { $permission | where {$_.Accessrights -Contains "FullAccess" -and $_.user -like "*$user*"} | select Identity } } |
Add-PSSnapin *exchange*
Get-Mailbox | Get-aduser -identity {$_.samaccountname} -Properties enabled | where {$_.enabled -eq $False} | Select Name |
set-date 01/01/2009
Start-Process "c:\windows\system32\notepad.exe" Start-sleep 15 set-date (invoke-command -ComputerName SOMECURRENTTIMESERVER -ScriptBlock {get-date}) |
#on a computer with exchange 2007 management tools
Add-PSSnapin *exchange* export-transportrulecollection c:\scripts\exch2007transportrules.xml #on a computer with exchange 2013 management tools Add-PSSnapin *exchange* [Byte[]]$Data = Get-Content -Path '\\someserver\c$\Scripts\exch2007transportrules.xml' -Encoding Byte -ReadCount 0 Import-TransportRuleCollection -FileData $Data |