Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


XCACLS.VBS error code

 
Logged in as: Guest
arrSession:exec spGetSession 2,2,48459
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> XCACLS.VBS error code
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 XCACLS.VBS error code - 6/19/2007 12:30:57 AM   
  zdarma

 

Posts: 6
Score: 0
Joined: 6/13/2007
Status: offline
I keep getting an error code when I try to run my script. The error I get is :

"Error: error Code = 5     (Msg#544)"

I searched for what the problem is, but I was unable to find anything.

My script is as follows :

cscript C:\toto\XCACLS.vbs %systemroot%\system32 /E /G DOMAIN_NAME\%username%:F /SPEC A
cscript C:\toto\XCACLS.vbs %systemroot%\web /E /G DOMAIN_NAME\%username%:X /SPEC A
copy \\SERVER_NAME\FOLDER\screen_saver\CORP_SCR_SAVER.scr %systemroot%\system32
copy \\SERVER_NAME\FOLDER\screen_saver\CORP_BKGD_DESKTOP.jpg  %systemroot%\web\wallpaper
cscript C:\toto\XCACLS.vbs %systemroot%\system32\CORP_SCR_SAVER.scr /E /G DOMAIN_NAME\%username%:X /SPEC A
cscript C:\toto\XCACLS.vbs %systemroot%\system32 /E /G DOMAIN_NAME\%username%:R /SPEC A
cscript C:\toto\XCACLS.vbs %systemroot%\web /P DOMAIN_NAME\%username%:R /SPEC A



The only line that doesn't get the error is the first line. All the other lines gives me the above mentioned error code.
The folder I copy the files from are public folders, that everyone has access to, so I know thats not the problem or atleast I don't think it comes from there.

Does anyone have any ideas?
 
 
Post #: 1
 
 RE: XCACLS.VBS error code - 6/19/2007 12:44:20 AM   
  ginolard


Posts: 1024
Score: 21
Joined: 8/10/2005
Status: offline
Posting the script would help ;)

_____________________________

Author of ManagePC - http://managepc.net
AD Query Template - http://www.visualbasicscript.com/m_40609/tm.htm
Consolidated Scripting Framework - http://www.visualbasicscript.com/m_59109/tm.htm

(in reply to zdarma)
 
 
Post #: 2
 
 RE: XCACLS.VBS error code - 6/19/2007 12:47:27 AM   
  dm_4ever


Posts: 2432
Score: 38
Joined: 6/29/2006
From: Orange County, California
Status: offline
You can get xcacls.vbs from here: http://support.microsoft.com/kb/825751

_____________________________

dm_4ever

My philosophy: K.I.S.S - Keep It Simple Stupid
Read Me: http://www.visualbasicscript.com/m_24727/tm.htm
Frequently Asked Stuff: http://www.visualbasicscript.com/m_47117/tm.htm

(in reply to zdarma)
 
 
Post #: 3
 
 RE: XCACLS.VBS error code - 6/19/2007 12:47:40 AM   
  zdarma

 

Posts: 6
Score: 0
Joined: 6/13/2007
Status: offline
I thought I did. Did  u happen to notice all the lines with cscript C:\toto................ 
Of course, here it is again.



      

(in reply to ginolard)
 
 
Post #: 4
 
 RE: XCACLS.VBS error code - 6/19/2007 12:52:37 AM   
  zdarma

 

Posts: 6
Score: 0
Joined: 6/13/2007
Status: offline
I got the XCACLS.vbs, its the error code that I can't figure out.

(in reply to dm_4ever)
 
 
Post #: 5
 
 RE: XCACLS.VBS error code - 6/19/2007 1:34:41 AM   
  gdewrance


Posts: 587
Score: 3
Joined: 3/16/2006
Status: offline
and if you do it like this

cscript C:\toto\XCACLS.vbs %systemroot%\system32 /E /G /SPEC A /P "%userdomain%\%username%":F

(in reply to zdarma)
 
 
Post #: 6
 
 RE: XCACLS.VBS error code - 6/19/2007 7:35:18 PM   
  ginolard


Posts: 1024
Score: 21
Joined: 8/10/2005
Status: offline
Well, how about that, I didn't know XCACLS existed as a VBS too.  I've always used the EXE version.

Just goes to show you are never too old to learn something new.

_____________________________

Author of ManagePC - http://managepc.net
AD Query Template - http://www.visualbasicscript.com/m_40609/tm.htm
Consolidated Scripting Framework - http://www.visualbasicscript.com/m_59109/tm.htm

(in reply to gdewrance)
 
 
Post #: 7
 
 RE: XCACLS.VBS error code - 6/22/2007 6:44:24 AM   
  zdarma

 

Posts: 6
Score: 0
Joined: 6/13/2007
Status: offline
Thanks it worked like a charm.

(in reply to gdewrance)
 
 
Post #: 8
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> WSH & Client Side VBScript >> XCACLS.VBS error code Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts