MSI.EXEC su macchina remota usando PowerShell 2.0


0

Ciao, ho un pacchetto MSI su Server1 e voglio installarlo su Server2. E il pacchetto MSI è su Server1. Può qualsiasi aiuto nell'impostazione del percorso del file remoto del programma di installazione.

Invoke-Command -ScriptBlock {Start-Process "msiexec.exe" -ArgumentList "/i \\Server1\d$\Drop\Package\DirectMSI.msi /lvx C:\installer.log INSTALLLOCATION=D:\Websites\DirectDevInt ENVPROPERTY=DEV  /quiet" -Wait} -ComputerName "Server2"

Il problema principale è come impostare il percorso del file "\ Server1 \ d $ \ Drop \ Package \ DirectMSI.msi"

Vedi sotto il registro:

=== Verbose logging started: 4/8/2013  13:00:27  Build type: SHIP UNICODE 5.00.7601.00  Calling process: C:\Windows\system32\msiexec.exe ===
MSI (c): Resetting cached policy values
MSI (c): Machine policy value 'Debug' is 0
MSI (c): ******* RunEngine: ******* Product: \\Server1\d$\Drop\Package\DirectMSI.msi
******* Action:  ******* CommandLine: **********
MSI (c): Client-side and UI is none or basic: Running entire install on the server.
MSI (c):Grabbed execution mutex.
MSI (c): Cloaking enabled.
MSI (c): Attempting to enable all disabled privileges before calling Install on Server
MSI (c): Incrementing counter to disable shutdown. Counter after increment: 0
MSI (s): Running installation inside multi-package transaction \\Server1\d$\Drop\Package\DirectMSI.msi
MSI (s): Grabbed execution mutex.
MSI (s): Resetting cached policy values
MSI (s): Machine policy value 'Debug' is 0
MSI (s)******* RunEngine:******* Product: \\Server1\d$\Drop\Package\DirectMSI.msi
 ******* Action: 
 ******* CommandLine: **********
MSI (s) Note: 1: 2203 2: \\Server1\d$\Drop\Package\DirectMSI.msi 3: -2147287035 
MSI (s): MainEngineThread is returning 1619
MSI (s): User policy value 'DisableRollback' is 0
MSI (s): Machine policy value 'DisableRollback' is 0
MSI (s): Incrementing counter to disable shutdown. Counter after increment: 0
MSI (s): Note: 1: 1402 2: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Installer\Rollback\Scripts 3: 2 
MSI (s): Note: 1: 1402 2: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Installer\Rollback\Scripts 3: 2 
MSI (s): Note: 1: 1402 2: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Installer\InProgress 3: 2 
MSI (s): Note: 1: 1402 2: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Installer\InProgress 3: 2 
MSI (s): Decrementing counter to disable shutdown. If counter >= 0, shutdown will be denied.  Counter after decrement: -1
MSI (s): Restoring environment variables
MSI (c): Decrementing counter to disable shutdown. If counter >= 0, shutdown will be denied.  Counter after decrement: -1
MSI (c): MainEngineThread is returning 1619
=== Verbose logging stopped: 4/8/2013  13:00:27 ===

Dovrai essere più specifico. In che modo hai bisogno di aiuto per impostare quel percorso? Che cosa hai provato? Quali eventuali messaggi di errore ricevi?
alroc,

Risposte:


0

Come minimo, stai affrontando il problema del doppio hop e dovrai impostare CredSSP per farlo funzionare.

Ma potrebbero esserci altri problemi di cui non ci stai parlando. Vedi il mio commento sulla domanda originale.

Utilizzando il nostro sito, riconosci di aver letto e compreso le nostre Informativa sui cookie e Informativa sulla privacy.
Licensed under cc by-sa 3.0 with attribution required.