Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Question
Thursday, February 23, 2017 11:23 PM
Whenever I try to use Get-AppXPackage I get this error;
Get-AppXPackage : The service cannot be started, either because it is disabled or because it has no enabled devices
ociated with it.
The service cannot be started, either because it is disabled or because it has no enabled devices associated with it
At line:1 char:1
- Get-AppXPackage | Foreach {Add-AppxPackage -DisableDevelopmentMode -R ...
-
+ CategoryInfo : NotSpecified: (:) [Get-AppxPackage], Exception
+ FullyQualifiedErrorId : System.Exception,Microsoft.Windows.Appx.PackageManager.Commands.GetAppxPackageCommand
All replies (2)
Thursday, February 23, 2017 11:31 PM
So what does Get-AppXPackage on it own show? Your error has a non complete 2Get-AppXPackage | Foreach {Add-AppxPackage -DisableDevelopmentMode -R ..." so what was that command?
Monday, February 27, 2017 6:46 AM
Hi ,
Does the below Powershell command work for you? Try to run it as administrator to have a check.
"Get-AppXPackage | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"}"
If it does not work, I suggest you to try the methods below and check if it helps.
Method 1: System File Checker,
System File Checker, is a utility that checks for system file corruption.
http://answers.microsoft.com/en-us/windows/wiki/windows_10-update/system-file-check-sfc-scan-and-repair-system-files/bc609315-da1f-4775-812c-695b60477a93
Method 2: DISM (Deployment Image Servicing and Management)
Run the Deployment Image Servicing and Management (DISM) tool which fixes the Windows corruption error if there are any. Run “DISM.exe /Online /Cleanup-image /Restorehealth” command in an elevated CMD prompt.
If the above recommendations does not help, please check if the same issue occur when logged in through a different user account.
Best regards
Please remember to mark the replies as answers if they help.
If you have feedback for TechNet Subscriber Support, contact [email protected].