Saturday, February 18, 2012

Cleanup WinSXS in Windows 7

The winsxs folder under c:\windows is used to store install and uninstall files, windows packages, and out-of-band releases. This folder should NEVER be deleted. However it can grow to an unmanageable size. Running the command:

dism /online /cleanup-image /spsuperseded

from an elevated command prompt will remove unecessary files.

Thursday, February 16, 2012

Office 2010 Group Policy Definitions

To deploy office 2010 group policy definitions, do the following:
  1. Download the templates from http://www.microsoft.com/download/en/details.aspx?id=18968
  2. Launch the downloaded executiables and choose a location to extract the files.
  3. In C:\WINDOWS\SYSVOL\domain\Policies create a folder called PolicyDefinitions.
  4. Copy all the admx files from the extracted file locations to C:\WINDOWS\SYSVOL\domain\Policies\PolicyDefinitions.
  5. Copy the language folder under the admx extracted location to C:\WINDOWS\SYSVOL\domain\Policies\PolicyDefinitions
The Office GPO options are now available via GPO.

Deactivating WIndows 7 OEM

To deactivate windows 7 OEM:
  1. Remove all files under c:\windows\system32\oem
  2. From an elevated command prompt, execute slmgr.vbs /upk
  3. Restart the pc