--- lang: ja-jp breaks: true --- # Azure Virtual Machines の Windows Server 2022 でライセンス認証エラーが発生する。 2022-03-22 ![](https://i.imgur.com/CZk8d5t.png) ## Azure Windows 仮想マシンのライセンス認証に関する問題のトラブルシューティング > 手順 2: VM と Azure KMS サービスの間の接続を確認する > https://docs.microsoft.com/ja-jp/troubleshoot/azure/virtual-machines/troubleshoot-activation-problems#step-2-verify-the-connectivity-between-the-vm-and-azure-kms-service > PSping ツール > https://docs.microsoft.com/ja-jp/sysinternals/downloads/ ```powershell= Invoke-Expression "$env:windir\system32\cscript.exe $env:windir\system32\slmgr.vbs /skms kms.core.windows.net:1688" ``` ```shell= .\psping.exe kms.core.windows.net:1688 ``` 以下を実行したら、複数回実行後に成功した。 ```powershell= 1..12 | ForEach-Object { Invoke-Expression "$env:windir\system32\cscript.exe $env:windir\system32\slmgr.vbs /ato" ; start-sleep 5 } ``` ![](https://i.imgur.com/w5JBlI6.png) 成功したかと思ったが、その後も画面上ではライセンス認証されていないと表示されている。。。 ###### tags: `Azure` `Windows Server 2022` `ライセンス認証`