Module for managing PowerShell through PowerShellGet (PSGet)
PowerShell 5.0
PSGet
Support for PowerShell
List available modules in registered Powershell module repositories.
desc (bool
) -- If True
, the verbose description will be returned.
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
) -- The maximum version to install, e.g. 1.23.2
required_version (str
) -- Install a specific version
scope (str
) -- The scope to install the module to, e.g. CurrentUser, Computer
repository (str
) -- The friendly name of a private repository, e.g. MyREpo
CLI Example:
salt 'win01' psget.install PowerPlan
List currently installed PSGet Modules on the system.
desc (bool
) -- 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
name (str
) -- The name for the repository
location (str
) -- The URI for the repository
installation_policy (str
) -- The installation policy
for packages, e.g. Trusted, Untrusted
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
name (str
) -- Name of a Powershell module
maximum_version (str
) -- The maximum version to install, e.g. 1.23.2
required_version (str
) -- Install a specific version
CLI Example:
salt 'win01' psget.update PowerPlan