Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Script for displaying share permission's - !!

Status
Not open for further replies.

patstone

IS-IT--Management
Aug 20, 2004
168
GB
Hello.

I need to write a script that will display all shares & permission's on this shares for a remote server.

Please note I dont want to use any 3rd party tools

Can anyone help me out here !

Thanks
 
They are gonna ask you what you have so far, so you should post what you have written yourself
 
I am using rtmshare at the moment but the only result I can get is in a command promt like the example below.

I am new to scripting hence my post asking for help ...

C:\Kits\RTMshare>rmtshare \\server\share
Share name \\server\share
Path C:\share
Remark TEST
Maximum users No limit
Users 0
Permissions:
AD\username : FULL CONTROL
\Everyone : READ
The command completed successfully.
 
Is the information provided by rtmshare what you need? If so, then execute the command using WScript.Shell and the Exec Method and read the output via StdOut.

--------------------------------------------------------------------------------
dm4ever
My philosophy: K.I.S.S - Keep It Simple Stupid
 
To get share information for all shares on a server, then don't specify the share name.

rmtshare \\server

The above will report all shares for the server.
For anyone interested in rmtshare, it is free from MS. ftp://ftp.microsoft.com/bussys/winnt/winnt-public/reskit/nt40/i386/RMTSHAR.EXE.

I hope you find this post helpful.

Regards,

Mark

Check out my scripting solutions at
Work SMARTER not HARDER. The Spider's Parlor's Admin Script Pack is a collection of Administrative scripts designed to make IT Administration easier! Save time, get more work done, get the Admin Script Pack.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top