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