You need to enable JavaScript to run this app.
最新活动
大模型
产品
解决方案
定价
生态与合作
支持与服务
开发者
了解我们

执行Get-AppXPackage命令提示未被识别为cmdlet的问题求助

执行Get-AppXPackage命令提示未被识别为cmdlet的问题求助

各位好,我是第一次来提问,想请大家帮忙解决个问题。我的笔记本是K55 A,装的是Windows 7 32位系统,最近Windows键失灵了,我查到一条修复命令,结果执行之后报错了。

我执行的命令是:

Get-AppXPackage -AllUsers | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"}

对应的错误提示如下:

PS C:\Users\Admin> Get-AppXPackage -AllUsers | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallL
ocation)\AppXManifest.xml"}
The term 'Get-AppXPackage' is not recognized as the name of a cmdlet, function, script file, or operable program. Check
 the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:16
+ Get-AppXPackage <<<<  -AllUsers | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\A
ppXManifest.xml"}
    + CategoryInfo          : ObjectNotFound: (Get-AppXPackage:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

我是因为Windows键坏了才尝试这个命令的,结果遇到了“Get-AppXPackage未被识别”的问题。我找了一圈都没找到相关的解决办法,这是我第一次提问,还不能发图片,而且目前我还没尝试过其他修复方法,实在不知道该从哪下手,希望大家能给点建议,谢谢!

备注:内容来源于stack exchange,提问作者eggs

火山引擎 最新活动