Building a better - DOSInAnIcon -> Shellscript

Antworten
thinkabout
Beiträge: 8
Registriert: 03 Dez 2024, 09:58

Building a better - DOSInAnIcon -> Shellscript

Beitrag von thinkabout »

Hi, i have a cmd that i need to run on some machines, i have this working my old opsi.

I know shellscripting is in prefer method now

I took look to the manual but still need help. ( https://docs.opsi.org/opsi-docs-en/4.3/ ... hellscript )

Can someone help me build a decent setup.opsiscript ?

---

[Actions]
requiredWinstVersion >= "4.11.2.1"

DefVar $LogDir$
DefVar $ProductId$

Set $LogDir$ = "%SystemDrive%\tmp"

; ----------------------------------------------------------------
; - Please edit the following values -
; ----------------------------------------------------------------
Set $ProductId$ = "Windows-Defender-365"
; ----------------------------------------------------------------

Message "Instalando " + $ProductId$ + " ..."

comment "Start setup program"
ChangeDirectory "%SCRIPTPATH%"
;----------------------------------------------
DOSInAnIcon_64_install


; ----------------------------------------------------------------
; install section
; ----------------------------------------------------------------
[DOSInAnIcon_64_install]
WindowsDefenderATPLocalOnboardingScript.cmd
Antworten