Permissions and VBScript

  • Thread starter Thread starter Johan Almblad
  • Start date Start date
J

Johan Almblad

Is it possible to script permissions on folders and shares in Win 2000?

Johan Almblad
 
Dear Johan,

Thank you for your post.

My understanding is that you want to use script the manage permissions on
folders and shares. Is it corret?

I think we can call an additional tool in the script. We have a Resource
Kit tool called SubInACL can be used to manage permission on folders,
shares, and registry keys.

For example, we may use the following sample code in the VB script:

'Sample

Dim WshShell
Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.Run "subinacl /subdirectories %SystemDrive%
/grant=administrators=f", 1, false

The above sample will grant the Administrators group the full-control
permission on the system partition.

For the usage of SubInACL, you can run "SubInAcl /help /full".

I hope the above information helps. Have a nice day!

Regards,
Joe Wu
Product Support Services
Microsoft Corporation

Get Secure! - www.microsoft.com/security

====================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
====================================================
This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------
|From: "Johan Almblad" <[email protected]>
|Subject: Permissions and VBScript
|Date: Fri, 15 Aug 2003 13:23:57 +0200
|Lines: 5
|Organization: Nya Dagen, Sweden
|X-Priority: 3
|X-MSMail-Priority: Normal
|X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
|X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
|Message-ID: <[email protected]>
|Newsgroups: microsoft.public.win2000.networking
|NNTP-Posting-Host: 62.119.137.38
|Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!tk2msftngp13.phx.gbl
|Xref: cpmsftngxa06.phx.gbl microsoft.public.win2000.networking:32677
|X-Tomcat-NG: microsoft.public.win2000.networking
|
|Is it possible to script permissions on folders and shares in Win 2000?
|
|Johan Almblad
|
|
|
 
Back
Top