場合 $RoleDatacenterFfoEnvironment eq"True"){$ospUserName ="OspUser"です $True のユーザーの設定 $ospUserName - RemotePowerShellEnabled-CertificateSubject ...

場合 ($RoleDatacenterFfoEnvironment eq"True"){$ospUserName ="OspUser"です。$True のユーザーの設定 $ospUserName - RemotePowerShellEnabled-CertificateSubject $RoleDatacenterOspCertSubjects - ドメイン コント ローラー、$RoleDomainController。# 新しい管理の役割を定義します。$centralAdminManagementRole $RoleDomainController 取得 ManagementRole-ドメイン コント ローラーを = RoleType CentralAdminManagement?{ $_.IsRootRole しています。$ospUserUnscopedRoleName ="OspUser UnscopedRole"。$ospUserUnscopedRole = $RoleDomainController の取得 ManagementRole-ドメイン コント ローラー?{$_.名前 - ieq $ospUserUnscopedRoleName しています。場合 (-ない $ospUserUnscopedRole){$ospUserUnscopedRole = New ManagementRole-$ospUserUnscopedRoleName の名前-$RoleDomainController; $centralAdminManagementRole - ドメイン コント ローラーの親}}