Re: XCACLS.vbs /r switch removes everyone



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@xxxxxxxxxxxxxxxxxxxxxxx
I'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@xxxxxxxxxxxxxxxxxxxxxxx
Glenn 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
--






.



Relevant Pages

  • Re: XCACLS.vbs /r switch removes everyone
    ... 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've tried it with the quotes and without...both do the same thing. ... The second is a domain account with NT name of "UserName" in the domain with NetBIOS name "MyDomain". ...
    (microsoft.public.windows.server.scripting)
  • Re: Domain takes away all local rights
    ... Thomas, thanks for the reply. ... the switch did not work. ... >Security Business Unit ... confers no rights. ...
    (microsoft.public.windowsxp.security_admin)
  • Re: Does a Cessna 152 have an afterburner?
    ... Agreed, better to test the switch, or as Ronald Reagan said, ... See http://www.fija.org/ more about your rights and duties. ... |>the key off at IDLE to be sure the mags can be killed. ... | switch as part of EVERY shutdown. ...
    (rec.aviation.piloting)
  • Vorsicht mit Netgear GS108T
    ... Ich habe mir einen netgear GS108T switch zugelegt. ... Netbios over TCP/ IP auf das Netz zugreifen. ... Datentransfer mit>GS108T< mangelhaft da: ...
    (de.comp.os.os2.misc)
  • Re: XCACLS.vbs /r switch removes everyone
    ... switch to "edit" the permissions. ... when I try to use the /r switch to remove rights for a particular user, ... I've tried it with the quotes and without...both do the same thing. ... The first is a local account called "UserName" on the computer with ...
    (microsoft.public.windows.server.scripting)

Quantcast