Website under construction



Download 13,37 Mb.
Pdf ko'rish
bet126/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


PartialConfigurations
has two values represented by the 
IISInstall
and 
IndexFile
configurations, and 
ReportManagers
has a value of 
ComplianceServer

New methods in LCM 
There are three new methods in LCM v2: 
GetConfigurationStatus

GetConfigurationResultOutput

and 
SendConfigurationApplyAsync
. Let's examine these briefly. 
GetConfigurationStatus 
The 
GetConfigurationStatus
method retrieves the current status of configuration for a server. The 
new DSC cmdlet Get-DSCConfigurationStatus invokes the CIM method. The following code shows an 
example of Get-DSCConfigurationStatus: 
PS C:\> $cimsession = New-CimSession -ComputerName DemoServerWin10 
PS C:\> Get-DscConfigurationStatus -CimSession $cimsession 
Status StartDate Type Mode RebootRequested
NumberOfConfigurationResources PSComputerName
------ --------- ---- ---- ---------------
------------------------------ --------------


146 
CHAPTER 5 | Systems management 
Success 2016/07/12 16:23:03 Consistency PUSH False
1 DemoServerWin10
GetConfigurationResultOutput 
The 
GetConfigurationResultOutput
method provides verbose information about the current 
configuration and the configuration drifts. There is no DSC cmdlet that invokes this CIM method. 
Instead, you can invoke it can by using the CIM cmdlet Invoke-CIMMethod, as shown here: 
PS C:\>
$ConsistencyCheck = (Invoke-CimMethod -ClassName "MSFT_DSCLocalConfigurationManager" ` 
-Namespace "root\Microsoft\Windows\DesiredStateConfiguration" ` 
-MethodName getConfigurationResultOutput) 
for($i=0; $i -le 100; $i++) 

$ConsistencyCheck[$i].ItemValue.Message 

[DEMOSERVERWIN10]: [] Starting consistency engine. 
[DEMOSERVERWIN10]: LCM: [ Start Resource ] [[WindowsFeature]XPS]
[DEMOSERVERWIN10]: LCM: [ Start Test ] [[WindowsFeature]XPS]
[DEMOSERVERWIN10]: [[WindowsFeature]XPS] Begin running Test functionality on the 
XPS-Viewer feature. 
[DEMOSERVERWIN10]: [[WindowsFeature]XPS] Querying for feature XPS-Viewer using 
Server Manager cmdlet Get-WindowsFeature. 
[DEMOSERVERWIN10]: [[WindowsFeature]XPS] The operation 'Get-WindowsFeature' 
started: XPS-Viewer 
[DEMOSERVERWIN10]: [[WindowsFeature]XPS] GetServerComponentsAsync provider method 
started: XPS-Viewer 
[DEMOSERVERWIN10]: [[WindowsFeature]XPS] Call to GetServerComponentsAsync provider 
method succeeded. 
[DEMOSERVERWIN10]: [[WindowsFeature]XPS] The operation 'Get-WindowsFeature' 
succeeded: XPS-Viewer 
[DEMOSERVERWIN10]: [[WindowsFeature]XPS] End running Test functionality on the 
XPS-Viewer feature. 
[DEMOSERVERWIN10]: LCM: [ End Test ] [[WindowsFeature]XPS] in 0.4667 seconds. 
[DEMOSERVERWIN10]: LCM: [ End Resource ] [[WindowsFeature]XPS]
[DEMOSERVERWIN10]: [] Consistency check completed. 

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