Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


PC cleaning question???

 
Logged in as: Guest
arrSession:exec spGetSession 2,2,64887
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> PC cleaning question???
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 PC cleaning question??? - 10/8/2008 5:52:57 AM   
  jcarver_14

 

Posts: 31
Score: 0
Joined: 6/4/2008
From: Cincinnati
Status: offline
Hi everyone,
I have a question I hope you could help me with.  I am looking for a utility that can clean (remove temp files) out a whole network worth of PC's and be managed from a server.  Do you have any ideas.
Thanks
 
 
Post #: 1
 
 RE: PC cleaning question??? - 10/8/2008 6:49:21 AM   
  morpheus83uk

 

Posts: 373
Score: 0
Joined: 8/21/2006
Status: offline
Hello,

Well this would depend on quite a few factors..

When it would be run,

How it would be run,

These two are the two main ones....

You could setup group policy to do it on system start up as a startup script and just have a script which goes through each profile on the machine and remove the temp files and then wake all the PC's on lan out of hours and then shut them all down...

You could use SMS to do this in a more controlled fashion with some free software...

You could set up a scheduled task on all the machines for this to run over dinnertime say (Not too sure if this would be a manual thing of it could be set by GPO)

I hope this helps or if you could give us some idea of how you want to achieve this we may be able to assist further :)

Many Thanks

James

_____________________________

VBScript Documentation:

http://www.microsoft.com/downloads/details.aspx?FamilyID=01592c48-207d-4be1-8a76-1c4099d7bbb9&displaylang=en

(in reply to jcarver_14)
 
 
Post #: 2
 
 RE: PC cleaning question??? - 10/9/2008 12:34:53 AM   
  jcarver_14

 

Posts: 31
Score: 0
Joined: 6/4/2008
From: Cincinnati
Status: offline
James,

Looks like you have been thinking along the same lines I have but to answer you quesitons...

I am hoping the program can be run during the evening.  I looked into startup and log in but there are several problems with both.

As for how, it will need to be a scheduled and unattended run and I have looked into many of these options.

Wake on lan - I wont need to use this as we keep our PC up at all times.

SMS- I have not looked into this but if you have any ideas that would be great.

GPO-  I cant use the start up script becasue you generally have to have a live invirorment for a delete script to properly run.  I wrote one and tested it and it tends to error out.  I cant really use a log in script because I am trying to clean several user profiles at once, all of our users are restricted users so they cant access temp files for another user and I cant write an admin password into the script because there is no way to secure it and keep them from seeing it.  So for the most part gpo is not going to work for me.

The only thing I have run accros that I can do is a sceduled task to run a script.  With the scheduled task you can put in a username and password so it works good but i really want to stay away from the scripts.  Below I have posted one I wrote and it does the job great but i really want to stay away from it if at all possible. VBS by the way.

-----
What I would really like is a camercial program that can be managed from a windows server.  Think kind of on the lines of an antivirus like AVG.  There is softare installed on each PC that runs and removes viruses and communicates with a server.  Then there is the server that tells each host PC when and what to do.
-----

Thanks again for your help,

James


      

< Message edited by jcarver_14 -- 10/9/2008 12:41:19 AM >

(in reply to morpheus83uk)
 
 
Post #: 3
 
 RE: PC cleaning question??? - 10/9/2008 3:37:10 AM   
  morpheus83uk

 

Posts: 373
Score: 0
Joined: 8/21/2006
Status: offline
Hello,

As far as I am aware you could run your script as a startup script as this would run as the SYSTEM account which would eliminate the whole issue of the account access. As the SYSTEM account would be able to access all the profiles and remove the temp files.

Another thing you could do is possibly put it in the runonce key in HKCU possibly via GPO or have it run everytime the users log on so its kept clean maybe.

Does your company currently have SMS on site? If so this could be a better solution but it sounds like either GPO or SMS are your best options and maybe a script.

Many Thanks

James

_____________________________

VBScript Documentation:

http://www.microsoft.com/downloads/details.aspx?FamilyID=01592c48-207d-4be1-8a76-1c4099d7bbb9&displaylang=en

(in reply to jcarver_14)
 
 
Post #: 4
 
 RE: PC cleaning question??? - 10/10/2008 5:06:15 AM   
  jcarver_14

 

Posts: 31
Score: 0
Joined: 6/4/2008
From: Cincinnati
Status: offline
We do have SMS, we generally use it to push out updates or new apps.

I cant run the script at start up because it starts before windows has finished loading so it errors out when it tries to execute objShell.run.  Also I have tested the script in a scheduled task and it works ok for me although my supierior has stated that he does not feel safe using a script that something could go wrong and he has asked me to look for a camercial product.

Thanks,

James Carver

(in reply to morpheus83uk)
 
 
Post #: 5
 
 RE: PC cleaning question??? - 10/10/2008 7:05:29 AM   
  Rischip


Posts: 502
Score: 2
Joined: 3/26/2007
Status: offline
Here are a couple of ideas if you are simply looking to clean temp files etc....


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

http://www.ss64.com/nt/cleanmgr.html

_____________________________

Rischip
Author of - The Grim Linker

(in reply to jcarver_14)
 
 
Post #: 6
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> WSH & Client Side VBScript >> PC cleaning question??? 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