如何运行IoTCorePShell.cmd

时间:2019-02-11 13:52:47

标签: powershell driver windows-iot-core-10

我尝试将Prolific USB转换为COM转换器以解决我的其他问题:List UART -> COM converter in Windows Device Portal

我找到了本手册:https://docs.microsoft.com/en-us/windows/iot-core/learn-about-hardware/peripheraldrivers,并将所有必需的文件复制到了单独的文件夹中:

  • oem6.inf
  • ser2pl64.sys
  • serenum.sys

我已安装:

  • Windows 10 IoT核心软件包
  • 包括Windows PE附加组件的Windows评估和部署工具包

现在,我尝试按照手册中的说明启动IoTCorePShell.cmd来运行New-IoTInf2Cab
我尝试了cmdPower Shell,都具有管理员权限,而没有管理员权限。

Power Shell中,我得到:

PS C:\Users\olga\Desktop\COMDriver> New-IoTInf2Cab
New-IoTInf2Cab : The term 'New-IoTInf2Cab' 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:1
+ New-IoTInf2Cab
+ ~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (New-IoTInf2Cab:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

如何运行New-IoTInf2Cab

1 个答案:

答案 0 :(得分:0)

好的,有必要克隆存储库。
: WebDriverException Traceback (most recent call last): File "/var/task/handler.py", line 580, in lambda_handler return LambdaHandler.lambda_handler(event, context) File "/var/task/handler.py", line 245, in lambda_handler handler = cls() File "/var/task/handler.py", line 139, in __init__ self.app_module = importlib.import_module(self.settings.APP_MODULE) File "/var/lang/lib/python3.6/importlib/__init__.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "<frozen importlib._bootstrap>", line 994, in _gcd_import File "<frozen importlib._bootstrap>", line 971, in _find_and_load File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 665, in _load_unlocked File "<frozen importlib._bootstrap_external>", line 678, in exec_module File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed File "/tmp/lambda-selenium/src/main.py", line 29, in <module> driver = webdriver.Chrome('/tmp/lambda-selenium/bin/headless-chromium', chrome_options=chrome_options) File "/tmp/lambda-selenium/selenium/webdriver/chrome/webdriver.py", line 73, in __init__ self.service.start() File "/tmp/lambda-selenium/selenium/webdriver/common/service.py", line 98, in start self.assert_process_still_running() File "/tmp/lambda-selenium/selenium/webdriver/common/service.py", line 111, in assert_process_still_running % (self.path, return_code) selenium.common.exceptions.WebDriverException: Message: Service /tmp/lambda-selenium/bin/headless-chromium unexpectedly exited. Status code was: 1 停留在根目录中。

https://github.com/ms-iot/iot-adk-addonkit