DELETE GAMES / FILES - TASKER (Full Version)

All Forums >> [Management Products] >> Microsoft Systems Management Server >> SMS 2003



Message


sphillips237 -> DELETE GAMES / FILES - TASKER (9/30/2008 6:32:44 PM)

I've been tasked to removed all those old games that came with windows from all 7,000 hard drives in our environment. You know, solitaire, Freecell etc....

I've ran a report that gives path's to all the exe's..... Folks have them peppered all over their hard drives....

What do the fine folks here on the forum think about a simple file ran from root  "del sol.exe /s" script
But then it would have to be ran again for freecell and the others.... This would pull a lot of system resources.
I can hear my clients calling the helpdesk already [:D]

Surely there is a nice vbs or kix script already designed to do just this?

Any help would be appreciated.




skissinger -> RE: DELETE GAMES / FILES - TASKER (9/30/2008 7:57:58 PM)

XP?  I like this vbscript.  Nice 'n neat.  Kills them first if the end user happens to be playing solitaire, then deletes it.  Should be close to 100% success that way!




sphillips237 -> RE: DELETE GAMES / FILES - TASKER (10/1/2008 10:08:10 AM)

Hi Sherry, Thanks for the reply and thanks for the script.

Looks like that should work for games that are actually installed.

After researching my report against the pc's listed it looks to me as the largest majority of the games
aren't installed but just loose files on folks hard drives.

Am I correct in that SMS file collection only copies files from users Hdrives not deletes them?

Otherewise I'm going to have to find or create a script that will scan the Hdrive and delete the games *.exe's





mreavis -> RE: DELETE GAMES / FILES - TASKER (10/1/2008 10:53:13 AM)

If the games are not in their default location, they cannot be uninstalled. You are correct that file collection only copies the file. This is the routine I used to uninstall the XP Games:
sysocmgr /i:%windir%\inf\sysoc.inf /q /u:\\server\share\ocm.txt /r

Here is the content of the OCM.txt file:
[Components]
Pinball = off
Games = off
Minesweeper = off
Solitaire = off
Freecell = off
Hearts = off
Internet = off
Spider = off
Zonegames = off

For copies of solitaire, minesweeper, etc.. you will either have to search, and delete, or use one of the exe reports, create a CMD to delete those files from those paths (kinda long). 

My recomendation is a 2 step process, run the uninstall routine, and then work with your network admins to design a GPO that will block running those programs (import the hash from the EXEs) User Policies (or system),  Windows Settings, Software Restriction Policies.  The GPO will require some planning, and thought to design, but will guarantee that no one will be running a left over copy of sol.exe, even if they have another copy hidden on a thumb drive.  Just depends on how hard you want to lock it down.




sphillips237 -> RE: DELETE GAMES / FILES - TASKER (10/1/2008 11:09:04 AM)

Thanks Michael,

The thought of somehow to create CMD from the paths of the exe's from the SMS report would be great but
I haven't a clue how to export those paths (on the fly)into a script. Do you?
I've done scripting mostly kix files. Just need a nudge in the right direction...

Yes the GPO is something I was going to look at too.
What do you mean (import the hash from the exe's)




mreavis -> RE: DELETE GAMES / FILES - TASKER (10/1/2008 11:50:14 AM)

I would export the the report to excel, copy the paths to a CMD in notepad, and go from there.

In order to truly block a piece of software from running, you need to import the exe's hash in to the GPO software restriction. This prevents a user from renaming the file and running it.




sphillips237 -> RE: DELETE GAMES / FILES - TASKER (10/1/2008 12:17:45 PM)

If I can get the GPO working with hash value as you state I will probably just forgo deleting the files.

Can you point me in the right direction on how to get the hash from exe's.

I'm doing some google searches but haven't come up with much yet...

Thanks for your help.




Rickym61 -> RE: DELETE GAMES / FILES - TASKER (10/1/2008 1:52:32 PM)

Try these 2 links, they look a bit complex and information overload, but it should get you started.

When you create a new Software Restrictio Policy, you get a number of choices of what rules you want to define, hash, or path. For Hash rules, you need the actual exe, so say freecell, browse to the freecell.exe, it will then import the file and create the hash value automatically.

http://technet.microsoft.com/en-us/library/bb457006.aspx

http://support.microsoft.com/kb/324036

If you have any further questions, gimme a shout, happy to help.




sphillips237 -> RE: DELETE GAMES / FILES - TASKER (10/1/2008 2:06:06 PM)

Rickym61,

Thanks, the GPO is starting to sound like the thing to do....

I'm betting that if their are different version of Sol.exe (solitaire) then the hash would be different on each version.
Guess I'll find out.

Thanks to all who replied.




Rickym61 -> RE: DELETE GAMES / FILES - TASKER (10/1/2008 2:10:31 PM)

as long the file(s) are all diffrent versions, they will (should) create individual hash's, the beauty of software restriction is, even if they rename the file, move it etc, its still blocked [:D]




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
0.3671875