Discussion forum for all Windows batch related topics.
Moderator: DosItHelp
-
BoQsc
- Posts: 92
- Joined: 30 Jun 2014 04:10
#1
Post
by BoQsc » 24 Jul 2015 03:19
Hello everyone.
The script i use:
Code: Select all
Echo remove-appxpackage "Microsoft.BingFoodAndDrink_3.0.4.322_x64__8wekyb3d8bbwe " | PowerShell.exe -noprofile -
pause
I'm trying to remove windows metro app throught powershell-batch and it gives me error:
Wonder what kind of fix could be applied to it, and if the right one even exist.
Code: Select all
C:\Users\vaida_000\Desktop\remove_apps\Versions\Basic\V3>Echo remove-appxpackage
"Microsoft.BingFoodAndDrink_3.0.4.322_x64__8wekyb3d8bbwe " | PowerShell.exe
-noprofile -
remove-appxpackage : Deployment failed with HRESULT: 0x80073CFA, Pašalinti nepa
vyko. Kreipkitės į programinės įrangos tiekėją. (Exception from HRESULT: 0x8007
3CFA)
Package Manager aborted the Remove operation because an invalid argument was pa
ssed: Microsoft.BingFoodAndDrink_3.0.4.322_x64__8wekyb3d8bbwe .
NOTE: For additional information, look for [ActivityId] 4073b5b1-c3a0-0000-2818
-7440a0c3d001 in the Event Log or use the command line Get-AppxLog -ActivityID
4073b5b1-c3a0-0000-2818-7440a0c3d001
At line:1 char:1
+ remove-appxpackage "Microsoft.BingFoodAndDrink_3.0.4.322_x64__8wekyb3d8bbwe
"
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~
+ CategoryInfo : WriteError: (Microsoft.BingF...wekyb3d8bbwe :S
tring) [Remove-AppxPackage], IOException
+ FullyQualifiedErrorId : DeploymentError,Microsoft.Windows.Appx.PackageMa
nager.Commands.RemoveAppxPackageCommand
C:\Users\vaida_000\Desktop\remove_apps\Versions\Basic\V3>pause
Press any key to continue . . .
![Image](https://dl.dropboxusercontent.com/u/192448208/random_share/Ekrano%20kopija%20(30).png)
-
BoQsc
- Posts: 92
- Joined: 30 Jun 2014 04:10
#3
Post
by BoQsc » 25 Jul 2015 03:48
OperatorGK wrote:Maybe remove spaces before closing "?
Yes, you are right! Thank you.
But now i wonder... How i'm going to replace those all spaces with no space.
I have txt file that have this problem in the every line.
Microsoft.BingFinance_3.0.4.336_x64__8wekyb3d8bbwe
Microsoft.BingFoodAndDrink_3.0.4.336_x64__8wekyb3d8bbwe
Microsoft.BingHealthAndFitness_3.0.4.336_x64__8wekyb3d8bbwe
Microsoft.BingMaps_2.1.3230.2048_x64__8wekyb3d8bbwe
Microsoft.BingNews_3.0.4.336_x64__8wekyb3d8bbwe
Microsoft.BingSports_3.0.4.336_x64__8wekyb3d8bbwe
Microsoft.BingTravel_3.0.4.336_x64__8wekyb3d8bbwe
Microsoft.Media.PlayReadyClient.2_2.11.2154.0_x64__8wekyb3d8bbwe
Microsoft.Office.OneNote_16.0.3327.1048_x64__8wekyb3d8bbwe
Microsoft.WindowsAlarms_6.3.9654.20335_x64__8wekyb3d8bbwe
Microsoft.WindowsCalculator_6.3.9600.20278_x64__8wekyb3d8bbwe
microsoft.windowscommunicationsapps_17.5.9600.20911_x64__8wekyb3d8bbwe
Microsoft.WindowsReadingList_6.3.9654.20540_x64__8wekyb3d8bbwe
Microsoft.WindowsScan_6.3.9654.17133_x64__8wekyb3d8bbwe
Microsoft.XboxLIVEGames_2.0.139.0_x64__8wekyb3d8bbwe
Microsoft.ZuneMusic_2.6.672.0_x64__8wekyb3d8bbwe
Microsoft.ZuneVideo_2.6.441.0_x64__8wekyb3d8bbwe
Maybe someone more experienced have a single and Batch only method to replace/remove uneeded spaces for every line at the end of line in text file?
The search is so hard in this forum, i'm sorry.
-
foxidrive
- Expert
- Posts: 6031
- Joined: 10 Feb 2012 02:20
#4
Post
by foxidrive » 25 Jul 2015 05:25
A good text editor has an option for removing trailing whitespace.