Login | |
|
 |
RE: Run Maintenance on a PC through Script. - 8/22/2006 12:16:47 AM
|
|
 |
|
| |
ebgreen
Posts: 4970
Score: 31
Joined: 7/12/2005
Status: offline
|
Restart the PC before the procedure so nothing is running which could stop or interfere with the procedure Yes Remove All "Account Unkown" profiles and accounts off the local PC Yes Remove All Accounts which have not been Accessed / Modifieed on the local PC for say the last 2 Months Yes Remove Unused Applications (Such As Netscape Navigator 4.7 and remove the remaining folders afterwards) Depending on your definition of unused, yes. Clean out Tempory Files (Internet Temp, Historys, Stored Passwords, Temp Folder etc) Yes Run Dick Cleanup on Each Drive and Remove Everything I assume you mean Disk Cleanup. If you are refering to the Disk Cleanup Wiard in Windows, then I don't think so. However the step immediately above this one does a lot of what Disk CLeanup does anyway. Clear the system restore files apart from the most recent Maybe Clean the Registry with Regseeker (Free Softtware Off the net Very good too!!) until it cant find any problms there I've never used Regseeker so I don't know. If it will run using command line arguments or exposes a COM interface then probably. If not then probably not. Virus Scan the PC Probably. Depends on your virus software. Most of them accept command line arguments so they would work. Why would you need to? Is your virus software not doing regularly scheduled scans anyway? Defragment The PC each Drive in turn (I have a script for this already found on the net but does not complete fully what I want when I get home I will post it here) I would be suprised to see a script that will defrag all the HDs in a machine Report Any errors to an E-Mail Address with machine name and error information Yes Then Restart the PC log in as admin and then shut down. Why? you are already logged in as the Admin right? Why not just shut down?
_____________________________
"... when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick Goog places to start:http://www.visualbasicscript.com/m_24727/tm.htm http://www.visualbasicscript.com/m_47117/tm.htm
|
|
| |
|
|
|
 |
RE: Run Maintenance on a PC through Script. - 8/22/2006 1:07:03 AM
|
|
 |
|
| |
ebgreen
Posts: 4970
Score: 31
Joined: 7/12/2005
Status: offline
|
Remove Unused Applications (Such As Netscape Navigator 4.7 and remove the remaining folders afterwards) Depending on your definition of unused, yes. Netscape is no longer used within our orgonisation so hence it can be removed We have moved over to Outlook and IE so no need for netscape. In that case I will upgrade this to a Probably. Run Dick Cleanup on Each Drive and Remove Everything I assume you mean Disk Cleanup. If you are refering to the Disk Cleanup Wiard in Windows, then I don't think so. However the step immediately above this one does a lot of what Disk CLeanup does anyway. Yes I do mean the Wizard within windows.... Its mainly the compressing of the old file to get a bit of hard disk space as well which I dont think the above step does or could it be done? Here is the description of the DIsk Cleanup utility from Windows: Disk Cleanup helps free up space on your hard drive. Disk Cleanup searches your drive, and then shows you temporary files, Internet cache files, and unnecessary program files that you can safely delete. You can direct Disk Cleanup to delete some or all of those files. What file compression are you talking about? Clear the system restore files apart from the most recent Maybe When you say maybe how do you mean? could the restore point be removed but maybe not the most recent one kept? I say maybe because I have never dealt with system restore files, but it sonds like something that might be possible with some research. Clean the Registry with Regseeker (Free Softtware Off the net Very good too!!) until it cant find any problms there I've never used Regseeker so I don't know. If it will run using command line arguments or exposes a COM interface then probably. If not then probably not. If you need to have a look at it then have a look at (http://www.hoverdesk.net/freeware.htm) which should give you an idea... As far as the command line goes then I dont think it does although I will see if there is a command line one available and test it if that makes things easier to do? As I said, not having a command line option or COM interface makes it much harder. You are essentially relegated to using SendKeys which is unreliable at best imo. Virus Scan the PC Probably. Depends on your virus software. Most of them accept command line arguments so they would work. Why would you need to? Is your virus software not doing regularly scheduled scans anyway? Unfortunatly not which is why I would like it to be included... We can make it do on demand scans but it does not have any specific schedue and the team who look after it think it will kill half the PC's we have... I know its not best practice so I thought to do at least something was better than nothing.... Well, if you can identify the command to call the scanner from the command line then it should be easy to do this. Defragment The PC each Drive in turn (I have a script for this already found on the net but does not complete fully what I want when I get home I will post it here) I would be suprised to see a script that will defrag all the HDs in a machine This is where I say it doesnt work completly it defrags the first drive it see's and then after that it completes but does not close which I think teh comments in the script say it should do... I can post the code later on tonight when I get home if you like for ideas or how it could be modified? Yes, I would need to see the script. Then Restart the PC log in as admin and then shut down. Why? you are already logged in as the Admin right? Why not just shut down? Just so it can finish off anything it needs to so the users dont get any hasstle when they use it the next morning.... Plus the fact one thing I did forget to mention was to run the chkdsk /f command and run it then restart the PC log in and then shut down.... In that case then yes you could do this.
_____________________________
"... when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick Goog places to start:http://www.visualbasicscript.com/m_24727/tm.htm http://www.visualbasicscript.com/m_47117/tm.htm
|
|
| |
|
|
|
 |
