W2K Script needed to remove games at login

Posted on 2004-11-10
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 still runs.

Can anyone help this frazzled tech?

Question by:Keisha
    LVL 95

    Accepted Solution

    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 95

    Expert Comment

    by:Lee W, MVP
    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
    LVL 1

    Author Comment

    Thank you so much!!!


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    What Security Threats Are You Missing?

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    Suggested Solutions

    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…
    These days socially coordinated efforts have turned into a critical requirement for enterprises.
    Internet Business Fax to Email Made Easy - With eFax Corporate (, you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
    In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

    737 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

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now