JeaEndpoint RoleDefinitions xususiyatidagi guruh nomlarini o'zingiz xohlagan xavfsizlik guruhlariga o'zgartiring. Misol uchun, agar sizda CONTOSO\MyTrustedAdmins xavfsizlik guruhi bo'lsa , unga Windows Admin Center Administrators roliga ruxsat berilgan bo'lsa, ga '$env:COMPUTERNAME\Windows Admin Center Administrators'o'zgartiring 'CONTOSO\MyTrustedAdmins'. Siz yangilashingiz kerak bo'lgan uchta qator:
'$env:COMPUTERNAME\Windows Admin Center Administrators'
'$env:COMPUTERNAME\Windows Admin Center Hyper-V Administrators'
'$env:COMPUTERNAME\Windows Admin Center Readers'
Eslatma Har bir rol uchun noyob xavfsizlik guruhlaridan foydalanganingizga ishonch hosil qiling. Agar bir xil xavfsizlik guruhi bir nechta rollarga tayinlangan bo'lsa, konfiguratsiya muvaffaqiyatsiz bo'ladi.
Keyin, InstallJeaFeatures.ps1 faylining oxirida skriptning pastki qismiga PowerShell-ning quyidagi qatorlarini qo'shing:
PowerShellNusxalash
Copy-Item "$PSScriptRoot\JustEnoughAdministration" "$env:ProgramFiles\WindowsPowerShell\Modules" -Recurse -Force
$ConfigData = @{
AllNodes = @()
ModuleBasePath = @{
Source = "$PSScriptRoot\Modules"
Destination = "$env:ProgramFiles\WindowsPowerShell\Modules"
}
}
InstallJeaFeature -ConfigurationData $ConfigData | Out-Null
Start-DscConfiguration -Path "$PSScriptRoot\InstallJeaFeature" -JobName "Installing JEA for Windows Admin Center" -Force
Nihoyat, modullar, DSC manbasi va konfiguratsiyani o'z ichiga olgan papkani har bir maqsadli tugunga nusxalashingiz va InstallJeaFeature.ps1 skriptini ishga tushirishingiz mumkin. Buni administrator ish stantsiyasidan masofadan turib bajarish uchun quyidagi buyruqlarni bajarishingiz mumkin:
PowerShellNusxalash
$ComputersToConfigure = 'MyServer01', 'MyServer02'