Use HTML form as GUI for powershell

后端 未结 7 1101
北海茫月
北海茫月 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:14

    I've been wondering if this actually works well:

    http://social.technet.microsoft.com/wiki/contents/articles/how-to-add-a-graphical-user-interface-to-a-powershell-script-by-using-html-applications.aspx

    It's based around running a PowerShell process from VBScript and then using the clipboard to transfer the output back to the HTA.

    Sounds like a half decent hack, I've not tried it for myself yet though.

    Matt

提交回复
热议问题