Monday, August 11, 2014

Exchange 2013 drive space alert

You may get this alert:
The performance counter '\\exchange server\LogicalDisk(Datebase)\Free Megabytes' sustained a value of '7,027.00', for the '15' minute(s) interval starting at '8/11/2014 3:48:00 PM'. Additional information: None. Trigger Name:DatabaseDriveSpaceTrigger. Instance:Database

You can disable these alerts, edit the config file:

C:\Program Files\Microsoft\ExchangeServer\V15\Bin\Microsoft.Exchange.Diagnostics.Service.exe (config file)

Change "xchangeJobs.Triggers.DatabaseDriveSpaceTrigger" from "True" to "False".

Friday, August 8, 2014

Exchange 2013 anonymous relay IMPORTANT TIP

If you are running exchange 2013 and need to setup an anonymous relay make sure you choose FRONT END TRANSPORT, not hub transport.  There is an issue with port 25 being used by another transport and it will cause the front end transport service to not start and fill up your event log.  You create the connector the same the rest of the way including the powershell script.

Friday, May 30, 2014

Manually remove trend if it has a password!

start windows in secure mode and change the ofcscan.ini in client intallation path
search for "UninstallPwd" and change the password to:

!CRYPT!523D617DF57CBF0E9ACD37611537EBB612F9B6F1C471EB529B89772E71AD9D2431BC212ACF23B7767831E317364
then the uninstall password will be "test"

Friday, April 25, 2014

Disable windows offline files:

Local Computer Policy\Computer Configuration\Administrative Templates\Network\Offline Files
Change the following:
Allow or disallow use of offline files feature: Disabled
Prohibit user config: Enabled
Sync all offline files when logging on: Disabled
Sync all offline files when logging off: Disabled
Sync offline files before suspend: Disabled
Remove ‘Make offline’: Enabled
Prevent use of Offline Files folder: Enabled

Wednesday, April 16, 2014

Script to delete vmware snapshots, batch file to run as a scheduled task

Run this from power shell to delete your snapshots:

Connect-VIServer vsphereserver

Get-vm "guest vm" | get-snapshot | Remove-Snapshot -confirm:$false

save it as something .ps1

Batch file:
C:\WINDOWS\system32\windowspowershell\v1.0\powershell.exe -psc "C:\Program Files (x86)\VMware\Infrastructure\vSphere PowerCLI\vim.psc1" -c ". \"C:\Program Files (x86)\VMware\Infrastructure\vSphere PowerCLI\Scripts\Initialize-VIToolkitEnvironment.ps1\";C:\vmwarescript\yourpowershellscript"


Machine running this will need VMWare powercli installed.  

If your user is not an admin that will be running the script as a scheduled task it will need logon as batch job and service rights and explicit rights to the CMD.exe file in C:\windows\system32.

Thursday, April 10, 2014

Office 2013 tweaks

Keep office from trying to connect to the internet with this registry key:

HKEY_CURRENT_USER\Software\Microsoft\Office\15.0\Common\Internet\useOnlineContent

Set Dword to 0

Have Office go directly to a document screen and pass the annoying startup page:
HKEY_CURRENT_USER\Software\MicrosoftOffice\15.0\ommon\General
Create a DWord of DisableBootToOfficeStart
Set DWord to 1

Friday, February 7, 2014

If you move mailboxes and they don't remove here is a cleanup command

set the keep deleted mailbox retention period to 0, run clean-mailboxdatabase "databasename" to remove the disconnected mailboxes. 

Monday, January 6, 2014

Clear log files for exchange if your out of disk space

Dismount any databases, or if the database won't mount because the disk is full.  If the database won't mount, check and make sure it is in a clean shutdown state:

eseutil /MH "Database Location and Name"

Make sure it reports "clean shutdown" or "consistent"

MOVE the log files to somewhere you have space and remount the database.

Friday, January 3, 2014

Users redirectored folders show as My Documents in the folders

If you are redirecting folders to a server share and the folders all show as "My Documents" this could be due to the desktop.ini in the root of the users folder.  If the administrators or domain admin group has full control, set them to deny read.  Make sure the user is the owner of the folder as well.