As the subject says, I want to remove an app from being installed for a given user from Powershell. While I know that command
Get-AppxPackage -user username PackageFullName | Remove-AppxPackage
my issue is the account that I want to uninstall an app from is one that has been deleted from my computer. All I have is the SID for that deleted account.
Here is what I am talking about.
If I run this command
Get-AppxPackage -AllUsers -Name Microsoft.BioEnrollment
I get this information back
Name : Microsoft.BioEnrollmentPublisher : CN=Microsoft Windows, O=Microsoft Corporation, L=Redmond, S=Washington, C=USArchitecture : NeutralResourceId :Version : 10.0.10586.0PackageFullName : Microsoft.BioEnrollment_10.0.10586.0_neutral__cw5n1h2txyewyInstallLocation : C:\Windows\SystemApps\Microsoft.BioEnrollment_cw5n1h2txyewyIsFramework : FalsePackageFamilyName : Microsoft.BioEnrollment_cw5n1h2txyewyPublisherId : cw5n1h2txyewyPackageUserInformation : {S-1-5-21-1308887255-1968345429-1705523393-1001 [S-1-5-21-1308887255-1968345429-1705523393-1001]: Installed, S-1-5-21-1308887255-1968345429-1705523393-500 [Administrator]: Installed, S-1-5-21-1308887255-1968345429-1705523393-1002 [Brian A. Plencner]: Installed}IsResourcePackage : FalseIsBundle : FalseIsDevelopmentMode : False
What I would like to do, if possible, is to not have this app (and a few others) be installed for the user with a SID of "S-1-5-21-1308887255-1968345429-1705523393-1001".
That SID did belong to a temp user that I was using when building my Windows 10 system. However, during my process, I delete that user as I no longer need it.
The apps that are associated to this SID are of course the ones that you cannot delete fully from Windows 10. However, I would like them to no longer be installed for a user that is no longer on my system.
Is that possible? Or is this just a side-effect of deleting accounts?
Thanks in advance for any help.
--Brian
--
============================
--Brian Plencner
E-Mail: CoasterBrian72Cancer@gmail.com
Note: Kill Cancer to Reply via e-mail
↧