PowerShellGetv2
PowerShellGetv2 copied to clipboard
Uninstall-Package don't uninstall Microsoft Office 365
Steps to reproduce
I trying to uninstall "Microsoft Office 365 - ru-ru" via powershell cmdlet Uninstall-Package. I used command like:
"uninstall-Package -Name "Microsoft Office 365 - ru-ru" -RequiredVersion 16.0.12527.20482",
"Get-Package -Name "Microsoft Office 365 - ru-ru" -Version "16.0.12527.20482" -ProviderName Programs | Uninstall-Package -Confirm:$false",
"Get-Package -Name "Microsoft Office 365 - ru-ru" -ProviderName Programs | Uninstall-Package",
"Get-Package -Name "Microsoft Office 365*" | Uninstall-Package".
Expected behavior
"Microsoft Office 365 - ru-ru" will be uninstalled
Actual behavior
But I didn't get any response or error on this command. Nothing.
Environment data
> $PSVersionTable
Major Minor Build Revision
5 1 19041 1023
> Get-Module -ListAvailable PowerShellGet,PackageManagement
ModuleType Version Name ExportedCommands
---------- ------- ---- ----------------
Binary 1.0.0.1 PackageManagement {Find-Package, Get-Package, Get-PackageProvider, Get-Pa...
Script 1.0.0.1 PowerShellGet {Install-Module, Find-Module, Save-Module, Update-Modul...
> Get-PackageProvider -ListAvailable
Name Version DynamicOptions
---- ------- --------------
msi 3.0.0.0 AdditionalArguments
msu 3.0.0.0
NuGet 2.8.5.208 Destination, ExcludeVersion, Scope, SkipDependencies, Headers, FilterOn...
PowerShellGet 1.0.0.1 PackageManagementProvider, Type, Scope, AllowClobber, SkipPublisherChec...
Programs 3.0.0.0 IncludeWindowsInstaller, IncludeSystemComponent
Thanks @shardakov, can you run: "Get-Package -Name "Microsoft Office 365*"
and share the output? This will allow us to see if you have that packae before attempting to uninstall
@anamnavi Sorry! I made a mistake. The correct command is "Get-Package-Name" Microsoft 365*"". And then I get the following output:
Name Version Source ProviderName
Microsoft 365 - ru-ru 16.0.14026.20270 Programs
But the error remains the same.
@shardakov it seems this is a PackageManagement issue, not a PowerShellGet one so we'll transfer this issue to the appropriate repository.
Can you try updating your PackageManagement version:
Install-Package PackageManagement -ProviderName NuGet