我需要将Windows上的IoT Edge设备从一个IoT中心交换到另一个。我了解当前的逻辑迫使我卸载IoT-Edge并重新安装。 问题是尝试运行此脚本时出现以下错误:
{Invoke-WebRequest -useb aka.ms/iotedge-win} | Invoke-Expression; `
Uninstall-IoTEdge
我得到这个回报:
Invoke-Native : The term 'cmd' 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:1748 char:28
+ ... ersString = Invoke-Native "$dockerExe ps --all --format ""{{.ID}}""" ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (cmd:String) [Invoke-Native],CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException,Invoke-Native
Powershell被提升为Admin。我是否缺少一些PATH变量?有任何想法吗?