Re: XCACLS.vbs /r switch removes everyone
- From: "Glenn" <nospam@xxxxxxxxx>
- Date: Mon, 13 Aug 2007 20:47:38 -0400
That did it! Thank you very much!
"Al Dunbar" <AlanDrub@xxxxxxxxxxxxxxxxxxx> wrote in message news:O$Xavmg3HHA.748@xxxxxxxxxxxxxxxxxxxxxxx
"Glenn" <nospam@xxxxxxxxx> wrote in message news:u1FTpXg3HHA.748@xxxxxxxxxxxxxxxxxxxxxxxI've tried it both ways, with and without quotes, no luck. It deletes all users.
If xcacls.vbs works the same as cacls.exe, you will need to include the /e switch to "edit" the permissions. If not then the permissions specified are the only ones the object will have. Sorry I did not catch this one sooner...
/Al
"Richard Mueller [MVP]" <rlmueller-nospam@xxxxxxxxxxxxxxxxxxxx> wrote in message news:eeRYmXf3HHA.3400@xxxxxxxxxxxxxxxxxxxxxxxGlenn wrote:
I'm following the directions from this KB http://support.microsoft.com/kb/825751#
when I try to use the /r switch to remove rights for a particular user, it removes rights for all users - when I pull up the security settings, absolutely no one is listed...I have to add administrator in and give them full rights so that I can delete the folder.
I'm using this:
scacls.vbs "C:\test" /r "myuser"
(where myuser is an actual name on the server).
I've tried it with the quotes and without...both do the same thing.
I believe the user should be either:
MyComputer\UserName
or
MyDomain\UserName
The first is a local account called "UserName" on the computer with NetBIOS name "MyComputer". The second is a domain account with NT name (pre-Windows 2000 logon name) of "UserName" in the domain with NetBIOS name "MyDomain". I would use quotes, since the examples in the link use them and it can't hurt.
--
Richard Mueller
Microsoft MVP Scripting and ADSI
Hilltop Lab - http://www.rlmueller.net
--
.
- References:
- XCACLS.vbs /r switch removes everyone
- From: Glenn
- Re: XCACLS.vbs /r switch removes everyone
- From: Richard Mueller [MVP]
- Re: XCACLS.vbs /r switch removes everyone
- From: Glenn
- Re: XCACLS.vbs /r switch removes everyone
- From: Al Dunbar
- XCACLS.vbs /r switch removes everyone
- Prev by Date: Re: User Accounts how to show Created by:
- Next by Date: Re: Delete Printer Connections for specific server
- Previous by thread: Re: XCACLS.vbs /r switch removes everyone
- Next by thread: Re: User Accounts how to show Created by:
- Index(es):
Relevant Pages
|