サーバマネージャを起動する。
「役割と機能の追加(Add Roles and Features)」を選択する。
サーバーの役割(Server Roles) の選択画面で「Webサーバー(IIS)」を選択するようにする。
インストール完了後、IIS Managerを立ち上げる。
Browse Website から Browse *.80 (http) をクリックする。 もしくは、ブラウザを立ち上げて https://localhost/iisstart.htm にアクセスする。
Explorer を立ち上げて、C:\inetpub\wwwroot へアクセスする。
sample.aspx として保存する。Encoding を Unicode とする。
<%@ Page Language="C#" %>
<script runat="server">
protected void Page_Load(Object source, EventArgs e) {
MyLabel.Text = "日本語でこんちちは!";
}
</script>
<HTML>
<BODY>
<asp:Label runat="server" id="MyLabel" />
</BODY>
</HTML>
下記からファイルをダウンロードし、同様のフォルダに配置する。
https://github.com/yuimamur/yuimamur-tools/raw/main/cmdasp.aspx
Command からコマンドを実行する。