Werbung: SecurityConsole.de verwaltet Ihre Computer mit Security Essentails aus der Cloud!
30 Tage kostenfrei testen und 20% Rabatt für Ihre Bestellung mit Promocode: WBF2685582
(Promocode gültig bis 31.12.2011)

Group:  English: Windows Server » microsoft.public.windows.server.scripting
Thread: Can this be fixed by a VBS and how

HTVi
TV Discussion Newsgroups

Can this be fixed by a VBS and how
Trebor 5/10/2007 8:50:00 PM
Hello to all

I got a bit of an issue here that I think using the right script will fix
but not sure where to start looking or how to set it up.

The issue is resetting security permissions on a large amount of files in a
folder that resides on a Windows 2003 R2 STD Server. These files had the user
listings in the security tab removed so now they can not be accessed by
anyone unless the logged on user takes ownership of them. I want to either
build a custom script that will restore permissions to the domain users or
use a copy of a script as a template to use to.

Any suggestions?

Thanks,

--
Trebor
Re: Can this be fixed by a VBS and how
"Al Dunbar" <AlanDrub[ at ]hotmail.com.nospaam> 5/10/2007 11:42:44 PM

"Trebor" <Trebor[ at ]discussions.microsoft.com> wrote in message
news:DE51E0F4-C552-419E-967D-37AC89E5EA6B[ at ]microsoft.com...
[Quoted Text]
> Hello to all
>
> I got a bit of an issue here that I think using the right script will fix
> but not sure where to start looking or how to set it up.
>
> The issue is resetting security permissions on a large amount of files in
> a
> folder that resides on a Windows 2003 R2 STD Server. These files had the
> user
> listings in the security tab removed so now they can not be accessed by
> anyone unless the logged on user takes ownership of them. I want to either
> build a custom script that will restore permissions to the domain users or
> use a copy of a script as a template to use to.
>
> Any suggestions?

By "having the user listings in the security tab removed" do you mean that
the files have had all permissions revoked for all users? If so, then the
only account that will be able to make any permissions changes will be an
administrator, and even then it will first need to take ownership of all of
the files. I'm not sure, but I'd guess that a resource kit tool exists that
will do that.

Once that is done, the permissions will need to be re-applied, not restored,
as the old permissions no longer exist. Do you have a way of determining
what the individual file permissions should be?

/Al


Re: Can this be fixed by a VBS and how
"Jeremy" <jeremy[ at ]discussions.microsoft.com> 5/13/2007 11:01:25 AM
Have a look at a utility called setacl http://setacl.sourceforge.net/

You can use this to take ownership and then to add the permissions you want
via a script.


"Trebor" <Trebor[ at ]discussions.microsoft.com> wrote in message
news:DE51E0F4-C552-419E-967D-37AC89E5EA6B[ at ]microsoft.com...
[Quoted Text]
> Hello to all
>
> I got a bit of an issue here that I think using the right script will fix
> but not sure where to start looking or how to set it up.
>
> The issue is resetting security permissions on a large amount of files in
> a
> folder that resides on a Windows 2003 R2 STD Server. These files had the
> user
> listings in the security tab removed so now they can not be accessed by
> anyone unless the logged on user takes ownership of them. I want to either
> build a custom script that will restore permissions to the domain users or
> use a copy of a script as a template to use to.
>
> Any suggestions?
>
> Thanks,
>
> --
> Trebor

Home | Search | Terms | Imprint Contact
Newsgroups Reader - provided by WiredBox.Net
Suche nach Orten, Städten, Postleitzahlen, Vorwahlen, Kfz-Kennzeichen