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.11.1 available

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

Run ocs windows deploy as different user

I have seen that if do a windows deploy using a launch and a bat file , the script is run under SYSTEM user. Is there any way to run it as a different user or to run the commands in it as a different user (ex admin).

Thank you
in OCS Inventory NG agent for Windows by (730 points)

1 Answer

0 votes

I found the solution after a few hours of searching and testing.

psexec \\localhost - u User -p Password -h cmd /c "echo hey1 & echo hey2"

by (730 points)
Powered by Question2Answer