[Last Call] Learn how to a build a cloud-first strategyRegister Now


W2K Script needed to remove games at login

Posted on 2004-11-10
Medium Priority
Last Modified: 2010-04-14
I am working on a physically diverse network of ~400-500 W2K machines. A large number were mistakenly deployed with the games still installed. I have googled and found the trick of modifying sysoc.inf to make the games show up in Add/Remove Programs. It's a good solution, except that some of these machines are 200 miles away. I have found that it can be done via Group Policy, but we are not running any form of it as this time.

What I am in search of is a way to add to the users login scripts commands to search to see if the games are present and if so delete them and the directories they belong in. (Don't want the games to even -appear- to be installed.) We have something very similar that worked quite well under Windows NT, but does not work under W2K. Best as I can tell, W2K appears to readd the games every time I simply delete the .exe. Very frustrating. I have been able to modify the old script to look at C:\WINNT\SYSTEM32\$gameinquestion.exe, but despite appearing to delete the exe...it still runs.

Can anyone help this frazzled tech?

Question by:Keisha
  • 2
LVL 97

Accepted Solution

Lee W, MVP earned 1200 total points
ID: 12551788
The script you use on the NT systems, modify it so that you delete the game.exe files from %windir%\system32\dllcache  first - System File Checker is detecting they are deleted and automatically replaced with the versions in DLL cache - take them out first and there's nothing to replace them with.
LVL 97

Expert Comment

by:Lee W, MVP
ID: 12551809
For example:

If exist %windir%\system32\dllcache\sol.exe del %windir%\system32\dllcache\sol.exe
if exist %windir%\system32\sol.exe del %windir%\system32\sol.exe

Author Comment

ID: 12551921
Thank you so much!!!


Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

NTFS file system has been developed by Microsoft that is widely used by Windows NT operating system and its advanced versions. It is the mostly used over FAT file system as it provides superior features like reliability, security, storage, efficienc…
This article will help to fix the below errors for MS Exchange Server 2016 I. Certificate error "name on the security certificate is invalid or does not match the name of the site" II. Out of Office not working III. Make Internal URLs and Externa…
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…
Suggested Courses

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question