Windows クラスター プロビジョニング スクリプトがあります。管理者として New-Cluster コマンドを実行できません。コマンドを実行できるようにするには、ユーザーがドメインユーザーである必要があると書かれています。
PSExec を使用してドメイン ユーザーとしてログインし、コマンドが機能しているかどうかを試していますが、まだ成功していません。
C:\Users\Administrator\Desktop\PSTools\PsExec.exe -s -u name -p "pass" -accepteula cmd /c "powershell -noprofile & { Start-Process powershell.exe "-NoProfile -ExecutionPolicy Bypass -File
「C:\scripts\cluster-config.ps1" " -Verb RunAs; exit }"
(実行中にパラメータを正しく渡しました)
cluster-config.ps1
param(
[Parameter(Mandatory=$true)][string]$clusterName,
[Parameter(Mandatory=$true)][string]$srv1,
[Parameter(Mandatory=$true)][string]$srv2,
[Parameter(Mandatory=$true)][string]$clusterIP
)
#Create and configure the WinCluster
New-Cluster -Name $clusterName -Node $srv1,$srv2 -StaticAddress $clusterIP -AdministrativeAccessPoint ActiveDirectoryAndDns
広告管理者として Windows クラスターを作成するにはどうすればよいですか? 残念ながら、ドメイン ユーザーの資格情報を使用して直接ログインすることはできません。