Re: Need script to create shares and assign securities
Byron Kendrick wrote:
I currently have the folders for new users residing on a server but need to
create the shares, assign the new users rights to their home directories,
and remove "everyone" from them. I used a script to create the users and it
created the folders in the proper location but not the shares. I need to
have this call up a list from a .txt file. If somewone can help me out or
point me to one I would certainly appreciate it.
Sadly, Microsoft's ftp server is gone (where RMTShare.exe was previously
available for download), but a copy is to be found here (I did a binary
compare with the RMTShare.exe that previously available on the FTP
server, and it is the same file):
Take a look here for a vbscript that creates a share and sets
share rights with RMTShare.exe:
Q. How can I modify share permissions from the command line?
WMI (from e.g. VBScript)
For some examples:
See "Create a Network Share" and "Modify a Network Share" here:
You can set the security descriptor for the shares with WMI as well..
Here is a couple of examples on the SetSecurityDescriptor method in Class
Win32_LogicalShareSecuritySetting (disregard that they use
wbemscripting.swbemlocator instead of winmgmts:, the rest will be the same):
From: Max L. Vaughn (maxvonl...@xxxxxxxxxxxxx)
Subject: RE: Add User to sharefolder
Date: 2001-11-16 14:01:51 PST
From: [MS] Tim Chen (timchen2...@xxxxxxxxxxx)
Subject: Re: Folder Security
Date: 2002-06-13 13:06:05 PST
ADSI (from e.g. VBScript)
torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway
Administration scripting examples and an ONLINE version of
the 1328 page Scripting Guide:
- Re: Share disk
... Microsoft's ftp server is gone (where RMTShare.exe was previously ... WMI (from e.g. VBScript) ... Newsgroups: microsoft.public.win32.programmer.wmi ... torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway Administration scripting examples and an ONLINE version of the 1328 page Scripting Guide: ...
- Re: command line to call dialer
... Using rasdial.exe from a command line or a VBScript is an ... Subject: dial a connection ... Newsgroups: microsoft.public.scripting.wsh ... Administration scripting examples and an ONLINE version of the 1328 page Scripting Guide: ...
- Re: Is there a way to obtain Share Permissions & ACLs.
... want a tool that I can run on all the servers which will show me the Shares the server has, the Permissions to the Shares, & the Folder & File security ACL's so that I can get a good feel for where we're starting from. ... torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway Administration scripting examples and an ONLINE version of the 1328 page Scripting Guide: http://www.microsoft.com/technet/scriptcenter/default.mspx. ...
- Re: WMI - how to get shares permissions info
... > I'd like to create something, what allows me to see all shares in the ... > computer and their ACLs. ... For Win2k/WinXP/Win2k3, WMI can be used: ... -- torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway Administration scripting examples and an ONLINE version of the 1328 page Scripting Guide: ...
- Re: How do I change default permissions for shares?
... > creating new shares. ... Example on using SetACL to set permission on a share: ... Q. How can I modify share permissions from the command line? ... Microsoft MVP Scripting and WMI, ...