System administrators are often asked to remove games such as FreeCell or Pinball from Windows machines. Sometimes...
By submitting your email address, you agree to receive emails regarding relevant topic offers from TechTarget and its partners. You can withdraw your consent at any time. Contact TechTarget at 275 Grove Street, Newton, MA.
deleting the executables and their shortcuts is not as easy as you might think; Windows will restrict you from deleting them.
To remove these components you will need to use the sysocmgr.exe utility (available at C:\WINDOWS\system32), which is used to add or remove Windows components. This utility uses a txt file that can be scripted.
Here is an example of how you can use this utility to remove the Pinball game from a Windows XP machine:
- Create a text file to say "remove.txt" with the following things written in it:
Pinball = off
- Now save this file, for instance, on your C drive.
- Go to command line and enter following command:
sysocmgr /i:C:\WINDOWS\ServicePackFiles\i386\sysoc.inf /u:C:\remove.txt /q
The following is the description of the switches which can be been used with the above command:
/i The location of the .inf file for sysocmgr.exe. This is normally in the System32 directory or at "C:\WINDOWS\ServicePackFiles\i386"
/r Suppresses a reboot (in case if a reboot is needed on removal of specific components).
/q Runs the utility in quiet mode to suppress prompts.
/u Specifies the location of the .txt file.
/w Prompts the user to reboot instead of rebooting automatically (in case if a reboot is needed on removal of specific components).
Users may use any of the switches based on their requirement. After the execution of this command you will find that the Pinball game from your system has been removed.
About the author:Rahul Shah currently works at a software firm in India, where he is a systems administrator maintaining Windows servers. He has also worked for various software firms in testing and analytics, and also has experience deploying client/server applications in different Windows configurations.
More information on this topic:
- Tip: Seven command-line tools to make your life easier
- Topic: Research Systems Management in this topic section
- RSS: Sign up for our RSS feed to receive expert advice everyday