This PowerShell script provides a graphical user interface (GUI) to install, uninstall and configure TeamViewer on Windows systems. The basic characteristics of this are:
- Download and install TeamViewer from a URL.
- Install TeamViewer from a local file.
- Uninstall TeamViewer.
- Create a shortcut on the desktop.
- Assign a TeamViewer ID.
- Custom Config ID
- Device Alias
- Outlook Plugin
- Configuration File
- Download and Install from URL: Allows you to enter a download URL to obtain the TeamViewer installer and proceed with the installation.
- Install from Local File: Allows you to select a local file (executables
.exe
or.msi
) to install TeamViewer. - Uninstall TeamViewer: Remove TeamViewer and clean associated files and registry entries.
- Create Shortcut: Offers the option of creating a TeamViewer shortcut on the desktop.
- Assign ID: Allows you to assign an ID to the TeamViewer installation.
- Custom Config ID: Allows you to use a Custom Config ID to the TeamViewer installation.
- Device Alias: Specify device name when assigning, otherwise the computer's hostname will be automatically entered.
- Enable Outlook Plugin: Enable or Disable Outlook Plugin.
- Configuration File: Allows you to use a .tvopt file to configure the installation.
- Windows 7 or higher.
- PowerShell 5.1 or higher.
-
Download the Repository and extract it on a folder
Start-BitsTransfer -source "https://github.com/ikkxeer/PSTeamViewer/archive/refs/heads/main.zip" -Destination "PSTeamViewer.zip"
-
Run the Script
Open PowerShell with Administrator Privileges and navigate to the cloned repository folder:
cd path/to/repository
-
run the script with a Powershell Terminal:
.\TeamViewerInstaller.ps1
- Click on the "Download and Install by URL" button.
- Enter the TeamViewer installer URL in the dialog box that appears.
- The script will download the
.exe
file from the provided URL and proceed with the silent installation.
- Click the "Download and Install by Local File" button.
- Select a local
.exe
or.msi
file from the dialog box. - The script will install the selected file.
- Click the "Uninstall TeamViewer" button.
- The script will uninstall TeamViewer from your system, stopping associated services and deleting files and registry entries.
- Check the box "Create a desktop shortcut" if you want to create a shortcut on the desktop after installation.
- If you do not check the box, the shortcut will not be created.
- Enter the assignment ID in the "Assignment ID" text field.
- Click on the "Assign" button.
- The script will assign the TeamViewer ID to the current installation.
- Enter the Custom Config ID in the "CustomConfig ID" text field.
- Click on the "Download and Install by Local File" button.
- Then when you install it will use this custom config id to configure the installation.
- Enter the Device Alias in the "Device Alias" text field.
- Click on the "Assign" button.
- Then, your device will be assigned to the id you entered with the name you indicated in Device Alias, if it is blank, the hostname will be used
- Enable or Disable the checkbox
- Click on the "Download and Install by Local File" button.
- It depends on your status, it will enable or not enable the Outlook Plugin
- Select the .tvopt configuration file
- Click on the "Download and Install by Local File" button.
- This will configure TeamViewer with the settings specified in the file.
-
AccessDenied
- Execute the script with Administrator Privileges
-
.MSI File is not installing
- Make sure you have Administrator Permissions and that the .msi file is valid
- Device Alias assigning ✅
- Install Security Key Redirection option
- View path of .tvopt file when selected
- Reassing optional with timeout
- Assign Device while installing option
- Export/Import Configuration
- Final installation report
- Remote Installation with parameters
This project is licensed under the MIT License. Consult the file LICENSE for more details.
This script was authored by Ikkxeer
For any inquiries or issues, please contact @ikkxeer
Contributions to enhance the script or address issues are welcome. Please open a GitHub issue or submit a pull request.