Client Management Suite

 View Only
  • 1.  Return code List/Chart/Reference - Newbie here

    Posted Dec 06, 2016 09:14 AM

    Hi All,

     

    Good day!, I would like to know if there is a Chart/List/Reference that I could check for return codes?

    Currently I'm getting Status Failed Return Code 160

     

    Thank you!



  • 2.  RE: Return code List/Chart/Reference - Newbie here

    Broadcom Employee
    Posted Dec 08, 2016 03:59 AM

    What action has returned this error code? Task execution of Software installation?



  • 3.  RE: Return code List/Chart/Reference - Newbie here

    Posted Dec 08, 2016 09:05 PM

    Hi Igor,

    Thank you for your response.

    I ran a Job script to provide access on a c:\program files\.... to have read\write for everyone who is using that specific client.

    cacls “C:\Program Files\.......” /t /c /e /g Everyone:c

    Is there any problem with my script?



  • 4.  RE: Return code List/Chart/Reference - Newbie here
    Best Answer

    Broadcom Employee
    Posted Dec 09, 2016 04:45 AM

    1. I see that client task instance returns this information after your command line execution

    C:\Windows\system32>cacls “C:\Program Files\.......” /t /c /e /g Everyone:c
    
        NOTE: Cacls is now deprecated, please use Icacls.
    
        Displays or modifies access control lists (ACLs) of files
    
        CACLS filename [/T] [/M] [/L] [/S[:SDDL]] [/E] [/C] [/G user:perm]
        [/R user [...]] [/P user:perm [...]] [/D user [...]]
        filename Displays ACLs.
        /T Changes ACLs of specified files in
        the current directory and all subdirectories.
        /L Work on the Symbolic Link itself versus the target
        /M Changes ACLs of volumes mounted to a directory
        /S Displays the SDDL string for the DACL.
        /S:SDDL Replaces the ACLs with those specified in the SDDL string
        (not valid with /E, /G, /R, /P, or /D).
        /E Edit ACL instead of replacing it.
        /C Continue on access denied errors.
        /G user:perm Grant specified user access rights.
        Perm can be: R Read
        W Write
        C Change (write)
        F Full control
        /R user Revoke specified user's access rights (only valid with /E).
        /P user:perm Replace specified user's access rights.
        Perm can be: N None
        R Read
        W Write
        C Change (write)
        F Full control
        /D user Deny specified user access.
        Wildcards can be used to specify more than one file in a command.
        You can specify more than one user in a command.
    
        Abbreviations:
        CI - Container Inherit.
        The ACE will be inherited by directories.
        OI - Object Inherit.
        The ACE will be inherited by files.
        IO - Inherit Only.
        The ACE does not apply to the current file/directory.
        ID - Inherited.
        The ACE was inherited from the parent directory's ACL.

    Seems like you have to use Icacls instead of cacls.

    If you want to see what command line outpout returns after task execution, then click on "Advanced" button in your task and set "Save script output with task status"

    Advanced_0.jpg

    2. Here is an article about return code after task execution on system



  • 5.  RE: Return code List/Chart/Reference - Newbie here

    Posted Jan 10, 2017 10:58 AM

    For a quick lookup of the description text for some of the error codes in Windows, type the following at a Command Prompt.

    net helpmsg <error_code>

    For error code 160, the result would be this.

    net helpmsg 160
    
    One or more arguments are not correct.

    This should help point you in the right direction.

    For a more complete list of Windows error codes, use this link.

    System Error Codes
    https://msdn.microsoft.com/en-us/library/windows/desktop/ms681381(v=vs.85).aspx