Module for managing PowerShell through PowerShellGet (PSGet)
PowerShell 5.0
PSGet
Support for PowerShell
List available modules in registered Powershell module repositories.
desc (bool
, optional) --
If True
, the verbose description will be returned.
Default is False
.
CLI Example:
salt 'win01' psget.avail_modules
salt 'win01' psget.avail_modules desc=True
Make sure that nuget-anycpu.exe is installed. This will download the official nuget-anycpu.exe from the internet.
CLI Example:
salt 'win01' psget.bootstrap
Get the details of a local PSGet repository
name (str) -- Name of the repository.
CLI Example:
salt 'win01' psget.get_repository MyRepo
Install a Powershell module from powershell gallery on the system.
name (str) -- Name of a Powershell module.
minimum_version (str
, optional) --
The maximum version to install, e.g. 1.23.2.
Default is None
.
required_version (str
, optional) --
Install a specific version.
Default is None
.
scope (str
, optional) --
The scope to install the module to, e.g. CurrentUser, Computer.
Default is None
.
repository (str
, optional) --
The friendly name of a private repository, e.g. MyREpo.
Default is None
.
CLI Example:
salt 'win01' psget.install PowerPlan
List currently installed PSGet Modules on the system.
desc (bool
, optional) -- If True
, the verbose description will be returned.
CLI Example:
salt 'win01' psget.list_modules
salt 'win01' psget.list_modules desc=True
Register a PSGet repository on the local machine
CLI Example:
salt 'win01' psget.register_repository MyRepo https://myrepo.mycompany.com/packages
Remove a Powershell DSC module from the system.
name (str) -- Name of a Powershell DSC module.
CLI Example:
salt 'win01' psget.remove PowerPlan
Update a PowerShell module to a specific version, or the newest
CLI Example:
salt 'win01' psget.update PowerPlan