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}
how to remove hidden devices after p2v/v2v
How to remove old NIC`s. CPU etc. after P2V or V2V. 1. set devmgr_show_nonpresent_device-1 devmgmt.msc 2. devmgmt.msc 3....
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 =...