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.4.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
asked in OCS Inventory NG agent for Windows by (510 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"

answered by (510 points)
 
Powered by Question2Answer
...