PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Hébergement serveur > ms..win.server.scripting > Re: script for assigning folder permissions
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
Re: script for assigning folder permissions

Réponse
 
LinkBack Outils de la discussion
Vieux 08/09/2007, 18h42   #1
Al Dunbar
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: script for assigning folder permissions


"rocketz21" <rocketz21@discussions.microsoft.com> wrote in message
news:4AFD1FB0-90CC-43DA-A074-521A18DEEDF4@microsoft.com...
> Here is what I have done, but I'm afraid it won't work correctly from
> group
> policy:
>
> xcacls.vbs c:\fsp\ /g DOMAIN\"domain users":f /f /t /e /q
>
> Saved it as a .bat file. When I run the program the command prompt window
> stays open, anyway to hide it in the background?


run it as a scheduled task, or run it from a vbscript that causes its window
to be hidden. This seems to me a one-time thing done by an administrator, so
I'm not sure if the additional work required would be warranted to make it
more agreeable to run.

> If i want to include multiple folders, do I need to make separate lines
> for
> each or what's the correct syntax?


xcacls.vbs/.exe (and cacls.exe too) process one file or folder specification
(which can be a wildcard, if that s you) and all object processed have
the same permissions applied them. If you need to apply different
permissions, or if you cannot specify all the folders you want throug the
clever use of wildcards, or if you just want to make this simple and
manageable, you will need separate xcacls or cacls commands.

> What if the pc doesn't have the xcacls installed? Will it not work? I
> want
> to deploy this over group policy to ensure all the pcs have the correct
> permissions for any current and new employees.


Your system(s) is/are not w2k, but what are they? If they are XP or windows
server 2003, then they should already have installed an executable called
cacls.exe that is, by definition, compatible with NTFS on the respective
systems. xcacls.vbs seems to be a vbscript implementation of the resource
kit utility called xcacls.exe. That, in turn, was originally written to
address shortcomings of the version of cacls.exe that came with NT. With XP
and w2k3 we now have a native cacls.exe that is what it should have been all
along, and, imho, no further need for any of the xcacls variants out there.

/Al

> "rocketz21" wrote:
>
>> I'm looking for a script where I can set multiple folder permissions on
>> the
>> local hard drive. I've tried a setperms.vsb I found on microsoft, but
>> think
>> it is meant more for windows 2000 and didn't work.
>>
>> It can either be a bat or vbs file, doesn't matter to me.



  Réponse avec citation
Vieux 08/09/2007, 19h36   #2
rocketz21
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: script for assigning folder permissions

Thanks. I would like to run it as a vbs script to keep it in the backgroup
and run it from group policy. However, I am terrible at vbs scripts and
don't understand the formatting or how to create one on my own.

As for applying to multiple folders, can you show me an example? I don't
quite understand what you mean. The folders needs the same permissions for
domain users and also a file. Can you specifiy a specific file or files
within the script to have the same permissions?

There are 80% XP and 20% Windows 2000 pcs.

"Al Dunbar" wrote:

>
> "rocketz21" <rocketz21@discussions.microsoft.com> wrote in message
> news:4AFD1FB0-90CC-43DA-A074-521A18DEEDF4@microsoft.com...
> > Here is what I have done, but I'm afraid it won't work correctly from
> > group
> > policy:
> >
> > xcacls.vbs c:\fsp\ /g DOMAIN\"domain users":f /f /t /e /q
> >
> > Saved it as a .bat file. When I run the program the command prompt window
> > stays open, anyway to hide it in the background?

>
> run it as a scheduled task, or run it from a vbscript that causes its window
> to be hidden. This seems to me a one-time thing done by an administrator, so
> I'm not sure if the additional work required would be warranted to make it
> more agreeable to run.
>
> > If i want to include multiple folders, do I need to make separate lines
> > for
> > each or what's the correct syntax?

>
> xcacls.vbs/.exe (and cacls.exe too) process one file or folder specification
> (which can be a wildcard, if that s you) and all object processed have
> the same permissions applied them. If you need to apply different
> permissions, or if you cannot specify all the folders you want throug the
> clever use of wildcards, or if you just want to make this simple and
> manageable, you will need separate xcacls or cacls commands.
>
> > What if the pc doesn't have the xcacls installed? Will it not work? I
> > want
> > to deploy this over group policy to ensure all the pcs have the correct
> > permissions for any current and new employees.

>
> Your system(s) is/are not w2k, but what are they? If they are XP or windows
> server 2003, then they should already have installed an executable called
> cacls.exe that is, by definition, compatible with NTFS on the respective
> systems. xcacls.vbs seems to be a vbscript implementation of the resource
> kit utility called xcacls.exe. That, in turn, was originally written to
> address shortcomings of the version of cacls.exe that came with NT. With XP
> and w2k3 we now have a native cacls.exe that is what it should have been all
> along, and, imho, no further need for any of the xcacls variants out there.
>
> /Al
>
>

  Réponse avec citation
Vieux 10/09/2007, 01h02   #3
Al Dunbar
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: script for assigning folder permissions


"rocketz21" <rocketz21@discussions.microsoft.com> wrote in message
news:9ABB9C16-9465-4E3A-AA3D-E91FE00E4EA2@microsoft.com...
> Thanks. I would like to run it as a vbs script to keep it in the
> backgroup


