How to Silently Install UltraVNC with PowerShell

choubertsprojects

The Best WordPress plugins!

1. WP Reset

2. WP 301 Redirects

3. WP Force SSL

Many organizations and individuals use UltraVNC to remotely control their desktops. This is becoming more and more the case, as with remote administration tools such as Microsoft RDS or Citrix XenDesktop being extremely popular in enterprise environments.
This blog post will focus on a few ways of silently installing UltraVNC using PowerShell.

“how to install ultravnc on linux” is a blog post that provides instructions on how to install UltraVNC with PowerShell.

How to Silently Install UltraVNC with PowerShell

VNC is one of the most widely used remote desktop control programs. It’s free and comes in a variety of flavors for admins to choose from. In this article, we’ll show you how to install UltraVNC, a VNC variant, secretly on Windows.

If you’re a desktop administrator, you’ve probably needed to connect to an UltraVNC server running on a user’s desktop only to discover that it wasn’t installed. You could have led the user through installing the UltraVNC server from a network file share at that time. This necessitates the expenditure of time and resources.

It’s much preferable to automate this procedure and install the UltraVNC server without requiring any user participation! We can create a PowerShell script to accomplish exactly that, allowing you to install UltraVNC server on as many machines as you need remotely.

UltraVNC Silent Install Switches are hard to come by.

Before we go any further, we’ll need to find out the switches that will make the installation quiet. Depending on the program, this might be a simple or a very difficult process.

To install UltraVNC server discreetly on a Windows PC, you’ll need to first build an INF file. The INF file functions as an answer file, including all of the installation data required by the UltraVNC server.

This INF file is created after a standard UltraVNC installation on a single system. Instead of just running the installer, you’ll use the /savinf command and provide the INF file’s path, as seen below.

setup.exe /saveinf=”C:silentinstall.inf” setup.exe /saveinf=”C:silentinstall.inf” setup.exe /sa

The above procedure will create a silentinstall.inf file at the root of your C drive.

After that, you must determine how to utilize this answer file while installing UltraVNC on another machine. This may be done by using the /loadinf option and specifying the file name in the same way.

setup.exe /loadinf=”C:silentinstall.inf” setup.exe /loadinf=”C:silentinstall.inf” setup.exe /loadin

This works, but it doesn’t make the installation absolutely quiet, which is what you’re looking for. You’ll need to add another switch to this, /verysilent, to do this.

setup.exe /verysilent /loadinf=”C:silentinstall.inf” setup.exe /verysilent /loadinf=”C:silentinstall.inf” setup.exe /verys

When this code is run, UltraVNC will be quietly installed, with all of the answers I personally entered stored in the INF file.

Configuring a remote installation capability

We now have the ability to install this software secretly on a computer. We don’t have a mechanism to accomplish this with distant PCs, however. You’ll need to manually transfer the setup.exe and INF files to any PC you want to remotely install this on right now. This is just unacceptable! Let’s use a PowerShell function to automate everything.

Because you already have everything you need to execute the installation locally, the first step is to decide out where you’ll save the setup.exe and INF files. These files must be available on each machine where UltraVNC will be installed. To transmit those bits to faraway machines, you’ll place these files on a shared file share.

Because you’ll most likely need to refer to the installation bits again and again, it’s a good idea to save them to a network file share. I’ll save them to a ToolShare share on my MEMBERSRV1 server. Here’s where I’m beginning to construct a PowerShell deployment script.

$InstallerFolder = ‘MEMBERSRV1ToolShareVNC’; $InstallerFolder = ‘MEMBERSRV1ToolShareVNC’; $InstallerFolder

To install UltraVNC discreetly, you’ll need to transfer the setup.exe and INF files to remote machines on demand. To do so, utilize Copy-Item to copy the whole VNC folder as a single file. On the remote machine, I’m transferring the contents of my installation folder to the root of the C drive.

‘MYCLIENT’ as $ClientName -Path -Copy-Item -Destination $InstallerFolder -Recurse $ClientNamec$

After that, I’ll need to start the installation from afar. PowerShell remoting is a great approach to do this. To conduct the quiet install remotely from my machine, I’ll use the Invoke-Command command. To do so, I’ll need to wrap the command I’ll be running in a script block first.

$scriptBlock = Start-Process “C:VNCsetup.exe” -Args “/verysilent/loadinf=’”C:VNCsilentinstall.inf’”” -Wait -NoNewWindow $scriptBlock = Start-Process “C:VNCsetup.exe” -Args “/verysilent/loadinf=’”C:VNCsilentinstall.inf’””

You can see that you’re starting the installation on the remote machine using the Start-Process cmdlet and giving the quiet parameters you came up with before.

The Invoke-Command command will then be used to run this script on the remote machine.

PS> Invoke-Command -ComputerName $ClientName -ScriptBlock $scriptBlock

This instructs $ClientName to execute the code contained inside the script block. We’re done once this is finished! UltraVNC has been set up.

Cleaning up the installer’s leftovers

On the remote PC, though, we’ve now left the C:VNC folder. Let’s get it cleaned up.

Remove-Item -Recurse $ClientNamec$VNC

We’ve finished installing UltraVNC and cleaning up any leftovers. If you enjoy this method, you can get the Deploy-VNC script from my Github repository. It wraps all of this code in a PowerShell function and adds some more capabilities to make remote UltraVNC server installation on Windows computers a breeze!

The “ultravnc silent uninstall” is a PowerShell command that can be used to silently uninstall UltraVNC. The command will also remove all traces of the software from the system.

Related Tags

  • ultravnc set password command line
  • ultravnc download
  • install ultra vnc viewer
  • ultravnc pdq
  • ultravnc command line

Table of Content