This command: Get-AppxPackage -allusers | Add-AppxPackage will reinstall all windows apps which i DONT want!
I want to reinstall ONLY movies&tv, what is the specific command for this?
I would start again and maybe write a batch file that instead of removing everything with 1 command, removes all the apps you don't want and ignores completely the ones you do. it is the long way around but it might work.
The naming "=" was not used as the name of a cmdlet, function, script file, or executable Program recognized. Check the spelling of the name or that the path is correct (if included), and repeat the process.
On my system windows store does not work, i made some changes to the OS and this is the result, i dont need the store anyways and if i wanted to install apps with windows store i would have done that but i asked for help with the powershell.
For 30 minutes i tryed finding the command to install specific packages/apps but i couldnt find anything usefull...
The website Colif shared looks good, i found this line: Movies & TV
So what do i do with that? when i copy paste this in the powershell it doesnt do anything. which part of the code do i have to copy?
I also just noticed that when i run the uninstall command for all the packages it deleted the nvidia control panel...
I found another question, when i run the command to list all installed apps/packages:
Get-AppxPackage | Select Name, PackageFullName
or
Get-AppxPackage -AllUsers
There are four results which i dont know what they even are?
speaking about this:
1527c705-839a-4832-9118-54d4Bd6a0c89 1527c705-839a-4832-9118-54d4Bd6a0c89_10.0.18362.449_neutral_neutral_cw5n...
c5e2524a-ea46-4f67-841f-6a9465d9d515 c5e2524a-ea46-4f67-841f-6a9465d9d515_10.0.18362.449_neutral_neutral_cw5n...
E2A4F912-2574-4A75-9BB0-0D023378592B E2A4F912-2574-4A75-9BB0-0D023378592B_10.0.18362.449_neutral_neutral_cw5n...
F46D4000-FD22-4DB4-AC8E-4E1DDDE828FE F46D4000-FD22-4DB4-AC8E-4E1DDDE828FE_10.0.18362.449_neutral_neutral_cw5n...
instructions from Tenforums show you run that command in Command Prompt, its likely why the first command it does in every app is run powershell.
1. Open a command prompt.
2 Copy and paste the command below for the Windows app you want to reset into the command prompt, and press Enter. When finished, you can close the command prompt if you like.
The instructions are clear yes, but it doesnt work for me.
When i copy paste the exact command in the powershell as admin ofcourse, this is the result (an error):
Windows PowerShell Copyright (C) Microsoft Corporation. All rights reserved. Get to know the new cross-platform PowerShell - https://aka.ms/pscore6 PS C: \ Windows \ system32> PowerShell -ExecutionPolicy Unrestricted -Command "& {$ manifest = (Get-AppxPackage * ZuneVideo *). InstallLocation + '\ AppxManifest.xml'; Add-AppxPackage -DisableDevelopmentMode -Register $ manifest}" =: The naming "=" was not used as the name of a cmdlet, function, script file, or executable Program recognized. Check the spelling of the name or that the path is correct (if included), and repeat the process. In line: 1 character: 5 + & {= (Get-AppxPackage * ZuneVideo *). InstallLocation + '\ AppxManifest. ... + ~ + CategoryInfo: ObjectNotFound: (=: String) [], CommandNotFoundException + FullyQualifiedErrorId: CommandNotFoundException Add-AppxPackage cmdlet at command pipeline location 1 Specify values for the following parameters: Path:
I would start again and maybe write a batch file that instead of removing everything with 1 command, removes all the apps you don't want and ignores completely the ones you do. it is the long way around but it might work.
The naming "=" was not used as the name of a cmdlet, function, script file, or executable Program recognized. Check the spelling of the name or that the path is correct (if included), and repeat the process.
The powershell command to reinstall only ZuneVideo would be: Add-AppxPackage -register "C:\Program Files\WindowsApps\Microsoft.ZuneVideo*\AppxManifest.xml" -DisableDevelopmentMode
The get-appxpackage command is not something that you can use in the Command Prompt where batch files are run. (I could be wrong about this and more study is needed.) It's a command that can be used in powershell. So instead of creating a batch file, you should be creating a powershell script as Mandark said.
I'm not too familiar with Powershell scripts. I've never created one until a few minutes ago. When I tried running it, I was denied. I had to set my system up to allow powerscripts to run first (which can be a security risk) by running a Set-ExecutionPolicy command. Warning: Running the command can be a security risk to your system. Since I'm in unexplored territory here, I won't give you the command. You can look it up if you feel it's a risk you want to take.
Afterwards, I placed the following script into Notepad and saved it as RemoveAllButOne.ps1 and ran it inside of powershell.
The powershell command to reinstall only ZuneVideo would be: Add-AppxPackage -register "C:\Program Files\WindowsApps\Microsoft.ZuneVideo*\AppxManifest.xml" -DisableDevelopmentMode
The get-appxpackage command is not something that you can use in the Command Prompt where batch files are run. (I could be wrong about this and more study is needed.) It's a command that can be used in powershell. So instead of creating a batch file, you should be creating a powershell script as Mandark said.
I'm not too familiar with Powershell scripts. I've never created one until a few minutes ago. When I tried running it, I was denied. I had to set my system up to allow powerscripts to run first (which can be a security risk) by running a Set-ExecutionPolicy command. Warning: Running the command can be a security risk to your system. Since I'm in unexplored territory here, I won't give you the command. You can look it up if you feel it's a risk you want to take.
Afterwards, I placed the following script into Notepad and saved it as RemoveAllButOne.ps1 and ran it inside of powershell.
Thanks to you Sir, i got my movies&tv app back just in one command!
I will try to findout more about powershell scripts.
Thanks for the warning, I had to set my system up to allow powerscripts, so once you allowed it propably there is an option to disallow it afterwards so there wont be any risks, just a guess.
Not that it is important but its intresting to me, what is the diffrence between these 2?
C:\Windows\SystemApps
C:\Program Files\WindowsApps
To disable powershell scripts again, you would use the Restricted option. See the first link I provided above. Set-ExecutionPolicy Restricted
By opening a command prompt and using DIR command you can see the contents of the two folders. dir C:\Windows\SystemApps
dir "C:\Program Files\WindowsApps"
Note the quotes around the 2nd one. Or at least I can but I may have changed permissions a little bit here and there. It's hard to tell on my older Windows install but the above 2 commands work for me.
According to the info on this page, the SystemApps folder are apps that are an intergral part of the OS. The WindowsApps are primarily installed from the Windows Store.