Files
PSProxmox/docs/guides/Installation.md
T
2025-04-28 14:59:49 -04:00

3.1 KiB

Installation Guide

This guide explains how to install the PSProxmox module.

Prerequisites

  • PowerShell 5.1 or later
  • Windows PowerShell or PowerShell Core
  • .NET Framework 4.7.2 or later (for Windows PowerShell)
  • .NET Core 2.0 or later (for PowerShell Core)

Installation Methods

The PSProxmox module is available on the PowerShell Gallery. To install it, run the following command:

Install-Module -Name PSProxmox -Scope CurrentUser

If you want to install it for all users on the system, run the following command with administrative privileges:

Install-Module -Name PSProxmox -Scope AllUsers

Method 2: Install from GitHub

You can also install the PSProxmox module directly from GitHub:

  1. Download the latest release from the GitHub repository
  2. Extract the ZIP file
  3. Run the Install-PSProxmox.ps1 script included in the package:
.\Install-PSProxmox.ps1

Method 3: Manual Installation

You can manually install the PSProxmox module by copying the files to your PowerShell modules directory:

  1. Download the latest release from the GitHub repository
  2. Extract the ZIP file
  3. Copy the extracted files to a folder named "PSProxmox" in your PowerShell modules directory:

For Windows PowerShell:

Copy-Item -Path .\PSProxmox-Dist\* -Destination "$env:USERPROFILE\Documents\WindowsPowerShell\Modules\PSProxmox" -Recurse -Force

For PowerShell Core:

Copy-Item -Path .\PSProxmox-Dist\* -Destination "$env:USERPROFILE\Documents\PowerShell\Modules\PSProxmox" -Recurse -Force

Verifying the Installation

To verify that the PSProxmox module is installed correctly, run the following command:

Get-Module -Name PSProxmox -ListAvailable

You should see output similar to the following:

    Directory: C:\Users\username\Documents\WindowsPowerShell\Modules

ModuleType Version    Name                                ExportedCommands
---------- -------    ----                                ----------------
Binary     2023.04... PSProxmox                           {Clear-ProxmoxIPPool, Connect-ProxmoxServer, Disconnect-ProxmoxServer, Get-ProxmoxCluster...}

Importing the Module

To import the PSProxmox module into your PowerShell session, run the following command:

Import-Module PSProxmox

You can verify that the module is imported correctly by running:

Get-Command -Module PSProxmox

This will list all the cmdlets available in the PSProxmox module.

Updating the Module

To update the PSProxmox module to the latest version, run the following command:

Update-Module -Name PSProxmox

Uninstalling the Module

To uninstall the PSProxmox module, run the following command:

Uninstall-Module -Name PSProxmox

Next Steps

Now that you have installed the PSProxmox module, you can proceed to the Connection Guide to learn how to connect to a Proxmox VE server.