Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Server > Scripting > Re: VBScript to Check DC Server Health

Reply
Thread Tools Display Modes

Re: VBScript to Check DC Server Health

 
 
chris flynn
Guest
Posts: n/a

 
      11-04-2010
Did you get a response to this other than that of using MPSReports? Does it work, can you post it here so I can modify it. I currently just use a Batch file to run some of these checks and then a VBScript file to send me the results however I am trying to script the whole thing just like you.

---------------------------------------------------------
@echo on
REM Daily Check Automated Output.

cls
cd\

Date /T > E:\DailyChecks\dailychecks.txt

Time /T >> E:\DailyChecks\dailychecks.txt

dcdiag >> E:\DailyChecks\dailychecks.txt

netdiag >> E:\DailyChecks\dailychecks.txt

defrag c: -a -v >> E:\DailyChecks\dailychecks.txt

repadmin /replsummary >> E:\DailyChecks\dailychecks.txt

ipconfig /all >> E:\DailyChecks\dailychecks.txt

for /f "tokens=1-5 delims=/ " %%d in ("%date%") do rename E:\DailyChecks\dailychecks.txt DC001_DailyChecks_%%d%%e%%f.txt

cscript C:\Scripts\sendmail.vbs

C:\Scripts\cleanupoldfiles.cmd
---------------------------------------------------------

Hope this is useful and await your response.

Thanks

> On Thursday, June 17, 2010 11:46 AM meridean wrote:


> Does anyone have any scripts already written which does any of the
> following:
>
> DCDIAG
> NETDIAG
> Extract and List Errors and Warnings from Event Logs including the
> results of NT Backup
> Check Disk Fragmentation
> Check Disk Free Space
> Check AV Status (Landesk)
> Check the results of Scheduled tasks
> Check AD Replication (repadmin /replsummary)
> Check WINS Status
>
> I need to create a script which does all of the above, however would
> appreciate if anyone has a script which does some of the above which I
> can then modify. I am ideally looking to get the results of the above
> into 1 outputted document.
>
> I hope someone is able to assist.
> Many Thanks



>> On Saturday, June 26, 2010 4:18 AM addy wrote:


>> Why do you want to reinevnt the wheel, use MPS reports and it gives
>> you a packaged output with seperate log which you can use your
>> VBScript to parse,
>>
>> PFE version
>> http://www.microsoft.com/downloads/d...displaylang=en
>>
>> Normal version
>> http://www.microsoft.com/downloads/d...displaylang=en
>>
>> Fiddle arround with these and you would get the desired outputs.
>>
>> HTH
>> Addy



>> Submitted via EggHeadCafe - Software Developer Portal of Choice
>> ASP.NET 4.0 browser capabilities
>> http://www.eggheadcafe.com/tutorials...abilities.aspx

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Same issue here on 2008 Standard Edition Jeff Goldman Windows Server 0 08-10-2010 11:54 AM
disable Exchange Server 2003 Smart Host janine Giganti Windows Small Business Server 0 07-27-2010 02:30 PM
sbs 2003 network slow why? john Windows Small Business Server 9 04-03-2010 11:10 PM
2nd Domain in a 2 domain forest cannot be contacted David Alge DNS Server 30 01-21-2010 05:26 AM
I also have an error 646 in Windows update. Please help. Jose Windows Update 12 01-09-2010 01:00 PM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59