Hallo zusammen,
wir würden gerne ein VBS Skript als aktuell angemeldeter User ausführen.
Wir hätten dies mit einem Userlogonscript versucht:
Unsere Control Datei sieht folgendermaßen aus:
[Product]
setupScript: services.opsiscript
userLoginScript: services.opsiscript
Unser OPSI Script hätten wir folgendermaßen versucht:
Files_Copy_Install
Winbatch_install_vbs /SysNative
[Files_Copy_Install]
copy "%Scriptpath%\services.vbs" "C:\temp"
[Winbatch_install_vbs]
"%SystemRoot%\system32\cscript.exe" "C:\temp\services.vbs"
Leider bringen wir das OPSI Paket nicht lauffähig, da beim Anmelden des Users die VBS-Datei nicht ausgeführt wird.
Der Kopiervorgang funktioniert allerdings.
Könnt ihr uns hier weiterhelfen?
Vielen Dank im Voraus
VBS Skript als lokal angemeldeter User ausführen
- SisterOfMercy
- Beiträge: 1556
- Registriert: 22 Jun 2012, 19:18
Re: VBS Skript als lokal angemeldeter User ausführen
It looks like you are missing a ProfileActions section?
Example to be inserted after the actions section:
Example to be inserted after the actions section:
Code: Alles auswählen
[ProfileActions]
DefStringList $ProductInfo$
DefVar $InstallationState$
set $ProductInfo$ = getProductMap
set $InstallationState$ = getValue("installationstate", $ProductInfo$)
DefVar $INST_MsVersion$
set $INST_MsVersion$ = GetMsVersionInfo
if (CompareDotSeparatedNumbers($INST_MsVersion$, "=", "10.0"))
if ($InstallationState$ = "installed")
if not (scriptWasExecutedBefore)
comment "loginscript was not run before"
Winbatch_section /RunAsLoggedOnUser /SysNative
endif
endif
endif
Bitte schreiben Sie Deutsch, when I'm responding in the German-speaking part of the forum!