To disable these warnings using vSphere Client:
  1. Select the ESXi host from the Inventory.
  2. Click the Configuration tab.
  3. Click Advanced Settings in the Software menu.
  4. Navigate to UserVars > UserVars.SuppressShellWarning.
  5. Set the value from 0 to 1.
  6. Click OK.
To disable these warnings using esxcli:
  1. Connect to the ESXi host through SSH using root credentials.
  2. Run this command:vim-cmd hostsvc/advopt/update UserVars.SuppressShellWarning long 1  
To enable these warnings using esxcli:
  1. Connect to the ESXi host through SSH using root credentials.
  2. Run this command:vim-cmd hostsvc/advopt/update UserVars.SuppressShellWarning long 0
Removes spam from exchange 2010 with powershell. Creates a log file in G:\s\Logs\exchange\  Edit the $spam var. Use “from:$spam” for From and “subject:$spam” for Subject.  
$spam = "pravinchauhan1991@yahoo.in"

$today = (get-date).tostring("MM-dd-yyyy")

$ExDBs = "db04","db08","db12","db16","db20","db24","db28"
Foreach($ExDB in $ExDBs)
{

#Defines source and destination
$outfile = 'G:\s\Logs\exchange\SpamCleanUp_' + $today + '_' + $spam + '_' + $ExDB + '.txt'
Get-mailbox -database $ExDB -resultsize unlimited | search-mailbox –searchquery “from:$spam” -LogLevel Full -TargetMailbox discovery -TargetFolder inbox -DeleteContent -force | ft displayname, resultitemscount, resultitemssize >> "$outfile"
}
To set the parameter snapshot.asyncConsolidate.forceSync to TRUE using the vSphere client: 1. Shut down the virtual machine. 2. Right-click the virtual machine and click Edit settings. 3. Click the Options tab. 4. Under Advanced, right-click General 5. Click Configuration Parameters, then click Add Row. 6. In the left pane, add this parameter: snapshot.asyncConsolidate.forceSync 7. In the right pane, add this value: TRUE 8. Click OK to save your change, and power on the virtual machine. OR this Powercli command: get-vm virtual_machine_name | New-AdvancedSetting -Name snapshot.asyncConsolidate.forceSync -Value TRUE -Confirm:$False Taken from https://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=2082886
If you receive the following error another VM likely has the disk mounted, probably from a backup process. Shutdown the VM, remove the disk, restart the VM. In some cases you may need to reboot the ESX.
An error occurred while consolidating disks: msg.snapshot.error-DISKLOCKED
An error occurred while consolidating disks: msg.fileio.lock. 
When running RedistributeActiveDatabases.ps1 if you receive the following error… restart powershell.
New-Object : Cannot find type [HADatabaseLoadBalancing.DatabaseMoveStatus]: make sure the assembly containing this type
 is loaded.
At C:\Program Files\Microsoft\Exchange Server\V14\Scripts\RedistributeActiveDatabases.ps1:648 char:70
+     [HADatabaseLoadBalancing.DatabaseMoveStatus]$moveStatus = New-Object <<<<  -TypeName "HADatabaseLoadBalancing.Dat
abaseMoveStatus"
    + CategoryInfo          : InvalidType: (:) [New-Object], PSArgumentException
    + FullyQualifiedErrorId : TypeNotFound,Microsoft.PowerShell.Commands.NewObjectCommand