Find emails with Powershell commandlets
Get-MessageTrackingLog -start “12/18/2011 08:00” -Sender user@domain.com | Format-List sender, Recipients, timestamp, MessageSubject Get-MessageTrackingLog -MessageSubject Testsubject
Import PST file to exchange mailbox from Powershell
New-MailboxImportRequest –Mailbox bruker –FilePath \servermappenavn.pst
Get SMTP adresses with CSVDE (commandline) in Exchange 2003
This one gives you username and primary Email address csvde -f users.csv -r “(&(objectCategory=Person)(objectClass=user))” -l “sAMaccountname,mail” This...
Get SMTP Adresses from Exchange 2007/2010 With Powershell
Get-Mailbox | select -expand EmailAddresses | %{$_.SmtpAddress}
Resolving eventid 12293 – KMS problem
1. Log on to your DNS server and open the DNS manager. 2. Navigate to the Forward Lookup...
Set recovery model to simple
Short 2 liner to set the recovery mode to simple on all databases: Use master select ‘ALTER DATABASE...
Get SMTP log in Powershell
In powershell (Excahnge Management Shell), use the following command: Get-MessageTrackingLog
Delete old backup files SQL script
The following script deletes .bak files older than 7 days from F:SharesBackup2Disk DECLARE @DeleteDate datetime SET @DeleteDate =...