Welcome to OCS Inventory NG community support, where you can ask questions and receive answers from other members of the community.

Please ask questions only in English or French.

Release 2.12.3 available

The official documentation can be found on https://wiki.ocsinventory-ng.org. Read it before asking your question.

Deployment Agent not admin priviliges

Hi

When I am deploying packages it does not run as an Administrator.

I tested by using a script that writes Y or N depending on the user priviliges:

set admin=N
set domain=%USERDOMAIN%\
If /i "%domain%" EQU "%computername%\" set domain=
set user=%domain%%username%
for /f "Tokens=*" %%a in ('net localgroup administrators^|find /i "%user%"') do set admin=Y

echo %admin% >> admin.txt

My computers are not in a Windows domain.

When running locally as Administrator this writes Y but when running with OCS it writes N.

When I echo %username% (with the Agent) it writes computername$ which seems more like a windows domain/kerberos authentication.

Does your OCS deployment run as an administrator?
in OCS Inventory NG agent for Windows by (220 points)

1 Answer

0 votes
OCS deployment run as service, not as administrator.

Service account have more right than an admin account.
by (22k points)
OK, Thank you :)
 
Powered by Question2Answer
...