VMware Cloud Community
Chrigoli
Enthusiast
Enthusiast

Invoke-VMScript: Show notifications in Guest VM for logged in user

Hi All

I'm currently creating kind of a small installation batch file to install some small apps within a VM. I use "Copy-VMGuestFile" first to copy the required install files and then use "Invoke-VMScript" to start my batch file.

The batch file starts the .msi or .exe installers in silent mode, but at the end I have one setup which does not have a silent mode, so I just start the setup.exe in my batch file.

This works fine, the last setup.exe process gets started in the VM's guest. Unfortunately, the setup wizard is not shown in the Guest. I use the same user for the Invoke-VMScript as the one which is currently logged in to the console of the Guest VM.

Does anyone of you have any idea how to get that setup.exe wizard shown in the Guest?

For me it seems that Invoke-VMScript opens kind of a new Remote Session in the Guest instead of taking over the one of the user who is currently logged in.

Thanks and cheers

Chrigoli

Reply
0 Kudos
4 Replies
LucD
Leadership
Leadership

Invoke-VMScript doesn't actually open a session with the guest, it uses VMware Tools on the guest to launch commands.

You should be able to see that when you launch something like System Explorer in the guest.


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

Reply
0 Kudos
Chrigoli
Enthusiast
Enthusiast

Thanks for the Reply Luc.

Yep I see that the cmd as well as the setup.exe process are started and running in the guest.

But still the question is how do I get the wizard to be displayed?

Thanks!

Reply
0 Kudos
LucD
Leadership
Leadership

Afaik you can't.


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

Chrigoli
Enthusiast
Enthusiast

Ok, In the meanwhile I found a workaround for the last particular setup, found a silent installer 🙂

Thanks for the fast answers Luc!

Reply
0 Kudos