virtualization:esxi:esxi_on_hyper-v
差分
このページの2つのバージョン間の差分を表示します。
次のリビジョン | 前のリビジョン | ||
virtualization:esxi:esxi_on_hyper-v [2023/11/24 13:30] – 作成 mikoto | virtualization:esxi:esxi_on_hyper-v [2023/11/24 14:00] (現在) – mikoto | ||
---|---|---|---|
行 6: | 行 6: | ||
< | < | ||
Install-Module -Name VMware.PowerCLI | Install-Module -Name VMware.PowerCLI | ||
+ | or | ||
+ | Install-Module VMware.PowerCLI -Scope CurrentUser -AllowClobber | ||
</ | </ | ||
+ | デジタル署名されていないとエラーが出る場合は以下のファイルを作成 | ||
+ | <file powershell selfsign.ps1> | ||
+ | # 署名用の証明書を作成 | ||
+ | $cert = New-SelfSignedCertificate ` | ||
+ | -Subject " | ||
+ | -KeyAlgorithm RSA ` | ||
+ | -KeyLength 2048 ` | ||
+ | -Type CodeSigningCert ` | ||
+ | -CertStoreLocation Cert: | ||
+ | -NotAfter ([datetime]" | ||
+ | # 信頼済みのルートとして使用 | ||
+ | Move-Item " | ||
+ | |||
+ | # 証明書への参照を取得 | ||
+ | $rootcert = @(Get-ChildItem cert: | ||
+ | # スクリプトに署名 | ||
+ | Set-AuthenticodeSignature D: | ||
+ | </ |
virtualization/esxi/esxi_on_hyper-v.1700800203.txt.gz · 最終更新: 2023/11/24 13:30 by mikoto