Jakub Erne

HCmD log gathering tool (Command Director) - hint

Discussion created by Jakub Erne on Dec 30, 2014

Hello Guys,

 

Little hint for HCmD Logs Gathering Tool.

When you trying to start this tool (hcmdras.bat) you can face a problem with privileges on Windows. That's happend because batch is looking for specific username in local Administrators group but you can have admin privileges add through domain group. Just rem to following lines (103-108) in hcmdras.bat.

 

Before:

@rem check user has administrator priviledges or not

    net localgroup Administrators | find /I "%USERNAME%" 2> nul 1> nul

    if not %errorlevel% == 0 (

@rem ERR_RAS0105 User does not have administrator privileges.

    set ERRFLAG=7

    GOTO ERRLIST



After:

@rem check user has administrator priviledges or not

     @rem net localgroup Administrators | find /I "%USERNAME%" 2> nul 1> nul

     @rem if not %errorlevel% == 0 (

@rem ERR_RAS0105 User does not have administrator privileges.

     @rem set ERRFLAG=7

     @rem GOTO ERRLIST

 

After that tools runs without problems

 

Regards,

Jakub

Outcomes