Quantcast
Channel: Windows PowerShell Forum
Viewing all articles
Browse latest Browse all 2314

MSI aus Script aufrufen

$
0
0

Hallo
zusammen<o:p></o:p>

Ich bin
ziemlich neu in Powershell und habe eine kleine Frage.<o:p></o:p>

für die
Installation einer EXE Datei via SCCM software Verteilung habe ich folgendes
Script erstellt.<o:p></o:p>

$scriptRoot = Split-Path -Path $MyInvocation.MyCommand.Path

Start-Process "$scriptRoot\SslvpnClient.msi" /qn
<o:p></o:p>

die
Manuelle Verteilung funktioniert problemlos. doch sobald ich es via SCCM
Verteilen möchte erhalte ich einen Fehler.<o:p></o:p>

Meine
Vermutungt ist, das irgend wo noch ein EXIT rein müsste, damit er das Script
schliest nach der Installation.<o:p></o:p>

Dies habe
ich wie folgt versucht:<o:p></o:p>

$scriptRoot = Split-Path -Path $MyInvocation.MyCommand.Path

Start-Process "$scriptRoot\SslvpnClient.msi" /qn

{Exit} <o:p></o:p>

Leider geht
das aber auch nicht. Kann mir da jemand weiterhelfen. Besten Dank im Voraus<o:p></o:p>




Viewing all articles
Browse latest Browse all 2314


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>