myITforum.com Community Forum myITforum.com Community Forum

Home  Forums  Blogs  Live Support chat  Search Articles  Wiki  FAQ  Email Lists  Register  Login  My Profile  Inbox  Address Book  My Subscription  My Forums 

Photo Gallery  Member List  Search  Calendars  FAQ  Ticket List  Log Out

All Forums RSS Feed Subscription:


  


DELETE GAMES / FILES - TASKER

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
  Printable Version
All Forums >> [Management Products] >> Microsoft Systems Management Server >> SMS 2003 >> DELETE GAMES / FILES - TASKER Page: [1]
Login
Message << Older Topic   Newer Topic >>
DELETE GAMES / FILES - TASKER - 9/30/2008 6:32:44 PM   
sphillips237

 

Posts: 82
Score: 0
Joined: 9/10/2007
Status: offline
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

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

Any help would be appreciated.


< Message edited by sphillips237 -- 9/30/2008 6:34:36 PM >
Post #: 1
RE: DELETE GAMES / FILES - TASKER - 9/30/2008 7:57:58 PM   
skissinger


Posts: 2114
Score: 134
Joined: 9/13/2001
From: Sherry Kissinger
Status: offline
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!

_____________________________

mofmaster@smsexpert.com (version 2007) | http://www.smsexpert.com | http://www.sccmexpert.com
My Blog
Microsoft MVP - ConfigMgr

(in reply to sphillips237)
Post #: 2
RE: DELETE GAMES / FILES - TASKER - 10/1/2008 10:08:10 AM   
sphillips237

 

Posts: 82
Score: 0
Joined: 9/10/2007
Status: offline
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


(in reply to skissinger)
Post #: 3
RE: DELETE GAMES / FILES - TASKER - 10/1/2008 10:53:13 AM   
mreavis


Posts: 780
Score: 77
Joined: 9/10/2002
From: Olathe, Kansas
Status: offline
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.

_____________________________

Michael Reavis
SMS Admin
MCSE, MCDBA, MCDST
Johnson County Goverment

(in reply to sphillips237)
Post #: 4
RE: DELETE GAMES / FILES - TASKER - 10/1/2008 11:09:04 AM   
sphillips237

 

Posts: 82
Score: 0
Joined: 9/10/2007
Status: offline
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)

(in reply to mreavis)
Post #: 5
RE: DELETE GAMES / FILES - TASKER - 10/1/2008 11:50:14 AM   
mreavis


Posts: 780
Score: 77
Joined: 9/10/2002
From: Olathe, Kansas
Status: offline
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.

_____________________________

Michael Reavis
SMS Admin
MCSE, MCDBA, MCDST
Johnson County Goverment

(in reply to sphillips237)
Post #: 6
RE: DELETE GAMES / FILES - TASKER - 10/1/2008 12:17:45 PM   
sphillips237

 

Posts: 82
Score: 0
Joined: 9/10/2007
Status: offline
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.

(in reply to mreavis)
Post #: 7
RE: DELETE GAMES / FILES - TASKER - 10/1/2008 1:52:32 PM   
Rickym61

 

Posts: 92
Score: 4
Joined: 4/4/2007
Status: offline
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.

(in reply to sphillips237)
Post #: 8
RE: DELETE GAMES / FILES - TASKER - 10/1/2008 2:06:06 PM   
sphillips237

 

Posts: 82
Score: 0
Joined: 9/10/2007
Status: offline
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.

(in reply to Rickym61)
Post #: 9
RE: DELETE GAMES / FILES - TASKER - 10/1/2008 2:10:31 PM   
Rickym61

 

Posts: 92
Score: 4
Joined: 4/4/2007
Status: offline
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

(in reply to sphillips237)
Post #: 10
Page:   [1]
All Forums >> [Management Products] >> Microsoft Systems Management Server >> SMS 2003 >> DELETE GAMES / FILES - TASKER Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts



  
Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI

0.719