Nazirov Otabek 11-mavzu: Operatsion tizimda fayl tizimi bilan ishlash otdagi fayl tizimi nima?
Download 0.87 Mb. Pdf ko'rish
|
Otabek compressed
- Bu sahifa navigatsiya:
- InstallJeaFeatures.ps1
- InstallJeaFeature.ps1
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: 1. '$env:COMPUTERNAME\Windows Admin Center Administrators' 2. '$env:COMPUTERNAME\Windows Admin Center Hyper-V Administrators' 3. '$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' $ComputersToConfigure | ForEach-Object { $session = New-PSSession -ComputerName $_ -ErrorAction Stop Copy-Item -Path "~\Desktop\WindowsAdminCenter_RBAC\JustEnoughAdministration\" -Destination "$env:ProgramFiles\WindowsPowerShell\Modules\" -ToSession $session -Recurse -Force Copy-Item -Path "~\Desktop\WindowsAdminCenter_RBAC" -Destination "$env:TEMP\WindowsAdminCenter_RBAC" -ToSession $session -Recurse -Force Invoke-Command -Session $session -ScriptBlock { Import-Module JustEnoughAdministration; & "$env:TEMP\WindowsAdminCenter_RBAC\InstallJeaFeature.ps1" } -AsJob Disconnect-PSSession $session } Download 0.87 Mb. Do'stlaringiz bilan baham: |
Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling
ma'muriyatiga murojaat qiling