Installation and Licensing
For offline installation instructions, click here.
You can install a Visual Studio Code extension by downloading the VSIX file from the Marketplace and then clicking Install from VSIX within the extension pane in Visual Studio Code.
You will also need to install the proper binaries for your environment. You can download the binaries using the following PowerShell script on an internet connected machine. You will need to ensure you download the matching version of the binaries.
$Version = '2023.1.0'
Invoke-WebRequest "https://imsreleases.blob.core.windows.net/vscode/windows.$Version.zip" -OutFile .\vscode.zip
Once downloaded, you will need to transfer the ZIP to the offline machine. The ZIP needs to be extracted to your user's home directory. Ensure that the proper version is included.
$TargetDir = "$ENV:UserProfile\PowerShellProTools\2021.12.1\windows"
Expand-Archive .\vscode.zip -Destination $TargetDir
Get-ChildItem $TargetDir -Recurse | Unblock-File
You can select from previous versions of the Visual Studio Code extension in the extension pane. Click the Gear icon next to PowerShell Pro Tools and select Install Another Version...
You can install a previous version of the PowerShell Module by using the
Install-Module -Name PowerShellProTools -RequiredVersion 5.7.0
You can install your license file in Visual Studio by clicking View \ PowerShell \ Settings and navigating to the settings tab.
When the PowerShell Pro Tools extension activates, it will ask for a license key. You can click Install License to install the license key.
PowerShell Pro Tools: Install License Keycommand to install your license.
In Visual Studio Code, press
Ctrl+Shift+Pto activate the command palette. Once the palette is shown, you can start to search for the command listed above. Select it and press enter. Paste the entire contents of the license key file into the input box shown.
You can use the
Install-PoshProToolsLicensecmdlet to install your license.
Install-PoshProToolsLicense -Path C:\license.txt
You can manually install your license by placing a
license.licfile in your
%AppData%\PowerShell Pro Toolsdirectory. The directory may not exist. Place the full XML of the license file you received in this file.
PSScriptPad licenses can be installed using the above methods. PSScriptPad also supports loading license files that reside next to the PSScriptPad.exe file. Create a file called
license.licand place it in the same directory as PSScriptPad. The license will be loaded from this location, if present.