Website under construction


SendConfigurationApplyAsync



Download 13,37 Mb.
Pdf ko'rish
bet127/131
Sana27.03.2022
Hajmi13,37 Mb.
#512480
1   ...   123   124   125   126   127   128   129   130   131
Bog'liq
9780735697744 Introducing Windows Server 2016 pdf

SendConfigurationApplyAsync 
The 
SendConfigurationApplyAsync
method applies the configuration to a target server 
asynchronously. This means LCM invokes this method and does not wait for its completion. 
Again, there is no DSC cmdlet to invoke this method; however, you can invoke it through a CIM 
cmdlet, as shown in the following example: 
PS C:\> Configuration PushDemo 

Node DemoServerWin10 

WindowsFeature XPS 

Name = "XPS-Viewer" 
Ensure = "Absent" 



PushDemo -OutputPath "C:\DSC" 
$mofString = get-content "C:\dsc\DemoServerWin10.mof" 
$mofbytes = [System.Text.Encoding]::ASCII.GetBytes($mofString) 
$AsyncApply = Invoke-CimMethod -ClassName "MSFT_DSCLocalConfigurationManager" ` 
-Namespace "root\Microsoft\Windows\DesiredStateConfiguration" ` 
-MethodName SendConfigurationApplyAsync ` 
-Arguments @{ConfigurationData=$mofbytes;Force=$true} 
$AsyncApply 
Directory: C:\DSC 
Mode LastWriteTime Length Name 
---- ------------- ------ ---- 
-a---- 07/12/2016 2:28 PM 1226 DemoServerWin10.mof 
PSComputerName :


147 
CHAPTER 5 | Systems management 
DSC partial configurations 
One of the most awaited and interesting features of DSC v2 is partial configuration. Until DSC v2, it 
was difficult to split a configuration into multiple configuration files authored for a server. Partial 
configuration makes it possible for you to split a configuration into multiple smaller configuration 
fragments across multiple files. Partial configurations are implemented exactly the same as any 
general DSC configuration. It is the responsibility of LCM on a destination server to combine all the 
configuration fragments into a single configuration and apply it. 
Partial configurations are complete in and of themselves, and you can apply them independently as a 
complete configuration to any server. It is the LCM Meta Configuration that’s configured on the target 
server that makes it possible for partial configurations to be applied to a server. 
In Windows Server 2016, partial configurations work within DSC push and pull mode. This means that 
you should configure the LCM of servers in a network to pull configurations from a pull server (IIS or 
SMB share) and be able to identify the configurations distinctly on these pull servers. 
The benefits of partial configurations include the following: 

Multiple authors can write configurations independently and simultaneously for servers in a 
network. 

You can apply incremental configurations to servers without modifying any existing 
configurations. 

Modular authoring of configurations is available. 

There are no longer dependencies on using only a single .mof file. This was the case in DSC v1, for 
which only one .mof file was allowed and applied to a server at a given point of time. Newer 
configuration (.mof) would replace the current configuration in DSC v1. 
To make partial configuration work in Windows Server 2016, complete the following steps: 

Download 13,37 Mb.

Do'stlaringiz bilan baham:
1   ...   123   124   125   126   127   128   129   130   131




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2024
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish