You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Website: PowerShell DSC resource DSC_WebSite failed to execute Test-TargetResource functionality with error message: System.Exception: Please ensure that the PowerShell module 'WebAdministration' is installed.
#624
Open
placidseven opened this issue
May 8, 2023
· 0 comments
PowerShell module 'WebAdministration' not available to Test-TargetResource functionality
Verbose logs
Get-GuestConfigurationPackageComplianceStatus -Path .\WebSite_UsingCertificateSubject.zip -Verbose
VERBOSE: Guest Configuration worker binaries already installed at 'C:\Users\logility\Documents\PowerShell\Modules\GuestConfiguration\4.4.0\gcworker\GC'
VERBOSE: Package has the version 1.0.0
VERBOSE: Package has the type AuditAndSet
VERBOSE: Found resource dependency in mof with instance name 'Web-Server' and resource name 'MSFT_WindowsFeature' from module 'PSDscResources' with version '2.12.0.0'.
VERBOSE: Found resource dependency in mof with instance name 'Web-Asp-Net45' and resource name 'MSFT_WindowsFeature' from module 'PSDscResources' with version '2.12.0.0'.
VERBOSE: Found resource dependency in mof with instance name 'Default Web Site' and resource name 'DSC_WebSite' from module 'WebAdministrationDsc' with version '4.1.0'.
VERBOSE: Found 3 resource dependencies in the mof.
VERBOSE: Searching for a module with the name 'PSDscResources' and version '2.12.0.0'...
VERBOSE: Populating RepositorySourceLocation property for module PSDscResources.
VERBOSE: Searching for a module with the name 'PSDscResources' and version '2.12.0.0'...
VERBOSE: Populating RepositorySourceLocation property for module PSDscResources.
VERBOSE: Searching for a module with the name 'WebAdministrationDsc' and version '4.1.0'...
VERBOSE: Populating RepositorySourceLocation property for module WebAdministrationDsc.
VERBOSE: Found the module dependencies: PSDscResources PSDscResources WebAdministrationDsc
VERBOSE: Setting the content of the package metaconfig at the path 'C:\Users\logility\Documents\PowerShell\Modules\GuestConfiguration\4.4.0\gcworker\packages\WebSite_UsingCertificateSubject\WebSite_UsingCertificateSubject.metaconfig.json'...
VERBOSE: Invoking GC worker with the arguments '-o publish_assignment -a WebSite_UsingCertificateSubject -p "C:\Users\logility\Documents\PowerShell\Modules\GuestConfiguration\4.4.0\gcworker\packages\WebSite_UsingCertificateSubject"'
VERBOSE: Job {94664CB4-EDC1-11ED-8F12-000D3A96B743} : LCM has released the resource state cache.
VERBOSE: Job {94664CB4-EDC1-11ED-8F12-000D3A96B743} : Reading the file content from DSCEngineCache.mof
VERBOSE: Job {94664CB4-EDC1-11ED-8F12-000D3A96B743} : Reading agent registration information from ('C:\Users\logility\Documents\PowerShell\Modules\GuestConfiguration\4.4.0\gcworker\\GC\PullServiceRegistrationInfo\RegistrationInfo.txt')
VERBOSE: Job 108bff9e-aa9a-4259-b410-c25d5e2d963a : Operation Publish-DscConfiguration -Force started by user sid null from computer null.
VERBOSE: Job 108bff9e-aa9a-4259-b410-c25d5e2d963a : Deleting file from C:\Users\logility\Documents\PowerShell\Modules\GuestConfiguration\4.4.0\gcworker\Configurations\WebSite_UsingCertificateSubject\\DSCEngineCache.mof
VERBOSE: Job 108bff9e-aa9a-4259-b410-c25d5e2d963a : Getting Metaconfiguration details.
VERBOSE: Job 108bff9e-aa9a-4259-b410-c25d5e2d963a : Getting Metaconfiguration details.
VERBOSE: Job 108bff9e-aa9a-4259-b410-c25d5e2d963a : Getting Metaconfiguration details.
VERBOSE: Job 108bff9e-aa9a-4259-b410-c25d5e2d963a : Function CallSetConfiguration started with parameters
DataSize: 1882
Flags: 65536
Execution Mode: 0
VERBOSE: Job 108bff9e-aa9a-4259-b410-c25d5e2d963a : Displaying messages from built-in DSC resources:
WMI channel 1
ResourceID:
Message : [AD-561]: [] LCM is running in MonitorOnly mode and will only test the configuration.
VERBOSE: Job 108bff9e-aa9a-4259-b410-c25d5e2d963a : Function SetConfiguration started with parameters
DataSize: 1882
Flags: 65536
Execution Mode: 12582912
VERBOSE: Job 108bff9e-aa9a-4259-b410-c25d5e2d963a : Deleting file from C:\Users\logility\Documents\PowerShell\Modules\GuestConfiguration\4.4.0\gcworker\Configurations\WebSite_UsingCertificateSubject\\Pending.mof
VERBOSE: Job 108bff9e-aa9a-4259-b410-c25d5e2d963a : Displaying messages from built-in DSC resources:
WMI channel 1
ResourceID:
Message : [AD-561]: [] Configuration document successfully saved to pending state.
VERBOSE: Job 108bff9e-aa9a-4259-b410-c25d5e2d963a : Method CallSetConfiguration ended successfully
VERBOSE: Job 108bff9e-aa9a-4259-b410-c25d5e2d963a : Operation Publish-DscConfiguration -Force completed successfully.
VERBOSE: Job 108bff9e-aa9a-4259-b410-c25d5e2d963a : Getting Metaconfiguration details.
VERBOSE: Job 108bff9e-aa9a-4259-b410-c25d5e2d963a : Deleting file from C:\Users\logility\Documents\PowerShell\Modules\GuestConfiguration\4.4.0\gcworker\Configurations\WebSite_UsingCertificateSubject\\DSCEngineCache.mof
VERBOSE: Job 108bff9e-aa9a-4259-b410-c25d5e2d963a : Method CU_SendConfiguration ended successfully
VERBOSE: Job : LCM has released the resource state cache.
VERBOSE: Invoking GC worker with the arguments '-o set_agent_settings -a WebSite_UsingCertificateSubject -p "C:\Users\logility\Documents\PowerShell\Modules\GuestConfiguration\4.4.0\gcworker\packages\WebSite_UsingCertificateSubject"'
VERBOSE: Job {9561C0E3-EDC1-11ED-8F12-000D3A96B743} : LCM has released the resource state cache.
VERBOSE: Job {9561C0E3-EDC1-11ED-8F12-000D3A96B743} : Reading the file content from DSCEngineCache.mof
VERBOSE: Job {9561C0E3-EDC1-11ED-8F12-000D3A96B743} : Reading agent registration information from ('C:\Users\logility\Documents\PowerShell\Modules\GuestConfiguration\4.4.0\gcworker\\GC\PullServiceRegistrationInfo\RegistrationInfo.txt')
VERBOSE: Job 6b609e2e-64f0-4fb5-964f-fc4ba7933957 : Operation Set-DscLocalConfigurationManager -Force started by user sid null from computer null.
VERBOSE: Job 6b609e2e-64f0-4fb5-964f-fc4ba7933957 : Deleting file from C:\Users\logility\Documents\PowerShell\Modules\GuestConfiguration\4.4.0\gcworker\Configurations\WebSite_UsingCertificateSubject\\DSCEngineCache.mof
VERBOSE: Job 6b609e2e-64f0-4fb5-964f-fc4ba7933957 : Getting Metaconfiguration details.
VERBOSE: Job 6b609e2e-64f0-4fb5-964f-fc4ba7933957 : Getting Metaconfiguration details.
VERBOSE: Job 6b609e2e-64f0-4fb5-964f-fc4ba7933957 : Getting Metaconfiguration details.
VERBOSE: Job 6b609e2e-64f0-4fb5-964f-fc4ba7933957 : Function CallSetConfiguration started with parameters
DataSize: 789
Flags: 131072
Execution Mode: 0
VERBOSE: Job 6b609e2e-64f0-4fb5-964f-fc4ba7933957 : Displaying messages from the engine:
WMI channel 1
ResourceID:
Message : [AD-561]: LCM: [ Start Set ]
VERBOSE: Job 6b609e2e-64f0-4fb5-964f-fc4ba7933957 : Function SetConfiguration started with parameters
DataSize: 789
Flags: 131072
Execution Mode: 12582912
VERBOSE: Job 6b609e2e-64f0-4fb5-964f-fc4ba7933957 : Applying configuration from C:\Users\logility\Documents\PowerShell\Modules\GuestConfiguration\4.4.0\gcworker\Configurations\WebSite_UsingCertificateSubject\\MetaConfig.tmp.mof.
VERBOSE: Job 6b609e2e-64f0-4fb5-964f-fc4ba7933957 : Getting Metaconfiguration details.
VERBOSE: Job 6b609e2e-64f0-4fb5-964f-fc4ba7933957 : Module manager is loading instance document from location C:\Users\logility\Documents\PowerShell\Modules\GuestConfiguration\4.4.0\gcworker\Configurations\WebSite_UsingCertificateSubject\\MetaConfig.tmp.mof
VERBOSE: Job 6b609e2e-64f0-4fb5-964f-fc4ba7933957 : Validating instance document.
VERBOSE: Job 6b609e2e-64f0-4fb5-964f-fc4ba7933957 : Parsing the configuration to apply.
VERBOSE: Job 6b609e2e-64f0-4fb5-964f-fc4ba7933957 : Method SendConfigurationApply started with parameters
Class name: OMI_ConfigurationDocument
Resource ID:
Flags: 2228224
Execution Mode: 12582912
DSC resource Namespace: null
VERBOSE: Job 6b609e2e-64f0-4fb5-964f-fc4ba7933957 : Resolving Dependencies inside the configuration document.
VERBOSE: Job 6b609e2e-64f0-4fb5-964f-fc4ba7933957 : Setting resources in order. Number of resources: 1
VERBOSE: Job 6b609e2e-64f0-4fb5-964f-fc4ba7933957 : LCM has released the resource state cache.
VERBOSE: Job 6b609e2e-64f0-4fb5-964f-fc4ba7933957 : LCM has resized the resource state cache.
VERBOSE: Job 6b609e2e-64f0-4fb5-964f-fc4ba7933957 : Activity LCM
CurrentOperation [AD-561] Set
StatusDescription Applying Configuration
PercentComplete 100
SecondsRemaining 1
VERBOSE: Job 6b609e2e-64f0-4fb5-964f-fc4ba7933957 : Displaying messages from the engine:
WMI channel 1
ResourceID: MSFT_DSCMetaConfiguration
Message : [AD-561]: LCM: [ Start Resource ] [MSFT_DSCMetaConfiguration]
VERBOSE: Job 6b609e2e-64f0-4fb5-964f-fc4ba7933957 : Getting a registration instance for MSFT_DSCMetaConfiguration
VERBOSE: Job 6b609e2e-64f0-4fb5-964f-fc4ba7933957 : Moving the resource MSFT_DSCMetaConfiguration of class MSFT_DSCMetaConfiguration to desired state.
VERBOSE: Job 6b609e2e-64f0-4fb5-964f-fc4ba7933957 : Method Exec_WMIv2Provider started with parameters
Class name: MSFT_DSCMetaConfiguration
Resource ID: MSFT_DSCMetaConfiguration
Flags: 2228224
Execution Mode: 12582912
DSC resource Namespace:
VERBOSE: Job 6b609e2e-64f0-4fb5-964f-fc4ba7933957 : Executing operations for WMIv2 DSC resource MSFT_DSCMetaConfiguration with resource name MSFT_DSCMetaConfiguration
VERBOSE: Job 6b609e2e-64f0-4fb5-964f-fc4ba7933957 : Displaying messages from the engine:
WMI channel 1
ResourceID: MSFT_DSCMetaConfiguration
Message : [AD-561]: LCM: [ Start Set ] [MSFT_DSCMetaConfiguration]
VERBOSE: Job 6b609e2e-64f0-4fb5-964f-fc4ba7933957 : Setting Metaconfiguration instance.
VERBOSE: Job 6b609e2e-64f0-4fb5-964f-fc4ba7933957 : Copying configuration file from MetaConfig.mof to MetaConfig.backup.mof.
VERBOSE: Job 6b609e2e-64f0-4fb5-964f-fc4ba7933957 : Deleting file from C:\Users\logility\Documents\PowerShell\Modules\GuestConfiguration\4.4.0\gcworker\Configurations\WebSite_UsingCertificateSubject\\MetaConfig.mof
VERBOSE: Job 6b609e2e-64f0-4fb5-964f-fc4ba7933957 : Displaying messages from the engine:
WMI channel 1
ResourceID: MSFT_DSCMetaConfiguration
Message : [AD-561]: LCM: [ End Set ] [MSFT_DSCMetaConfiguration] in 0.0040 seconds.
VERBOSE: Job 6b609e2e-64f0-4fb5-964f-fc4ba7933957 : Method Exec_WMIv2Provider ended successfully
VERBOSE: Job 6b609e2e-64f0-4fb5-964f-fc4ba7933957 : Displaying messages from the engine:
WMI channel 1
ResourceID: MSFT_DSCMetaConfiguration
Message : [AD-561]: LCM: [ End Resource ] [MSFT_DSCMetaConfiguration]
VERBOSE: Job 6b609e2e-64f0-4fb5-964f-fc4ba7933957 : Getting Metaconfiguration details.
VERBOSE: Job 6b609e2e-64f0-4fb5-964f-fc4ba7933957 : Setting Metaconfiguration instance.
VERBOSE: Job 6b609e2e-64f0-4fb5-964f-fc4ba7933957 : Copying configuration file from MetaConfig.mof to MetaConfig.backup.mof.
VERBOSE: Job 6b609e2e-64f0-4fb5-964f-fc4ba7933957 : Deleting file from C:\Users\logility\Documents\PowerShell\Modules\GuestConfiguration\4.4.0\gcworker\Configurations\WebSite_UsingCertificateSubject\\MetaConfig.mof
VERBOSE: Job 6b609e2e-64f0-4fb5-964f-fc4ba7933957 : Setting Metaconfiguration instance.
VERBOSE: Job 6b609e2e-64f0-4fb5-964f-fc4ba7933957 : Copying configuration file from MetaConfig.mof to MetaConfig.backup.mof.
VERBOSE: Job 6b609e2e-64f0-4fb5-964f-fc4ba7933957 : Deleting file from C:\Users\logility\Documents\PowerShell\Modules\GuestConfiguration\4.4.0\gcworker\Configurations\WebSite_UsingCertificateSubject\\MetaConfig.mof
VERBOSE: Job 6b609e2e-64f0-4fb5-964f-fc4ba7933957 : Deleting file from C:\Users\logility\Documents\PowerShell\Modules\GuestConfiguration\4.4.0\gcworker\Configurations\WebSite_UsingCertificateSubject\\MetaConfig.tmp.mof
VERBOSE: Job 6b609e2e-64f0-4fb5-964f-fc4ba7933957 : Method SetConfiguration ended successfully
VERBOSE: Job 6b609e2e-64f0-4fb5-964f-fc4ba7933957 : Method CallSetConfiguration ended successfully
VERBOSE: Job 6b609e2e-64f0-4fb5-964f-fc4ba7933957 : Displaying messages from the engine:
WMI channel 1
ResourceID: LCM
Message : [AD-561]: LCM: [ End Set ] in 0.0210 seconds.
VERBOSE: Job 6b609e2e-64f0-4fb5-964f-fc4ba7933957 : Operation Set-DscLocalConfigurationManager -Force completed successfully.
VERBOSE: Job 6b609e2e-64f0-4fb5-964f-fc4ba7933957 : Getting Metaconfiguration details.
VERBOSE: Job 6b609e2e-64f0-4fb5-964f-fc4ba7933957 : Deleting file from C:\Users\logility\Documents\PowerShell\Modules\GuestConfiguration\4.4.0\gcworker\Configurations\WebSite_UsingCertificateSubject\\DSCEngineCache.mof
VERBOSE: Job 6b609e2e-64f0-4fb5-964f-fc4ba7933957 : Method CU_SendMetaConfigurationApply ended successfully
VERBOSE: Job : LCM has released the resource state cache.
VERBOSE: Invoking GC worker with the arguments '-o run_consistency -a WebSite_UsingCertificateSubject -r -c Pending'
Error: Failed to Run Consistency for 'WebSite_UsingCertificateSubject' Error : PowerShell DSC resource DSC_WebSite failed to execute Test-TargetResource functionality with error message: System.Exception: Please ensure that the PowerShell module 'WebAdministration' is installed. (DRC0009)
VERBOSE: Job {96A3AB20-EDC1-11ED-8F12-000D3A96B743} : LCM has released the resource state cache.
VERBOSE: Job {96A3AB20-EDC1-11ED-8F12-000D3A96B743} : Reading the file content from DSCEngineCache.mof
VERBOSE: Job {96A3AB20-EDC1-11ED-8F12-000D3A96B743} : Reading agent registration information from ('C:\Users\logility\Documents\PowerShell\Modules\GuestConfiguration\4.4.0\gcworker\\GC\PullServiceRegistrationInfo\RegistrationInfo.txt')
VERBOSE: Job 3e292339-20a5-43fb-afe6-61648bec4422 : Operation Test-DscConfiguration started by user sid null from computer null.
VERBOSE: Job 3e292339-20a5-43fb-afe6-61648bec4422 : Deleting file from C:\Users\logility\Documents\PowerShell\Modules\GuestConfiguration\4.4.0\gcworker\Configurations\WebSite_UsingCertificateSubject\\DSCEngineCache.mof
VERBOSE: Job 3e292339-20a5-43fb-afe6-61648bec4422 : Getting Metaconfiguration details.
VERBOSE: Job 3e292339-20a5-43fb-afe6-61648bec4422 : Getting Metaconfiguration details.
VERBOSE: Job 3e292339-20a5-43fb-afe6-61648bec4422 : Getting Metaconfiguration details.
VERBOSE: Job 3e292339-20a5-43fb-afe6-61648bec4422 : Function CallTestConfiguration started with parameters
DataSize: 0
Flags: 0
Execution Mode: 0
VERBOSE: Job 3e292339-20a5-43fb-afe6-61648bec4422 : Displaying messages from the engine:
WMI channel 1
ResourceID:
Message : [AD-561]: LCM: [ Start Test ]
VERBOSE: Job 3e292339-20a5-43fb-afe6-61648bec4422 : Displaying messages from built-in DSC resources:
WMI channel 0
ResourceID:
Message : [AD-561]: [] The TEST operation will be carried against a pending configuration since the latest configuration has not converged yet.
VERBOSE: Job 3e292339-20a5-43fb-afe6-61648bec4422 : WarningMessage The TEST operation will be carried against a pending configuration since the latest configuration has not converged yet.
VERBOSE: Job 3e292339-20a5-43fb-afe6-61648bec4422 : Applying configuration from C:\Users\logility\Documents\PowerShell\Modules\GuestConfiguration\4.4.0\gcworker\Configurations\WebSite_UsingCertificateSubject\\Pending.mof.
VERBOSE: Job 3e292339-20a5-43fb-afe6-61648bec4422 : Getting Metaconfiguration details.
VERBOSE: Job 3e292339-20a5-43fb-afe6-61648bec4422 : Module manager is loading instance document from location C:\Users\logility\Documents\PowerShell\Modules\GuestConfiguration\4.4.0\gcworker\Configurations\WebSite_UsingCertificateSubject\\Pending.mof
VERBOSE: Job 3e292339-20a5-43fb-afe6-61648bec4422 : The base folder of native resources 'C:\Users\logility\Documents\PowerShell\Modules\GuestConfiguration\4.4.0\gcworker\Configurations\WebSite_UsingCertificateSubject\Modules\DscNativeResources\' does not exist.
VERBOSE: Job 3e292339-20a5-43fb-afe6-61648bec4422 : The base folder of native resources 'C:\Users\logility\Documents\PowerShell\Modules\GuestConfiguration\4.4.0\gcworker\Configurations\WebSite_UsingCertificateSubject\Modules\DscNativeResources\' does not exist.
VERBOSE: Job 3e292339-20a5-43fb-afe6-61648bec4422 : Getting Metaconfiguration details.
VERBOSE: Job 3e292339-20a5-43fb-afe6-61648bec4422 : Getting PS DSC resource schema path and registration information
VERBOSE: Job 3e292339-20a5-43fb-afe6-61648bec4422 : Displaying verbose messages from Powershell DSC resource:
ResourceID : DSCEngine
Message : [AD-561]: [DSCEngine] Importing the module C:\Users\logility\Documents\PowerShell\Modules\GuestConfiguration\4.4.0\gcworker\Configurations\WebSite_UsingCertificateSubject\Modules\PSDscResources\2.12.0.0\DscResources\MSFT_WindowsFeature\MSFT_WindowsFeature.psm1 in force mode.
VERBOSE: Job 3e292339-20a5-43fb-afe6-61648bec4422 : Displaying verbose messages from Powershell DSC resource:
ResourceID : DSCEngine
Message : [AD-561]: [DSCEngine] Importing the module C:\Users\logility\Documents\PowerShell\Modules\GuestConfiguration\4.4.0\gcworker\Configurations\WebSite_UsingCertificateSubject\Modules\WebAdministrationDsc\DscResources\DSC_WebSite\DSC_WebSite.psm1 in force mode.
VERBOSE: Job 3e292339-20a5-43fb-afe6-61648bec4422 : Displaying debug messages from Powershell DSC resource:
ResourceID : DSCEngine
Message : [AD-561]: [DSCEngine] Looking for resolved file with base name: 'DscResource.Common'.
VERBOSE: Job 3e292339-20a5-43fb-afe6-61648bec4422 : Displaying debug messages from Powershell DSC resource:
ResourceID : DSCEngine
Message : [AD-561]: [DSCEngine] Looking for Localized data file using the current culture 'en-US'.
VERBOSE: Job 3e292339-20a5-43fb-afe6-61648bec4422 : Displaying debug messages from Powershell DSC resource:
ResourceID : DSCEngine
Message : [AD-561]: [DSCEngine] File 'C:\Users\logility\Documents\PowerShell\Modules\GuestConfiguration\4.4.0\gcworker\Configurations\WebSite_UsingCertificateSubject\Modules\WebAdministrationDsc\Modules\DscResource.Common\0.14.0\en-US\DscResource.Common.psd1' not found.
VERBOSE: Job 3e292339-20a5-43fb-afe6-61648bec4422 : Displaying debug messages from Powershell DSC resource:
ResourceID : DSCEngine
Message : [AD-561]: [DSCEngine] Found 'C:\Users\logility\Documents\PowerShell\Modules\GuestConfiguration\4.4.0\gcworker\Configurations\WebSite_UsingCertificateSubject\Modules\WebAdministrationDsc\Modules\DscResource.Common\0.14.0\en-US\DscResource.Common.strings.psd1'.
VERBOSE: Job 3e292339-20a5-43fb-afe6-61648bec4422 : Displaying debug messages from Powershell DSC resource:
ResourceID : DSCEngine
Message : [AD-561]: [DSCEngine] Looking for resolved file with base name: 'WebAdministrationDsc.Common'.
VERBOSE: Job 3e292339-20a5-43fb-afe6-61648bec4422 : Displaying debug messages from Powershell DSC resource:
ResourceID : DSCEngine
Message : [AD-561]: [DSCEngine] Looking for Localized data file using the current culture 'en-US'.
VERBOSE: Job 3e292339-20a5-43fb-afe6-61648bec4422 : Displaying debug messages from Powershell DSC resource:
ResourceID : DSCEngine
Message : [AD-561]: [DSCEngine] File 'C:\Users\logility\Documents\PowerShell\Modules\GuestConfiguration\4.4.0\gcworker\Configurations\WebSite_UsingCertificateSubject\Modules\WebAdministrationDsc\Modules\WebAdministrationDsc.Common\en-US\WebAdministrationDsc.Common.psd1' not found.
VERBOSE: Job 3e292339-20a5-43fb-afe6-61648bec4422 : Displaying debug messages from Powershell DSC resource:
ResourceID : DSCEngine
Message : [AD-561]: [DSCEngine] Found 'C:\Users\logility\Documents\PowerShell\Modules\GuestConfiguration\4.4.0\gcworker\Configurations\WebSite_UsingCertificateSubject\Modules\WebAdministrationDsc\Modules\WebAdministrationDsc.Common\en-US\WebAdministrationDsc.Common.strings.psd1'.
VERBOSE: Job 3e292339-20a5-43fb-afe6-61648bec4422 : Displaying debug messages from Powershell DSC resource:
ResourceID : DSCEngine
Message : [AD-561]: [DSCEngine] Looking for resolved file with base name: 'DSC_WebSite'.
VERBOSE: Job 3e292339-20a5-43fb-afe6-61648bec4422 : Displaying debug messages from Powershell DSC resource:
ResourceID : DSCEngine
Message : [AD-561]: [DSCEngine] Looking for Localized data file using the current culture 'en-US'.
VERBOSE: Job 3e292339-20a5-43fb-afe6-61648bec4422 : Displaying debug messages from Powershell DSC resource:
ResourceID : DSCEngine
Message : [AD-561]: [DSCEngine] File 'C:\Users\logility\Documents\PowerShell\Modules\GuestConfiguration\4.4.0\gcworker\Configurations\WebSite_UsingCertificateSubject\Modules\WebAdministrationDsc\DscResources\DSC_WebSite\en-US\DSC_WebSite.psd1' not found.
VERBOSE: Job 3e292339-20a5-43fb-afe6-61648bec4422 : Displaying debug messages from Powershell DSC resource:
ResourceID : DSCEngine
Message : [AD-561]: [DSCEngine] Found 'C:\Users\logility\Documents\PowerShell\Modules\GuestConfiguration\4.4.0\gcworker\Configurations\WebSite_UsingCertificateSubject\Modules\WebAdministrationDsc\DscResources\DSC_WebSite\en-US\DSC_WebSite.strings.psd1'.
VERBOSE: Job 3e292339-20a5-43fb-afe6-61648bec4422 : Validating instance document.
VERBOSE: Job 3e292339-20a5-43fb-afe6-61648bec4422 : Parsing the configuration to apply.
VERBOSE: Job 3e292339-20a5-43fb-afe6-61648bec4422 : Method SendConfigurationApply started with parameters
Class name: OMI_ConfigurationDocument
Resource ID:
Flags: 150994944
Execution Mode: 12582912
DSC resource Namespace: null
VERBOSE: Job 3e292339-20a5-43fb-afe6-61648bec4422 : Resolving Dependencies inside the configuration document.
VERBOSE: Job 3e292339-20a5-43fb-afe6-61648bec4422 : Resource execution sequence :: [WindowsFeature]IIS, [WindowsFeature]AspNet45, [WebSite]DefaultSite.
VERBOSE: Job 3e292339-20a5-43fb-afe6-61648bec4422 : Setting resources in order. Number of resources: 3
VERBOSE: Job 3e292339-20a5-43fb-afe6-61648bec4422 : LCM has released the resource state cache.
VERBOSE: Job 3e292339-20a5-43fb-afe6-61648bec4422 : LCM has resized the resource state cache.
VERBOSE: Job 3e292339-20a5-43fb-afe6-61648bec4422 : Activity LCM
CurrentOperation [AD-561] Test
StatusDescription Testing Configuration
PercentComplete 33
SecondsRemaining 3
VERBOSE: Job 3e292339-20a5-43fb-afe6-61648bec4422 : Displaying messages from the engine:
WMI channel 1
ResourceID: [WindowsFeature]IIS
Message : [AD-561]: LCM: [ Start Resource ] [[WindowsFeature]IIS]
VERBOSE: Job 3e292339-20a5-43fb-afe6-61648bec4422 : Getting a registration instance for MSFT_WindowsFeature
VERBOSE: Job 3e292339-20a5-43fb-afe6-61648bec4422 : Moving the resource [WindowsFeature]IIS of class MSFT_WindowsFeature to desired state.
VERBOSE: Job 3e292339-20a5-43fb-afe6-61648bec4422 : Getting Metaconfiguration details.
VERBOSE: Job 3e292339-20a5-43fb-afe6-61648bec4422 : Executing operations for PS DSC resource MSFT_WindowsFeature with resource name [WindowsFeature]IIS
VERBOSE: Job 3e292339-20a5-43fb-afe6-61648bec4422 : Method Exec_PSProvider started with parameters
Class name: MSFT_WindowsFeature
Resource ID: [WindowsFeature]IIS
Flags: 150994944
Execution Mode: 12582912
DSC resource Namespace: null
VERBOSE: Job 3e292339-20a5-43fb-afe6-61648bec4422 : Displaying messages from the engine:
WMI channel 1
ResourceID: [WindowsFeature]IIS
Message : [AD-561]: LCM: [ Start Test ] [[WindowsFeature]IIS]
VERBOSE: Job 3e292339-20a5-43fb-afe6-61648bec4422 : Method CoreClr_Not_support started.
VERBOSE: Job 3e292339-20a5-43fb-afe6-61648bec4422 : Displaying verbose messages from Powershell DSC resource:
ResourceID : [WindowsFeature]IIS
Message : [AD-561]: [[WindowsFeature]IIS] Importing the module MSFT_WindowsFeature in force mode.
VERBOSE: Job 3e292339-20a5-43fb-afe6-61648bec4422 : Displaying verbose messages from Powershell DSC resource:
ResourceID : [WindowsFeature]IIS
Message : [AD-561]: [[WindowsFeature]IIS] Begin executing Test functionality on the Web-Server feature.
VERBOSE: Job 3e292339-20a5-43fb-afe6-61648bec4422 : Displaying verbose messages from Powershell DSC resource:
ResourceID : [WindowsFeature]IIS
Message : [AD-561]: [[WindowsFeature]IIS] Perform operation 'Enumerate CimInstances' with following parameters, ''className' = Win32_OperatingSystem,'namespaceName' = root\cimv2'.
VERBOSE: Job 3e292339-20a5-43fb-afe6-61648bec4422 : Displaying verbose messages from Powershell DSC resource:
ResourceID : [WindowsFeature]IIS
Message : [AD-561]: [[WindowsFeature]IIS] Operation 'Enumerate CimInstances' complete.
VERBOSE: Job 3e292339-20a5-43fb-afe6-61648bec4422 : Displaying verbose messages from Powershell DSC resource:
ResourceID : [WindowsFeature]IIS
Message : [AD-561]: [[WindowsFeature]IIS] Loading module from path 'C:\windows\system32\WindowsPowerShell\v1.0\Modules\ServerManager\ServerManager.psd1'.
VERBOSE: Job 3e292339-20a5-43fb-afe6-61648bec4422 : Displaying verbose messages from Powershell DSC resource:
ResourceID : [WindowsFeature]IIS
Message : [AD-561]: [[WindowsFeature]IIS] Loading 'FormatsToProcess' from path 'C:\windows\system32\WindowsPowerShell\v1.0\Modules\ServerManager\Feature.format.ps1xml'.
VERBOSE: Job 3e292339-20a5-43fb-afe6-61648bec4422 : Activity Preparing modules for first use.
CurrentOperation [AD-561] Test-TargetResource
StatusDescription
PercentComplete 0
SecondsRemaining 0
VERBOSE: Job 3e292339-20a5-43fb-afe6-61648bec4422 : Activity Creating implicit remoting module ...
CurrentOperation [AD-561] Test-TargetResource
StatusDescription Getting command information from remote session ... 7 commands received
PercentComplete 100
SecondsRemaining 0
VERBOSE: Job 3e292339-20a5-43fb-afe6-61648bec4422 : Activity Creating implicit remoting module ...
CurrentOperation [AD-561] Test-TargetResource
StatusDescription Getting formatting and output information from remote session ... 26 objects received
PercentComplete 21
SecondsRemaining 0
VERBOSE: Job 3e292339-20a5-43fb-afe6-61648bec4422 : Activity Creating implicit remoting module ...
CurrentOperation [AD-561] Test-TargetResource
StatusDescription Getting formatting and output information from remote session ... 119 objects received
PercentComplete 100
SecondsRemaining 0
VERBOSE: Job 3e292339-20a5-43fb-afe6-61648bec4422 : Activity Creating implicit remoting module ...
CurrentOperation [AD-561] Test-TargetResource
StatusDescription Completed.
PercentComplete 100
SecondsRemaining 0
VERBOSE: Job 3e292339-20a5-43fb-afe6-61648bec4422 : Displaying messages from the engine:
WMI channel 1
ResourceID: [WindowsFeature]IIS
Message : [AD-561]: LCM: [ End Test ] [[WindowsFeature]IIS] True in 1.5980 seconds.
VERBOSE: Job 3e292339-20a5-43fb-afe6-61648bec4422 : Displaying messages from the engine:
WMI channel 1
ResourceID: [WindowsFeature]IIS
Message : [AD-561]: LCM: [ End Resource ] [[WindowsFeature]IIS]
VERBOSE: Job 3e292339-20a5-43fb-afe6-61648bec4422 : Activity LCM
CurrentOperation [AD-561] Test
StatusDescription Testing Configuration
PercentComplete 66
SecondsRemaining 2
VERBOSE: Job 3e292339-20a5-43fb-afe6-61648bec4422 : Displaying messages from the engine:
WMI channel 1
ResourceID: [WindowsFeature]AspNet45
Message : [AD-561]: LCM: [ Start Resource ] [[WindowsFeature]AspNet45]
VERBOSE: Job 3e292339-20a5-43fb-afe6-61648bec4422 : Getting a registration instance for MSFT_WindowsFeature
VERBOSE: Job 3e292339-20a5-43fb-afe6-61648bec4422 : Moving the resource [WindowsFeature]AspNet45 of class MSFT_WindowsFeature to desired state.
VERBOSE: Job 3e292339-20a5-43fb-afe6-61648bec4422 : Getting Metaconfiguration details.
VERBOSE: Job 3e292339-20a5-43fb-afe6-61648bec4422 : Executing operations for PS DSC resource MSFT_WindowsFeature with resource name [WindowsFeature]AspNet45
VERBOSE: Job 3e292339-20a5-43fb-afe6-61648bec4422 : Method Exec_PSProvider started with parameters
Class name: MSFT_WindowsFeature
Resource ID: [WindowsFeature]AspNet45
Flags: 150994944
Execution Mode: 12582912
DSC resource Namespace: null
VERBOSE: Job 3e292339-20a5-43fb-afe6-61648bec4422 : Displaying messages from the engine:
WMI channel 1
ResourceID: [WindowsFeature]AspNet45
Message : [AD-561]: LCM: [ Start Test ] [[WindowsFeature]AspNet45]
VERBOSE: Job 3e292339-20a5-43fb-afe6-61648bec4422 : Method CoreClr_Not_support started.
VERBOSE: Job 3e292339-20a5-43fb-afe6-61648bec4422 : Displaying verbose messages from Powershell DSC resource:
ResourceID : [WindowsFeature]AspNet45
Message : [AD-561]: [[WindowsFeature]AspNet45] Importing the module MSFT_WindowsFeature in force mode.
VERBOSE: Job 3e292339-20a5-43fb-afe6-61648bec4422 : Displaying verbose messages from Powershell DSC resource:
ResourceID : [WindowsFeature]AspNet45
Message : [AD-561]: [[WindowsFeature]AspNet45] Begin executing Test functionality on the Web-Asp-Net45 feature.
VERBOSE: Job 3e292339-20a5-43fb-afe6-61648bec4422 : Displaying verbose messages from Powershell DSC resource:
ResourceID : [WindowsFeature]AspNet45
Message : [AD-561]: [[WindowsFeature]AspNet45] Perform operation 'Enumerate CimInstances' with following parameters, ''className' = Win32_OperatingSystem,'namespaceName' = root\cimv2'.
VERBOSE: Job 3e292339-20a5-43fb-afe6-61648bec4422 : Displaying verbose messages from Powershell DSC resource:
ResourceID : [WindowsFeature]AspNet45
Message : [AD-561]: [[WindowsFeature]AspNet45] Operation 'Enumerate CimInstances' complete.
VERBOSE: Job 3e292339-20a5-43fb-afe6-61648bec4422 : Displaying verbose messages from Powershell DSC resource:
ResourceID : [WindowsFeature]AspNet45
Message : [AD-561]: [[WindowsFeature]AspNet45] Loading module from path 'C:\windows\system32\WindowsPowerShell\v1.0\Modules\ServerManager\ServerManager.psd1'.
VERBOSE: Job 3e292339-20a5-43fb-afe6-61648bec4422 : Displaying verbose messages from Powershell DSC resource:
ResourceID : [WindowsFeature]AspNet45
Message : [AD-561]: [[WindowsFeature]AspNet45] Loading 'FormatsToProcess' from path 'C:\windows\system32\WindowsPowerShell\v1.0\Modules\ServerManager\Feature.format.ps1xml'.
VERBOSE: Job 3e292339-20a5-43fb-afe6-61648bec4422 : Activity Preparing modules for first use.
CurrentOperation [AD-561] Test-TargetResource
StatusDescription
PercentComplete 0
SecondsRemaining 0
VERBOSE: Job 3e292339-20a5-43fb-afe6-61648bec4422 : Activity Creating implicit remoting module ...
CurrentOperation [AD-561] Test-TargetResource
StatusDescription Getting command information from remote session ... 7 commands received
PercentComplete 100
SecondsRemaining 0
VERBOSE: Job 3e292339-20a5-43fb-afe6-61648bec4422 : Activity Creating implicit remoting module ...
CurrentOperation [AD-561] Test-TargetResource
StatusDescription Getting formatting and output information from remote session ... 119 objects received
PercentComplete 100
SecondsRemaining 0
VERBOSE: Job 3e292339-20a5-43fb-afe6-61648bec4422 : Activity Creating implicit remoting module ...
CurrentOperation [AD-561] Test-TargetResource
StatusDescription Completed.
PercentComplete 100
SecondsRemaining 0
VERBOSE: Job 3e292339-20a5-43fb-afe6-61648bec4422 : Displaying messages from the engine:
WMI channel 1
ResourceID: [WindowsFeature]AspNet45
Message : [AD-561]: LCM: [ End Test ] [[WindowsFeature]AspNet45] True in 1.0410 seconds.
VERBOSE: Job 3e292339-20a5-43fb-afe6-61648bec4422 : Displaying messages from the engine:
WMI channel 1
ResourceID: [WindowsFeature]AspNet45
Message : [AD-561]: LCM: [ End Resource ] [[WindowsFeature]AspNet45]
VERBOSE: Job 3e292339-20a5-43fb-afe6-61648bec4422 : Activity LCM
CurrentOperation [AD-561] Test
StatusDescription Testing Configuration
PercentComplete 100
SecondsRemaining 1
VERBOSE: Job 3e292339-20a5-43fb-afe6-61648bec4422 : Displaying messages from the engine:
WMI channel 1
ResourceID: [WebSite]DefaultSite
Message : [AD-561]: LCM: [ Start Resource ] [[WebSite]DefaultSite]
VERBOSE: Job 3e292339-20a5-43fb-afe6-61648bec4422 : Getting a registration instance for DSC_WebSite
VERBOSE: Job 3e292339-20a5-43fb-afe6-61648bec4422 : Moving the resource [WebSite]DefaultSite of class DSC_WebSite to desired state.
VERBOSE: Job 3e292339-20a5-43fb-afe6-61648bec4422 : Getting Metaconfiguration details.
VERBOSE: Job 3e292339-20a5-43fb-afe6-61648bec4422 : Executing operations for PS DSC resource DSC_WebSite with resource name [WebSite]DefaultSite
VERBOSE: Job 3e292339-20a5-43fb-afe6-61648bec4422 : Method Exec_PSProvider started with parameters
Class name: DSC_WebSite
Resource ID: [WebSite]DefaultSite
Flags: 150994944
Execution Mode: 12582912
DSC resource Namespace: null
VERBOSE: Job 3e292339-20a5-43fb-afe6-61648bec4422 : Displaying messages from the engine:
WMI channel 1
ResourceID: [WebSite]DefaultSite
Message : [AD-561]: LCM: [ Start Test ] [[WebSite]DefaultSite]
VERBOSE: Job 3e292339-20a5-43fb-afe6-61648bec4422 : Method CoreClr_Not_support started.
VERBOSE: Job 3e292339-20a5-43fb-afe6-61648bec4422 : Displaying verbose messages from Powershell DSC resource:
ResourceID : [WebSite]DefaultSite
Message : [AD-561]: [[WebSite]DefaultSite] Importing the module DSC_WebSite in force mode.
VERBOSE: Job 3e292339-20a5-43fb-afe6-61648bec4422 : Displaying debug messages from Powershell DSC resource:
ResourceID : [WebSite]DefaultSite
Message : [AD-561]: [[WebSite]DefaultSite] Looking for resolved file with base name: 'DscResource.Common'.
VERBOSE: Job 3e292339-20a5-43fb-afe6-61648bec4422 : Displaying debug messages from Powershell DSC resource:
ResourceID : [WebSite]DefaultSite
Message : [AD-561]: [[WebSite]DefaultSite] Looking for Localized data file using the current culture 'en-US'.
VERBOSE: Job 3e292339-20a5-43fb-afe6-61648bec4422 : Displaying debug messages from Powershell DSC resource:
ResourceID : [WebSite]DefaultSite
Message : [AD-561]: [[WebSite]DefaultSite] File 'C:\Users\logility\Documents\PowerShell\Modules\GuestConfiguration\4.4.0\gcworker\Configurations\WebSite_UsingCertificateSubject\Modules\WebAdministrationDsc\Modules\DscResource.Common\0.14.0\en-US\DscResource.Common.psd1' not found.
VERBOSE: Job 3e292339-20a5-43fb-afe6-61648bec4422 : Displaying debug messages from Powershell DSC resource:
ResourceID : [WebSite]DefaultSite
Message : [AD-561]: [[WebSite]DefaultSite] Found 'C:\Users\logility\Documents\PowerShell\Modules\GuestConfiguration\4.4.0\gcworker\Configurations\WebSite_UsingCertificateSubject\Modules\WebAdministrationDsc\Modules\DscResource.Common\0.14.0\en-US\DscResource.Common.strings.psd1'.
VERBOSE: Job 3e292339-20a5-43fb-afe6-61648bec4422 : Displaying debug messages from Powershell DSC resource:
ResourceID : [WebSite]DefaultSite
Message : [AD-561]: [[WebSite]DefaultSite] Looking for resolved file with base name: 'WebAdministrationDsc.Common'.
VERBOSE: Job 3e292339-20a5-43fb-afe6-61648bec4422 : Displaying debug messages from Powershell DSC resource:
ResourceID : [WebSite]DefaultSite
Message : [AD-561]: [[WebSite]DefaultSite] Looking for Localized data file using the current culture 'en-US'.
VERBOSE: Job 3e292339-20a5-43fb-afe6-61648bec4422 : Displaying debug messages from Powershell DSC resource:
ResourceID : [WebSite]DefaultSite
Message : [AD-561]: [[WebSite]DefaultSite] File 'C:\Users\logility\Documents\PowerShell\Modules\GuestConfiguration\4.4.0\gcworker\Configurations\WebSite_UsingCertificateSubject\Modules\WebAdministrationDsc\Modules\WebAdministrationDsc.Common\en-US\WebAdministrationDsc.Common.psd1' not found.
VERBOSE: Job 3e292339-20a5-43fb-afe6-61648bec4422 : Displaying debug messages from Powershell DSC resource:
ResourceID : [WebSite]DefaultSite
Message : [AD-561]: [[WebSite]DefaultSite] Found 'C:\Users\logility\Documents\PowerShell\Modules\GuestConfiguration\4.4.0\gcworker\Configurations\WebSite_UsingCertificateSubject\Modules\WebAdministrationDsc\Modules\WebAdministrationDsc.Common\en-US\WebAdministrationDsc.Common.strings.psd1'.
VERBOSE: Job 3e292339-20a5-43fb-afe6-61648bec4422 : Displaying debug messages from Powershell DSC resource:
ResourceID : [WebSite]DefaultSite
Message : [AD-561]: [[WebSite]DefaultSite] Looking for resolved file with base name: 'DSC_WebSite'.
VERBOSE: Job 3e292339-20a5-43fb-afe6-61648bec4422 : Displaying debug messages from Powershell DSC resource:
ResourceID : [WebSite]DefaultSite
Message : [AD-561]: [[WebSite]DefaultSite] Looking for Localized data file using the current culture 'en-US'.
VERBOSE: Job 3e292339-20a5-43fb-afe6-61648bec4422 : Displaying debug messages from Powershell DSC resource:
ResourceID : [WebSite]DefaultSite
Message : [AD-561]: [[WebSite]DefaultSite] File 'C:\Users\logility\Documents\PowerShell\Modules\GuestConfiguration\4.4.0\gcworker\Configurations\WebSite_UsingCertificateSubject\Modules\WebAdministrationDsc\DscResources\DSC_WebSite\en-US\DSC_WebSite.psd1' not found.
VERBOSE: Job 3e292339-20a5-43fb-afe6-61648bec4422 : Displaying debug messages from Powershell DSC resource:
ResourceID : [WebSite]DefaultSite
Message : [AD-561]: [[WebSite]DefaultSite] Found 'C:\Users\logility\Documents\PowerShell\Modules\GuestConfiguration\4.4.0\gcworker\Configurations\WebSite_UsingCertificateSubject\Modules\WebAdministrationDsc\DscResources\DSC_WebSite\en-US\DSC_WebSite.strings.psd1'.
VERBOSE: Job 3e292339-20a5-43fb-afe6-61648bec4422 : Displaying verbose messages from Powershell DSC resource:
ResourceID : [WebSite]DefaultSite
Message : [AD-561]: [[WebSite]DefaultSite] Loading module from path 'C:\Windows\Microsoft.NET\assembly\GAC_MSIL\Microsoft.IIS.PowerShell.Provider\v4.0_10.0.0.0__31bf3856ad364e35\Microsoft.IIS.PowerShell.Provider.dll'.
VERBOSE: Job 3e292339-20a5-43fb-afe6-61648bec4422 : Displaying verbose messages from Powershell DSC resource:
ResourceID : [WebSite]DefaultSite
Message : [AD-561]: [[WebSite]DefaultSite] Removing the imported "Test-TargetResource" function.
VERBOSE: Job 3e292339-20a5-43fb-afe6-61648bec4422 : Displaying verbose messages from Powershell DSC resource:
ResourceID : [WebSite]DefaultSite
Message : [AD-561]: [[WebSite]DefaultSite] Removing the imported "Set-TargetResource" function.
VERBOSE: Job 3e292339-20a5-43fb-afe6-61648bec4422 : Displaying verbose messages from Powershell DSC resource:
ResourceID : [WebSite]DefaultSite
Message : [AD-561]: [[WebSite]DefaultSite] Removing the imported "Get-TargetResource" function.
VERBOSE: Job 3e292339-20a5-43fb-afe6-61648bec4422 : Message System.Exception: Please ensure that the PowerShell module 'WebAdministration' is installed. (DRC0009)
HResult -2146233087
StackTrack at System.Management.Automation.Runspaces.PipelineBase.Invoke(IEnumerable input)
at System.Management.Automation.Runspaces.Pipeline.Invoke()
at System.Management.Automation.PowerShell.Worker.ConstructPipelineAndDoWork(Runspace rs, Boolean performSyncInvoke)
at System.Management.Automation.PowerShell.Worker.CreateRunspaceIfNeededAndDoWork(Runspace rsToUse, Boolean isSync)
at System.Management.Automation.PowerShell.CoreInvokeHelper[TInput,TOutput](PSDataCollection`1 input, PSDataCollection`1 output, PSInvocationSettings settings)
at System.Management.Automation.PowerShell.CoreInvoke[TInput,TOutput](PSDataCollection`1 input, PSDataCollection`1 output, PSInvocationSettings settings)
at System.Management.Automation.PowerShell.Invoke(IEnumerable input, PSInvocationSettings settings)
at Microsoft.Powe
VERBOSE: Job 3e292339-20a5-43fb-afe6-61648bec4422 : Displaying messages from the engine:
WMI channel 1
ResourceID: [WebSite]DefaultSite
Message : [AD-561]: LCM: [ End Test ] [[WebSite]DefaultSite] False in 0.2390 seconds.
VERBOSE: Job 3e292339-20a5-43fb-afe6-61648bec4422 : Displaying messages from the engine:
WMI channel 1
ResourceID:
Message : [AD-561]: LCM: [ *FAILED*Test ] Completed processing test operation. The operation failed.
VERBOSE: Job 3e292339-20a5-43fb-afe6-61648bec4422 : Method CallTestConfiguration ended successfully
Write-Error: C:\Users\logility\Documents\PowerShell\Modules\GuestConfiguration\4.4.0\GuestConfiguration.psm1:593
Line |
593 | Write-GuestConfigurationLogsToConsole
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| Job 3e292339-20a5-43fb-afe6-61648bec4422 : MIResult: 1 Error Message: PowerShell DSC resource DSC_WebSite failed to execute
| Test-TargetResource functionality with error message: System.Exception: Please ensure that the PowerShell module
| 'WebAdministration' is installed. (DRC0009) Message ID: ProviderOperationExecutionFailure Error Category: 7 Error Code: 1
| Error Type: MI
VERBOSE: Job 3e292339-20a5-43fb-afe6-61648bec4422 : Getting Metaconfiguration details.
VERBOSE: Job 3e292339-20a5-43fb-afe6-61648bec4422 : Deleting file from C:\Users\logility\Documents\PowerShell\Modules\GuestConfiguration\4.4.0\gcworker\Configurations\WebSite_UsingCertificateSubject\\DSCEngineCache.mof
VERBOSE: Job 3e292339-20a5-43fb-afe6-61648bec4422 : Method CU_TestConfiguration ended successfully
VERBOSE: Job : LCM has released the resource state cache.
additionalProperties : {}
assignmentName : WebSite_UsingCertificateSubject
complianceStatus : False
endTime : 5/8/2023 4:58:44 PM
jobId : 3e292339-20a5-43fb-afe6-61648bec4422
operationtype : Consistency
resources : {@{complianceStatus=False; properties=; reasons=System.Object[]}}
startTime : 5/8/2023 4:58:44 PM
DSC configuration
<#.DESCRIPTION When specifying a HTTPS web binding you can also specify a certifcate subject, for cases where the certificate is being generated by the same configuration using something like xCertReq.#>ConfigurationWebSite_UsingCertificateSubject
{
param
(
# Target nodes to apply the configuration
[string[]]
$NodeName='localhost'
)
# Import the module that defines custom resourcesImport-DscResource-Module PSDscResources
Import-DscResource-Module WebAdministrationDsc
Node $NodeName
{
# Install the IIS role
WindowsFeature IIS
{
Ensure ='Present'
Name ='Web-Server'
}
# Install the ASP .NET 4.5 role
WindowsFeature AspNet45
{
Ensure ='Present'
Name ='Web-Asp-Net45'
}
# Stop the default website
WebSite DefaultSite
{
Ensure ='Present'
Name ='Default Web Site'
State ='Stopped'
PhysicalPath ='C:\inetpub\wwwroot'
DependsOn ='[WindowsFeature]IIS'
}
}
}
WebSite_UsingCertificateSubject -OutputPath:'./WebSite_UsingCertificateSubject'
Suggested solution
none
Operating system the target node is running
OsName : Microsoft Windows Server 2022 Datacenter
OsOperatingSystemSKU : DatacenterServerEdition
OsArchitecture : 64-bit
WindowsVersion : 2009
WindowsBuildLabEx : 20348.1.amd64fre.fe_release.210507-1500
OsLanguage : en-US
OsMuiLanguages : {en-US}
PowerShell version and build the target node is running
Name Version Path
---- ------- ----
WebAdministrationDsc 4.1.0 C:\Program Files\WindowsPowerShell\Modules\WebAdministrationDsc\4.1.0\WebAdministrationDsc.psd1
The text was updated successfully, but these errors were encountered:
Problem description
PowerShell module 'WebAdministration' not available to Test-TargetResource functionality
Verbose logs
DSC configuration
Suggested solution
none
Operating system the target node is running
PowerShell version and build the target node is running
WebAdministrationDsc version
The text was updated successfully, but these errors were encountered: