General discussion

Locked

Script to generate multiple NT reports

By GDent ·
If it is possible, please teach me to write a script to enter all the report generation commands specified in Microsoft Support Article #Q137848 at http://support.microsoft.com/support/kb/articles/Q137/8/48.asp?LN=EN-US&SD=gn&FR=0&qry=Q137848&rnk=1&src=DHCS_MSPSS_gn_SRCH&SPR=NTS. Where are scripts entered. I have downloaded ScripIt but don't know how to use it - even after reading instructions. Thanks

This conversation is currently closed to new comments.

8 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

Script to generate multiple NT reports

by GDent In reply to Script to generate multip ...

Point value changed by question poster.

Collapse -

Script to generate multiple NT reports

by GDent In reply to Script to generate multip ...

Point value changed by question poster.

Collapse -

Script to generate multiple NT reports

by GDent In reply to Script to generate multip ...

Point value changed by question poster.

Collapse -

Script to generate multiple NT reports

by Mark Fenwick In reply to Script to generate multip ...

Having just looked at the article you supplied the URL for; the commands given require the use of an ordinary batch file.

Create a file batch file called myreport.bat, or whatever you want to call it, and add the following text into it:

@echo off
NET USERS /DOMAIN > C:\Reports\USERS.TXT
NET ACCOUNTS /DOMAIN > C:\Reports\ACCOUNTS.TXT
NET CONFIG SERVER > C:\Reports\SERVER.TXT
NET CONFIG WORKSTATION > C:\Reports\WKST.TXT
NET GROUP /DOMAIN > C:\Reports\DGRP.TXT
NET LOCALGROUP > C:\Reports\LGRP.TXT
NET VIEW /DOMAIN:DOMAINNAME > C:\Reports\VIEW.TXT
ADDUSERS \\COMPUTERNAME /D C:\Reports\USERINFO.TXT
PERMS COMPUTERNAME\USERNAME C:\*.* /S > C:\Reports\PERMS.TXT

Save the file and run it from the command line, make sure you have a c:\reports directory or change the output path in the batch file.

I have not tested the syntax of the commands given in Microsoft?s article, they look okay but, if there are any problems, remove the echo off line to get an idea what might be wrong.

Hope this helps.

Mark

Collapse -

Script to generate multiple NT reports

by GDent In reply to Script to generate multip ...

The question was auto-closed by TechRepublic

Collapse -

Script to generate multiple NT reports

by estebandelatorre In reply to Script to generate multip ...

Script files are similar to D.O.S. .bat files, usually they runs in NT envirmonment
Open notepad, write the instructions one per line, and save te file with the .cmd or .bat extension.
Open a DOS box, go to the path where you have created the file, and run it.
Be sure to have the c:\reports directory already created. The code seems to be good, but if you find problems, debug it, opening a dos box and type the entry line followed by "Enter". This will allows you to run it step by step

Collapse -

Script to generate multiple NT reports

by GDent In reply to Script to generate multip ...

The question was auto-closed by TechRepublic

Collapse -

Script to generate multiple NT reports

by GDent In reply to Script to generate multip ...

This question was auto closed due to inactivity

Back to Networks Forum
8 total posts (Page 1 of 1)  

Related Discussions

Related Forums