I need some advice.
I need to install an application's MSP update file on multiple Win08r2 servers.Â If I run these commands locally, within the target machine's PS window, it does exactly what I want it to:
$command = 'msiexec.exe /p "c:\test\My Application Update 01.msp" REBOOTPROMPT=S /qb!'
The file being executed is located on the target machine
If I remotely connect to the machine, and execute the two commands, it opens two x64 msiexec.exe process, and one msiexec.exe *32 process, and just sits there.
If I restart the server, it doesn't show that the update was installed, so I don't think it's a timing thing.
I've tried creating and remotely executing a PS1 file with the two lines, but that seems to do the same thing.
If anyone has advice on getting my MSP update installed remotely, I'd be all ears.
I think I've included all the information I have, but if something is missing, please ask questions, and I'll fill in any blanks.
Thank you in advance for your time and assistance!
It might be (a) an interaction thing, meaning there's a process waiting for a desktop session or user interaction, or (b) a permissions issue. Curious: have you tried running this as a scheduled task, rather than via remoting? That would help rule out some possibilities. And – I'm only assuming you're using remoting; you didn't mention how you're connecting.
Thank you for your reply!Â Unfortunately I'm not sure a scheduled task would work here.
My process for this is:
If I open a PS window and manually set the variable, then execute it (as shown above in the two lines of code), it works fine.Â If I create a PS1 file on the target server containing the same two lines, then right click > 'Run With PowerShell' a , it blinks the PowerShell window, and does nothing.Â If I remotely execute my code in PowerGUI, it returns a block of text that looks like this, then just sits there.Â RDP'd into the server, the installer never launches.Â My understanding of the "Return Value" value is that "0" means the command was successful.
PSComputerNameÂ Â Â Â : xx.xx.xx.xx
I even added a line of code between the variable and the execution that creates a text file on the desktop, just to verify I was getting into my 'executeFile' file, and that text file does get created.Â It seems that it's just not executing my MSP.
Thank you in advance for your assistance!
If I create a PS1 file on the target server, containing the same two lines of code, then right click > â€˜Run With PowerShellâ€™ it works as expected / desired.
You've tried a lot of things and I'm not sure I have a good grasp on them all :). I know little about PowerGUI, so I'm going to pas son that one.
So you're saying this doesn't work even if you use Remote Desktop to go into the server and launch the installer? If that's the case, you may have something that has a dependency on the console session, and you're not going to be able to duplicate that remotely.
You must be logged in to reply to this topic.