Use HTML form as GUI for powershell

后端 未结 7 1100
北海茫月
北海茫月 2021-02-10 03:57

I have a powershell script that I would like to run using an html form. All I have is a few form fields and a button. When I run my powershell script, it opens a new ie window

7条回答
  •  说谎
    说谎 (楼主)
    2021-02-10 04:23

    @Clayton It works fine for on other windows 10 OS System but gives an error on Windows 10 Azure VM

    Error- The property 'innerHTML' cannot be found on this object. Verify that the property exists and can be set. At line:24 char:1

    • $ie.document.body.innerHTML = $html

提交回复
热议问题