View Single Post
Old 06-12-2008   #3 (permalink)
Géry


 
 

Re: Setting share permissions on a files server that does not supp

Thx Marco for you fast reply.
But on these Netapp filers (NAS) you can not run any script to change the
share permissions.
I can create the share and set the permissions using the standard
"shrpubw.exe" 'Create a Shared folder wizard.' This EXE does not use WMI and
it is able to create set security on remote NAS devices

Géry

"Marco Shaw [MVP]" wrote:
Quote:

> Géry wrote:
Quote:

> > Hi,
> >
> > I am trying to create a remote share on a server that does not support WMI
> > (Netapp filer) using powershell.
> > So far I can create and delete shares but I am unable to set the share
> > permissions correctly !
>
> I can't find anything else that doesn't depend on WMI.
>
> Now, I wonder... Can you:
> 1. Create the share with your scripts.
> 2. Mount it locally.
> 3. Copy a script to the share.
> 4. Run the script (and it makes the share perm changes).
>
> This link indicates that these permissions are apparently also listed in
> the registry:
> http://www.tek-tips.com/viewthread.c...1158235&page=1
>
> Marco
>
> --
> Microsoft MVP - Windows PowerShell
> http://www.microsoft.com/mvp
>
> PowerGadgets MVP
> http://www.powergadgets.com/mvp
>
> Blog:
> http://marcoshaw.blogspot.com
>
My System SpecsSystem Spec