0

html/php ページによって呼び出されるスクリプト (クォータを管理する) があります.ps1。ユーザーがスクリプトを呼び出すときに (特定のユーザーを提供するために) 読み取りホストを取得することは可能ですか?

.ps1 スクリプトに読み取りホストを入れようとしただけですが、うまくいきませ($user= read-host "Please, specify a user")ん...

参考までに、html ページは次のとおりです。

<?php

shell_exec('powershell -executionpolicy remotesigned -command "& {"./quotas-disk-d.ps1"; exit $err}"');
header ("Refresh: 0;URL=./quot.html");

?>

ありがとう

4

1 に答える 1