Hi
d.oertel, thank you for reply.
I want to understand it better ..
.. So opsi-winst stand for (WinBatch, DosBatch,ExecWith, Files etc) secondary sections ?
And to use opsi-winst parameters I need to call "winst" after Secondary section ?
Like?:
Code: Alles auswählen
DosBatch_bitlocker winst /usercontext "OPSI\user" /password "***"
[DosBatch_bitlocker]
"%scriptpath%\bitlocker.cmd"
This line gives me:
Code: Alles auswählen
...
[5] [Sep 04 20:38:58:386] [bitlocker] message Installing Bitlocker...
[5] [Sep 04 20:38:58:405] [bitlocker] Execution of: DosBatch_bitlocker winst /usercontext "OPSI\user" /password "***"
[7] [Sep 04 20:38:58:405] [bitlocker] Save to file with encoding: system
[7] [Sep 04 20:38:58:407] [bitlocker] Executing "cmd.exe" /C c:\opsi.org\tmp\_opsiscript_Op90Ws61.cmd
[6] [Sep 04 20:38:58:927] [bitlocker] ExitCode 0
[7] [Sep 04 20:38:58:933] [bitlocker] The file: c:\opsi.org\tmp\_opsiscript_Op90Ws61.cmd has been deleted
[6] [Sep 04 20:38:58:933] [bitlocker] Search "c:\opsi.org\tmp\"
[6] [Sep 04 20:38:58:933] [bitlocker] Search "c:\opsi.org\tmp\_opsiscript_*"
[6] [Sep 04 20:38:58:933] [bitlocker] File "c:\opsi.org\tmp\_opsiscript_Io22Kx61.cmd"
[6] [Sep 04 20:38:58:934] [bitlocker] The file is 1 day(s) old, no deletion
[6] [Sep 04 20:38:58:934] [bitlocker] EndIf
[1] [Sep 04 20:38:58:934] [bitlocker] ___________________
[1] [Sep 04 20:38:58:934] [bitlocker] script finished: success
[1] [Sep 04 20:38:58:934] [bitlocker] 0 errors
[1] [Sep 04 20:38:58:934] [bitlocker] 0 warnings
...
Durring installation cmd windows showing up for split seconds, with some errors (i presume), but i don't know how to log output of bitlocker.cmd
If I'm doing this totally wrong, could you please give me some examples ?
Thank you
To clarify,
This script work as intended on domain user account and local account with cmd run as different user (domain)