RE: Run Maintenance on a PC through Script. - 8/27/2006 2:56:14 AM
|
|
 |
|
| |
morpheus83uk
Posts: 373
Score: 0
Joined: 8/21/2006
Status: offline
|
Hello, Right I have had a look through them command line switches for the Antivirus and I wish for the following: The Path Needs to be: C:\Program Files\Common Files\Network Associates\Engine\ Then the following command (from DOS its self): SCAN /ADL /ALL /ANALYZE /CLEAN /NOBEEP /SUB /UNZIP I take it you will want the Command Line options for within windows so here they are: Path Needs to Be: C:\Program Files\Network Associates\VirusScan SCAN32 /NOSPLASH /AUTOEXIT /ALWAYSEXIT /UINONE /ALL /SUB /COMP /CONTINUE /NOPROMPT /CLEAN /NOBEEP /BOOT Would the script be able to report any viruses found to a specific E-Mail Address? in like a log file like the whole error reporting thing? I hope to hear from you soon :) Many Thanks James
|
|
| |
|
|
|
 |
RE: Run Maintenance on a PC through Script. - 8/28/2006 1:28:41 AM
|
|
 |
|
| |
ebgreen
Posts: 4970
Score: 31
Joined: 7/12/2005
Status: offline
|
If the AV software outputs the scan results to a file then you should have no problem parsing the file and emailing the information that you are interested in.
_____________________________
"... when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick Goog places to start:http://www.visualbasicscript.com/m_24727/tm.htm http://www.visualbasicscript.com/m_47117/tm.htm
|
|
| |
|
|
|
 |
RE: Run Maintenance on a PC through Script. - 8/31/2006 6:53:01 AM
|
|
 |
|
| |
ebgreen
Posts: 4970
Score: 31
Joined: 7/12/2005
Status: offline
|
Well, generally we don't start at all. You start and we help you over the tough parts that you can't figure out. You should probably start with the Read Me First post that is pinned at the top of this forum.
_____________________________
"... when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick Goog places to start:http://www.visualbasicscript.com/m_24727/tm.htm http://www.visualbasicscript.com/m_47117/tm.htm
|
|
| |
|
|
|
 |
RE: Run Maintenance on a PC through Script. - 9/1/2006 8:23:44 AM
|
|
 |
|
| |
ebgreen
Posts: 4970
Score: 31
Joined: 7/12/2005
Status: offline
|
I would start by looking at the .Run and .Exec methods of the WshShell object. They would let you run whatever command line you determine is appropriate to do whatever virus scan that you want to do.
_____________________________
"... when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick Goog places to start:http://www.visualbasicscript.com/m_24727/tm.htm http://www.visualbasicscript.com/m_47117/tm.htm
|
|
| |
|
|
|
|
|