"backgroup"? do you mean "background"?

> and run it from group policy. However, I am terrible at vbs scripts and
> don't understand the formatting or how to create one on my own.


and I haven't ever written scripts that are run via group policy, so I won't
be much here. Anyone else?

> As for applying to multiple folders, can you show me an example? I don't
> quite understand what you mean.


The xcacls.vbs command, which would most likely be executed from a batch
file, typically processes one file or folder at a time. To do more than one
folder you just need additional commands - just like the first one, but with
the folder names changed.

xcacls.vbs c:\fsp\ /g DOMAIN\"domain users":f /f /t /e /q
xcacls.vbs c:\glrp\ /g DOMAIN\"domain users":f /f /t /e /q

> The folders needs the same permissions for
> domain users and also a file. Can you specifiy a specific file or files
> within the script to have the same permissions?
>
> There are 80% XP and 20% Windows 2000 pcs.


I'm not sure if w2k includes a cacls.exe, but you could copy xcacls.exe to
those systems. Or xcacls.vbs, but do the w2k systems all have vbscript
installed?

/Al

>
> "Al Dunbar" wrote:
>
>>
>> "rocketz21" <rocketz21@discussions.microsoft.com> wrote in message
>> news:4AFD1FB0-90CC-43DA-A074-521A18DEEDF4@microsoft.com...
>> > Here is what I have done, but I'm afraid it won't work correctly from
>> > group
>> > policy:
>> >
>> > xcacls.vbs c:\fsp\ /g DOMAIN\"domain users":f /f /t /e /q
>> >
>> > Saved it as a .bat file. When I run the program the command prompt
>> > window
>> > stays open, anyway to hide it in the background?

>>
>> run it as a scheduled task, or run it from a vbscript that causes its
>> window
>> to be hidden. This seems to me a one-time thing done by an administrator,
>> so
>> I'm not sure if the additional work required would be warranted to make
>> it
>> more agreeable to run.
>>
>> > If i want to include multiple folders, do I need to make separate lines
>> > for
>> > each or what's the correct syntax?

>>
>> xcacls.vbs/.exe (and cacls.exe too) process one file or folder
>> specification
>> (which can be a wildcard, if that s you) and all object processed
>> have
>> the same permissions applied them. If you need to apply different
>> permissions, or if you cannot specify all the folders you want throug the
>> clever use of wildcards, or if you just want to make this simple and
>> manageable, you will need separate xcacls or cacls commands.
>>
>> > What if the pc doesn't have the xcacls installed? Will it not work? I
>> > want
>> > to deploy this over group policy to ensure all the pcs have the correct
>> > permissions for any current and new employees.

>>
>> Your system(s) is/are not w2k, but what are they? If they are XP or
>> windows
>> server 2003, then they should already have installed an executable called
>> cacls.exe that is, by definition, compatible with NTFS on the respective
>> systems. xcacls.vbs seems to be a vbscript implementation of the resource
>> kit utility called xcacls.exe. That, in turn, was originally written to
>> address shortcomings of the version of cacls.exe that came with NT. With
>> XP
>> and w2k3 we now have a native cacls.exe that is what it should have been
>> all
>> along, and, imho, no further need for any of the xcacls variants out
>> there.
>>
>> /Al
>>
>>



  Réponse avec citation
Vieux 10/09/2007, 01h46   #4
rocketz21
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: script for assigning folder permissions

yea, sorry, I meant background. What would the syntax be to run it as a vbs?
I tried saving the file as a .vbs, but there needs to be some additional
formating that I'm clueless about.

I don't want a window to pop up on the desktop like it does for the batch
file.

"Al Dunbar" wrote:

>
> "rocketz21" <rocketz21@discussions.microsoft.com> wrote in message
> news:9ABB9C16-9465-4E3A-AA3D-E91FE00E4EA2@microsoft.com...
> > Thanks. I would like to run it as a vbs script to keep it in the
> > backgroup

>
> "backgroup"? do you mean "background"?
>
> > and run it from group policy. However, I am terrible at vbs scripts and
> > don't understand the formatting or how to create one on my own.

>
> and I haven't ever written scripts that are run via group policy, so I won't
> be much here. Anyone else?
>
> > As for applying to multiple folders, can you show me an example? I don't
> > quite understand what you mean.

>
> The xcacls.vbs command, which would most likely be executed from a batch
> file, typically processes one file or folder at a time. To do more than one
> folder you just need additional commands - just like the first one, but with
> the folder names changed.
>
> xcacls.vbs c:\fsp\ /g DOMAIN\"domain users":f /f /t /e /q
> xcacls.vbs c:\glrp\ /g DOMAIN\"domain users":f /f /t /e /q
>
> > The folders needs the same permissions for
> > domain users and also a file. Can you specifiy a specific file or files
> > within the script to have the same permissions?
> >

> I'm not sure if w2k includes a cacls.exe, but you could copy xcacls.exe to
> those systems. Or xcacls.vbs, but do the w2k systems all have vbscript
> installed?
>
> /Al


  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 13h16.


Édité par : vBulletin® version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,13672 seconds with 12 queries