Microsoft.PowerShell.PSResourceGet 1.2.0-preview5 released

Microsoft.PowerShell.PSResourceGet 1.2.0-preview5 released

Hi All,

Two days ago, Microsoft has released the Preview5 of the Microsoft.PowerShell.PSResourceGet PowerShell Module.

You can check the Release Notes

PowerShell 5

Check the Module Path

$Env:PSModulePath.Split(";")

I’ve simply deleted the Microsoft.PowerShell.PSResourceGet Folder in Windows Explorer - because there is no “Scope” Parameter in the Uninstall-Module command

Installing the PSResourceGet with Install-Module

Install-Module -Name Microsoft.PowerShell.PSResourceGet -Scope CurrentUser -AllowPrerelease
Get-InstalledPSResource -Name Microsoft.PowerShell.PSResourceGet -Scope CurrentUser

Uninstalling a Module under PowerShell 5 still fails - like in Preview4

Uninstall-PSResource -Name ExchangeOnlineManagement -Scope CurrentUser

PowerShell 7

Check the Module Path and delete the Microsoft.PowerShell.PSResourceGet Folder in Windows Explorer

$Env:PSModulePath.Split(";")

Installing the PSResourceGet with Install-Module

Install-Module -Name Microsoft.PowerShell.PSResourceGet -Scope CurrentUser -AllowPrerelease
Install-Module -Name Microsoft.PowerShell.PSResourceGet -Scope CurrentUser -AllowPrerelease -Force
Get-InstalledPSResource -Name Microsoft.PowerShell.PSResourceGet -Scope CurrentUser

Uninstall works fine in PowerShell 7

Uninstall-PSResource -Name ExchangeOnlineManagement -Scope CurrentUser

Regards
Andres Bohren

PowerShell Logo