MOF/CHWK01.mof
/*
@TargetNode='CHWK01' @GeneratedBy=cody @GenerationDate=10/29/2018 22:36:42 @GenerationHost=THINKY */ instance of MSFT_xWinEventLog as $MSFT_xWinEventLog1ref { ResourceID = "[xWinEventLog]AlterDSCOperationalLog::[ooDscLog]EnableDscLog"; MaximumSizeInBytes = 50331648; LogName = "Microsoft-Windows-DSC/Operational"; SourceInfo = "C:\\GitProject\\OftenOn\\OftenOn\\DSCResources\\ooDscLog\\ooDscLog.schema.psm1::7::5::xWinEventLog"; ModuleName = "xWinEventLog"; ModuleVersion = "1.2.0.0"; ConfigurationName = "OftenOn"; }; instance of MSFT_xWinEventLog as $MSFT_xWinEventLog2ref { ResourceID = "[xWinEventLog]EnableDSCAnalyticLog::[ooDscLog]EnableDscLog"; MaximumSizeInBytes = 50331648; LogName = "Microsoft-Windows-DSC/Analytic"; SourceInfo = "C:\\GitProject\\OftenOn\\OftenOn\\DSCResources\\ooDscLog\\ooDscLog.schema.psm1::12::5::xWinEventLog"; ModuleName = "xWinEventLog"; ModuleVersion = "1.2.0.0"; IsEnabled = True; ConfigurationName = "OftenOn"; }; instance of MSFT_xWinEventLog as $MSFT_xWinEventLog3ref { ResourceID = "[xWinEventLog]EnableDSCDebugLog::[ooDscLog]EnableDscLog"; MaximumSizeInBytes = 50331648; LogName = "Microsoft-Windows-DSC/Debug"; SourceInfo = "C:\\GitProject\\OftenOn\\OftenOn\\DSCResources\\ooDscLog\\ooDscLog.schema.psm1::18::5::xWinEventLog"; ModuleName = "xWinEventLog"; ModuleVersion = "1.2.0.0"; IsEnabled = True; ConfigurationName = "OftenOn"; }; instance of MSFT_TimeZone as $MSFT_TimeZone1ref { ResourceID = "[TimeZone]SetTimeZone"; SourceInfo = "C:\\GitProject\\OftenOn\\OftenOn\\Configuration\\OftenOn.ps1::49::9::TimeZone"; TimeZone = "W. Australia Standard Time"; IsSingleInstance = "Yes"; ModuleName = "ComputerManagementDsc"; ModuleVersion = "6.0.0.0"; DependsOn = { "[xWinEventLog]AlterDSCOperationalLog::[ooDscLog]EnableDscLog", "[xWinEventLog]EnableDSCAnalyticLog::[ooDscLog]EnableDscLog", "[xWinEventLog]EnableDSCDebugLog::[ooDscLog]EnableDscLog"}; ConfigurationName = "OftenOn"; }; instance of MSFT_RegistryResource as $MSFT_RegistryResource1ref { ResourceID = "[Registry]DisableNegativeCacheTtl::[ooRegistry]SetRegistry"; ValueName = "MaxNegativeCacheTtl"; Key = "HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\Dnscache\\Parameters"; Ensure = "Present"; SourceInfo = "C:\\GitProject\\OftenOn\\OftenOn\\DSCResources\\ooRegistry\\ooRegistry.schema.psm1::3::5::Registry"; ValueType = "Dword"; ModuleName = "PSDesiredStateConfiguration"; ValueData = { "0" }; ModuleVersion = "0.0"; DependsOn = { "[TimeZone]SetTimeZone"}; ConfigurationName = "OftenOn"; }; instance of MSFT_RegistryResource as $MSFT_RegistryResource2ref { ResourceID = "[Registry]DisableMachineAccountPasswordChange::[ooRegistry]SetRegistry"; ValueName = "DisablePasswordChange"; Key = "HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\Netlogon\\Parameters"; Ensure = "Present"; SourceInfo = "C:\\GitProject\\OftenOn\\OftenOn\\DSCResources\\ooRegistry\\ooRegistry.schema.psm1::12::5::Registry"; ValueType = "Dword"; ModuleName = "PSDesiredStateConfiguration"; ValueData = { "1" }; ModuleVersion = "0.0"; DependsOn = { "[TimeZone]SetTimeZone"}; ConfigurationName = "OftenOn"; }; instance of xRemoteDesktopAdmin as $xRemoteDesktopAdmin1ref { ResourceID = "[xRemoteDesktopAdmin]EnableRemoteDesktopService::[ooRemoteDesktop]EnableRemoteDesktop"; UserAuthentication = "NonSecure"; Ensure = "Present"; SourceInfo = "C:\\GitProject\\OftenOn\\OftenOn\\DSCResources\\ooRemoteDesktop\\ooRemoteDesktop.schema.psm1::6::5::xRemoteDesktopAdmin"; ModuleName = "xRemoteDesktopAdmin"; ModuleVersion = "1.1.0.0"; DependsOn = { "[TimeZone]SetTimeZone"}; ConfigurationName = "OftenOn"; }; instance of MSFT_Firewall as $MSFT_Firewall1ref { ResourceID = "[Firewall]EnableFPSICMP4ERQIn::[ooRemoteDesktop]EnableRemoteDesktop"; Enabled = "True"; Ensure = "Present"; SourceInfo = "C:\\GitProject\\OftenOn\\OftenOn\\DSCResources\\ooRemoteDesktop\\ooRemoteDesktop.schema.psm1::14::9::Firewall"; Name = "FPS-ICMP4-ERQ-In"; ModuleName = "NetworkingDsc"; ModuleVersion = "6.1.0.0"; DependsOn = { "[TimeZone]SetTimeZone"}; ConfigurationName = "OftenOn"; }; instance of MSFT_Firewall as $MSFT_Firewall2ref { ResourceID = "[Firewall]EnableFPSICMP6ERQIn::[ooRemoteDesktop]EnableRemoteDesktop"; Enabled = "True"; Ensure = "Present"; SourceInfo = "C:\\GitProject\\OftenOn\\OftenOn\\DSCResources\\ooRemoteDesktop\\ooRemoteDesktop.schema.psm1::14::9::Firewall"; Name = "FPS-ICMP6-ERQ-In"; ModuleName = "NetworkingDsc"; ModuleVersion = "6.1.0.0"; DependsOn = { "[TimeZone]SetTimeZone"}; ConfigurationName = "OftenOn"; }; instance of MSFT_Firewall as $MSFT_Firewall3ref { ResourceID = "[Firewall]EnableRemoteDesktopUserModeInTCP::[ooRemoteDesktop]EnableRemoteDesktop"; Enabled = "True"; Ensure = "Present"; SourceInfo = "C:\\GitProject\\OftenOn\\OftenOn\\DSCResources\\ooRemoteDesktop\\ooRemoteDesktop.schema.psm1::14::9::Firewall"; Name = "RemoteDesktop-UserMode-In-TCP"; ModuleName = "NetworkingDsc"; ModuleVersion = "6.1.0.0"; DependsOn = { "[TimeZone]SetTimeZone"}; ConfigurationName = "OftenOn"; }; instance of MSFT_Firewall as $MSFT_Firewall4ref { ResourceID = "[Firewall]EnableRemoteDesktopUserModeInUDP::[ooRemoteDesktop]EnableRemoteDesktop"; Enabled = "True"; Ensure = "Present"; SourceInfo = "C:\\GitProject\\OftenOn\\OftenOn\\DSCResources\\ooRemoteDesktop\\ooRemoteDesktop.schema.psm1::14::9::Firewall"; Name = "RemoteDesktop-UserMode-In-UDP"; ModuleName = "NetworkingDsc"; ModuleVersion = "6.1.0.0"; DependsOn = { "[TimeZone]SetTimeZone"}; ConfigurationName = "OftenOn"; }; instance of MSFT_ScriptResource as $MSFT_ScriptResource1ref { ResourceID = "[Script]EnableFileAndPrinterSharing::[ooRemoteDesktop]EnableRemoteDesktop"; GetScript = "\n if (Get-NetFirewallRule -DisplayGroup 'File and Printer Sharing' | Where-Object { $_.Enabled -eq 'False' }) {\n @{ Result = \"false\"; }\n } else {\n @{ Result = \"true\"; }\n }\n "; TestScript = "\n if (Get-NetFirewallRule -DisplayGroup 'File and Printer Sharing' | Where-Object { $_.Enabled -eq 'False' }) {\n $false\n } else {\n $true\n }\n "; SourceInfo = "C:\\GitProject\\OftenOn\\OftenOn\\DSCResources\\ooRemoteDesktop\\ooRemoteDesktop.schema.psm1::22::5::Script"; SetScript = "\n Get-NetFirewallRule -DisplayGroup 'File and Printer Sharing' | Where-Object { $_.Enabled -eq 'False' } | Set-NetFirewallRule -Enabled True\n "; ModuleName = "PSDesiredStateConfiguration"; ModuleVersion = "0.0"; DependsOn = { "[TimeZone]SetTimeZone"}; ConfigurationName = "OftenOn"; }; instance of MSFT_FileDirectoryConfiguration as $MSFT_FileDirectoryConfiguration1ref { ResourceID = "[File]CreateTempDirectory::[ooTemp]CreateTempDirectory"; Type = "Directory"; Ensure = "Present"; DestinationPath = "C:\\Temp"; ModuleName = "PSDesiredStateConfiguration"; SourceInfo = "C:\\GitProject\\OftenOn\\OftenOn\\DSCResources\\ooTemp\\ooTemp.schema.psm1::5::5::File"; ModuleVersion = "0.0"; DependsOn = { "[TimeZone]SetTimeZone"}; ConfigurationName = "OftenOn"; }; instance of MSFT_xFileSystemAccessRule as $MSFT_xFileSystemAccessRule1ref { ResourceID = "[xFileSystemAccessRule]GrantAccessToTempDirectory::[ooTemp]CreateTempDirectory"; Path = "C:\\Temp"; Rights = { "FullControl" }; SourceInfo = "C:\\GitProject\\OftenOn\\OftenOn\\DSCResources\\ooTemp\\ooTemp.schema.psm1::11::5::xFileSystemAccessRule"; Identity = "EVERYONE"; ModuleName = "xSystemSecurity"; ModuleVersion = "1.4.0.0"; DependsOn = { "[File]CreateTempDirectory::[ooTemp]CreateTempDirectory", "[TimeZone]SetTimeZone"}; ConfigurationName = "OftenOn"; }; instance of MSFT_NetAdapterName as $MSFT_NetAdapterName1ref { ResourceID = "[NetAdapterName]RenameCHICAGO::[ooNetwork]RenameNetwork"; MacAddress = "00-03-3b-43-8c-09"; ModuleVersion = "6.1.0.0"; SourceInfo = "C:\\GitProject\\OftenOn\\OftenOn\\DSCResources\\ooNetwork\\ooNetwork.schema.psm1::12::13::NetAdapterName"; ModuleName = "NetworkingDsc"; NewName = "CHICAGO"; DependsOn = { "[TimeZone]SetTimeZone"}; ConfigurationName = "OftenOn"; }; instance of MSFT_IPAddress as $MSFT_IPAddress1ref { ResourceID = "[IPAddress]SetIPAddressCHICAGO::[ooNetwork]RenameNetwork"; InterfaceAlias = "CHICAGO"; AddressFamily = "IPv4"; SourceInfo = "C:\\GitProject\\OftenOn\\OftenOn\\DSCResources\\ooNetwork\\ooNetwork.schema.psm1::18::17::IPAddress"; ModuleName = "NetworkingDsc"; IPAddress = { "10.0.0.3/24" }; ModuleVersion = "6.1.0.0"; DependsOn = { "[NetAdapterName]RenameCHICAGO::[ooNetwork]RenameNetwork", "[TimeZone]SetTimeZone"}; ConfigurationName = "OftenOn"; }; instance of MSFT_DefaultGatewayAddress as $MSFT_DefaultGatewayAddress1ref { ResourceID = "[DefaultGatewayAddress]SetDefaultGatewayAddressCHICAGO::[ooNetwork]RenameNetwork"; AddressFamily = "IPv4"; SourceInfo = "C:\\GitProject\\OftenOn\\OftenOn\\DSCResources\\ooNetwork\\ooNetwork.schema.psm1::27::17::DefaultGatewayAddress"; Address = "10.0.0.1"; ModuleName = "NetworkingDsc"; InterfaceAlias = "CHICAGO"; ModuleVersion = "6.1.0.0"; DependsOn = { "[NetAdapterName]RenameCHICAGO::[ooNetwork]RenameNetwork", "[TimeZone]SetTimeZone"}; ConfigurationName = "OftenOn"; }; instance of MSFT_DnsServerAddress as $MSFT_DnsServerAddress1ref { ResourceID = "[DnsServerAddress]SetDnsServerAddressCHICAGO::[ooNetwork]RenameNetwork"; AddressFamily = "IPv4"; SourceInfo = "C:\\GitProject\\OftenOn\\OftenOn\\DSCResources\\ooNetwork\\ooNetwork.schema.psm1::41::17::DnsServerAddress"; Address = { "10.0.0.1" }; ModuleName = "NetworkingDsc"; InterfaceAlias = "CHICAGO"; ModuleVersion = "6.1.0.0"; DependsOn = { "[NetAdapterName]RenameCHICAGO::[ooNetwork]RenameNetwork", "[TimeZone]SetTimeZone"}; ConfigurationName = "OftenOn"; }; instance of MSFT_DnsConnectionSuffix as $MSFT_DnsConnectionSuffix1ref { ResourceID = "[DnsConnectionSuffix]SetDnsConnectionSuffixCHICAGO::[ooNetwork]RenameNetwork"; ConnectionSpecificSuffix = "lab.com"; SourceInfo = "C:\\GitProject\\OftenOn\\OftenOn\\DSCResources\\ooNetwork\\ooNetwork.schema.psm1::55::13::DnsConnectionSuffix"; ModuleName = "NetworkingDsc"; InterfaceAlias = "CHICAGO"; ModuleVersion = "6.1.0.0"; DependsOn = { "[NetAdapterName]RenameCHICAGO::[ooNetwork]RenameNetwork", "[TimeZone]SetTimeZone"}; ConfigurationName = "OftenOn"; }; instance of MSFT_RoleResource as $MSFT_RoleResource1ref { ResourceID = "[WindowsFeature]Resource0::[WindowsFeatureSet]All"; Ensure = "Present"; SourceInfo = "::2::1::WindowsFeature"; Name = "RSAT-AD-Tools"; ModuleName = "PSDesiredStateConfiguration"; ModuleVersion = "0.0"; DependsOn = { "[TimeZone]SetTimeZone"}; ConfigurationName = "OftenOn"; }; instance of MSFT_RoleResource as $MSFT_RoleResource2ref { ResourceID = "[WindowsFeature]Resource1::[WindowsFeatureSet]All"; Ensure = "Present"; SourceInfo = "::8::1::WindowsFeature"; Name = "RSAT-AD-PowerShell"; ModuleName = "PSDesiredStateConfiguration"; ModuleVersion = "0.0"; DependsOn = { "[TimeZone]SetTimeZone"}; ConfigurationName = "OftenOn"; }; instance of MSFT_RoleResource as $MSFT_RoleResource3ref { ResourceID = "[WindowsFeature]Resource2::[WindowsFeatureSet]All"; Ensure = "Present"; SourceInfo = "::14::1::WindowsFeature"; Name = "RSAT-Clustering"; ModuleName = "PSDesiredStateConfiguration"; ModuleVersion = "0.0"; DependsOn = { "[TimeZone]SetTimeZone"}; ConfigurationName = "OftenOn"; }; instance of MSFT_RoleResource as $MSFT_RoleResource4ref { ResourceID = "[WindowsFeature]Resource3::[WindowsFeatureSet]All"; Ensure = "Present"; SourceInfo = "::20::1::WindowsFeature"; Name = "RSAT-Clustering-CmdInterface"; ModuleName = "PSDesiredStateConfiguration"; ModuleVersion = "0.0"; DependsOn = { "[TimeZone]SetTimeZone"}; ConfigurationName = "OftenOn"; }; instance of MSFT_RoleResource as $MSFT_RoleResource5ref { ResourceID = "[WindowsFeature]Resource4::[WindowsFeatureSet]All"; Ensure = "Present"; SourceInfo = "::26::1::WindowsFeature"; Name = "RSAT-DNS-Server"; ModuleName = "PSDesiredStateConfiguration"; ModuleVersion = "0.0"; DependsOn = { "[TimeZone]SetTimeZone"}; ConfigurationName = "OftenOn"; }; instance of MSFT_RoleResource as $MSFT_RoleResource6ref { ResourceID = "[WindowsFeature]Resource5::[WindowsFeatureSet]All"; Ensure = "Present"; SourceInfo = "::32::1::WindowsFeature"; Name = "RSAT-RemoteAccess"; ModuleName = "PSDesiredStateConfiguration"; ModuleVersion = "0.0"; DependsOn = { "[TimeZone]SetTimeZone"}; ConfigurationName = "OftenOn"; }; instance of MSFT_Credential as $MSFT_Credential1ref { Password = "-----BEGIN CMS-----\nMIICKwYJKoZIhvcNAQcDoIICHDCCAhgCAQAxggHTMIIBzwIBADCBtjCBqDEXMBUGA1UEChMOVmly\ndHVhbCBFbmdpbmUxETAPBgNVBAsTCFRlc3QgTGFiMRwwGgYJKoZIhvcNAQkBFg1sYWJAbGFiLmxv\nY2FsMQ8wDQYDVQQHEwZPeGZvcmQxDTALBgNVBAgTBE9YT04xCzAJBgNVBAYTAkdCMS8wLQYDVQQD\nEyZWaXJ0dWFsIEVuZ2luZSBUZXN0IExhYiBSb290IEF1dGhvcml0eQIJAMRIv0r6jbtXMA0GCSqG\nSIb3DQEBBzAABIIBAC7nn5hFciSBa3p4Lv3VgmPEkKNJLmmt+l7ElnfWQBipqDNoKVxZ5GJYT4kR\nv54EMBITvzyRxREpttZ30ZJ7pI6DnraBXtxvCTgBJ087NczdIgqwn6KBgRkQ+5rCQy0NRLVi5DZy\nVH1os+KBN0zT7kR5uRe1cJFfwNN6jvjgdE88L0d7Kq+g83BGJEcx2N+2nPPMe97bmzarzlGYuuFv\nOm5kyIgcNNrHK6P6CCrhM94w5J5gdBnyM05f2eCbqhl1QaSMd9VI6/OFIgKStHjGOLc7XXJFRZgq\nHDOlVJcH7v7Nj8llLgoUHHyZHErjWqtl+2+kz0jrSbeXFqogjqwRbgAwPAYJKoZIhvcNAQcBMB0G\nCWCGSAFlAwQBKgQQcajfxbpcrj8/pz8b6n/iH4AQulYMli4lKMd1Bo+F6RNoQw==\n-----END CMS-----"; UserName = "LAB\\Administrator"; }; instance of MSFT_xWaitForADDomain as $MSFT_xWaitForADDomain1ref { ResourceID = "[xWaitForADDomain]Create"; DomainUserCredential = $MSFT_Credential1ref; RetryCount = 120; SourceInfo = "C:\\GitProject\\OftenOn\\OftenOn\\Configuration\\OftenOn.ps1::195::17::xWaitForADDomain"; DomainName = "lab.com"; ModuleName = "xActiveDirectory"; RetryIntervalSec = 15; ModuleVersion = "2.22.0.0"; DependsOn = { "[NetAdapterName]RenameCHICAGO::[ooNetwork]RenameNetwork", "[IPAddress]SetIPAddressCHICAGO::[ooNetwork]RenameNetwork", "[DefaultGatewayAddress]SetDefaultGatewayAddressCHICAGO::[ooNetwork]RenameNetwork", "[DnsServerAddress]SetDnsServerAddressCHICAGO::[ooNetwork]RenameNetwork", "[DnsConnectionSuffix]SetDnsConnectionSuffixCHICAGO::[ooNetwork]RenameNetwork"}; ConfigurationName = "OftenOn"; }; instance of MSFT_Credential as $MSFT_Credential2ref { Password = "-----BEGIN CMS-----\nMIICKwYJKoZIhvcNAQcDoIICHDCCAhgCAQAxggHTMIIBzwIBADCBtjCBqDEXMBUGA1UEChMOVmly\ndHVhbCBFbmdpbmUxETAPBgNVBAsTCFRlc3QgTGFiMRwwGgYJKoZIhvcNAQkBFg1sYWJAbGFiLmxv\nY2FsMQ8wDQYDVQQHEwZPeGZvcmQxDTALBgNVBAgTBE9YT04xCzAJBgNVBAYTAkdCMS8wLQYDVQQD\nEyZWaXJ0dWFsIEVuZ2luZSBUZXN0IExhYiBSb290IEF1dGhvcml0eQIJAMRIv0r6jbtXMA0GCSqG\nSIb3DQEBBzAABIIBAAbwylTdPa5Xd2y5SSGJFuNZGmt2hOd+9hmsGJDeLkOR6tsUqXrMMx9w6I7p\nvldE8Up//1M2r+VljBliht0ygGdiE/azCXc+pJy2Cx3lTeDBnv0STOIQmYZXLBdvcj21w7aV4njd\n8LQs4lsWlH/j+/GfH4o3gd94VIWQVooBdVLTwfJtFAn9efJdZsND/2l1usDTvUA5iwKRMZsyutdM\nXtNuVeYszUGuZ7TMTOb4Mgdw30xrSIaxMcI9bi4aaVvIQQvzMPKsPO1XW7Qo9UQUug5RgyxkcK9z\nGXBRn/prLebMucd//ZLKUnTK4lp+o+hmoutcHx1ugfAnt/VX+r5ADdowPAYJKoZIhvcNAQcBMB0G\nCWCGSAFlAwQBKgQQBuNBetEPqiisNAcK/2nAgYAQeFMJ5es9Ra6+ix+c39NFyA==\n-----END CMS-----"; UserName = "LAB\\Administrator"; }; instance of MSFT_Computer as $MSFT_Computer1ref { ResourceID = "[Computer]Rename"; Credential = $MSFT_Credential2ref; DomainName = "lab.com"; SourceInfo = "C:\\GitProject\\OftenOn\\OftenOn\\Configuration\\OftenOn.ps1::207::17::Computer"; Name = "CHWK01"; ModuleName = "ComputerManagementDsc"; ModuleVersion = "6.0.0.0"; DependsOn = { "[xWaitForADDomain]Create"}; ConfigurationName = "OftenOn"; }; instance of MSFT_Credential as $MSFT_Credential3ref { Password = "-----BEGIN CMS-----\nMIICKwYJKoZIhvcNAQcDoIICHDCCAhgCAQAxggHTMIIBzwIBADCBtjCBqDEXMBUGA1UEChMOVmly\ndHVhbCBFbmdpbmUxETAPBgNVBAsTCFRlc3QgTGFiMRwwGgYJKoZIhvcNAQkBFg1sYWJAbGFiLmxv\nY2FsMQ8wDQYDVQQHEwZPeGZvcmQxDTALBgNVBAgTBE9YT04xCzAJBgNVBAYTAkdCMS8wLQYDVQQD\nEyZWaXJ0dWFsIEVuZ2luZSBUZXN0IExhYiBSb290IEF1dGhvcml0eQIJAMRIv0r6jbtXMA0GCSqG\nSIb3DQEBBzAABIIBAKdbH0SrUKuPZvADxUUssX/2p5QZ8qMxaegDuOvyG/buGAJb4MJhppaJaZ6p\n8gypKrjcbPBGuTTiLvqzTtt7exdBwTx7aoNjaQslboxpdZwP6jKnh/TyPbkOgHHhlqWIw+Chk3Cr\nfoXJSbSk7ZO9szv2qJ83iRTMZJ3wYkCXPXw8KzAH9tgsE+bOXgkl7ZuQ4QEimw8rH2O8PuSCfeMZ\n8gvZkDPFtAqmFhBefTl46r0+m2AHlfeDytRjduZS51WdC5plzl9j1Fy65TkdT9uhx5K1l40XnCrf\nfQNXphnEUxjXdwqyp6FersYyOuHWdIwmqpDnSUMy1g4wQ8QD0LtDPyYwPAYJKoZIhvcNAQcBMB0G\nCWCGSAFlAwQBKgQQZmeZfLrz4ZFMxORa+0gVqIAQ96sT63suYzuUYk5AIwyChA==\n-----END CMS-----"; UserName = "LAB\\Administrator"; }; instance of MSFT_WaitForAll as $MSFT_WaitForAll1ref { ResourceID = "[WaitForAll]CreateLocalAdministrator"; PsDscRunAsCredential = $MSFT_Credential3ref; NodeName = { "CHDC01" }; RetryCount = 120; SourceInfo = "C:\\GitProject\\OftenOn\\OftenOn\\Configuration\\OftenOn.ps1::216::17::WaitForAll"; ResourceName = "[xADUser]CreateLocalAdministrator"; ModuleName = "PSDesiredStateConfiguration"; RetryIntervalSec = 15; ModuleVersion = "0.0"; DependsOn = { "[Computer]Rename"}; ConfigurationName = "OftenOn"; }; instance of MSFT_GroupResource as $MSFT_GroupResource1ref { ResourceID = "[Group]AddLocalAdministratorToAdministratorsGroup"; MembersToInclude = { "LAB\\LocalAdministrator" }; Ensure = "Present"; SourceInfo = "C:\\GitProject\\OftenOn\\OftenOn\\Configuration\\OftenOn.ps1::230::17::Group"; GroupName = "Administrators"; ModuleName = "PSDesiredStateConfiguration"; ModuleVersion = "0.0"; DependsOn = { "[WaitForAll]CreateLocalAdministrator"}; ConfigurationName = "OftenOn"; }; instance of MSFT_ScriptResource as $MSFT_ScriptResource2ref { ResourceID = "[Script]NetFx472::[ooNetFramework]Install472"; GetScript = "\n Set-StrictMode -Version Latest; $ErrorActionPreference = \"Stop\";\n\n $release = Get-ItemProperty 'HKLM:\\SOFTWARE\\Microsoft\\NET Framework Setup\\NDP\\v4\\Full' 'Release' -ErrorAction SilentlyContinue | Select-Object -ExpandProperty Release\n @{ Result = \"$release\"; }\n "; TestScript = "\n Set-StrictMode -Version Latest; $ErrorActionPreference = \"Stop\";\n\n $release = Get-ItemProperty 'HKLM:\\SOFTWARE\\Microsoft\\NET Framework Setup\\NDP\\v4\\Full' 'Release' -ErrorAction SilentlyContinue | Select-Object -ExpandProperty Release\n if ($release -and $release -ge 461814) {\n $true\n } else {\n $false\n }\n "; SourceInfo = "C:\\GitProject\\OftenOn\\OftenOn\\DSCResources\\ooNetFramework\\ooNetFramework.schema.psm1::8::5::Script"; SetScript = "$ResourceLocation ='\\\\CHDC01\\Resources\\NDP472-KB4054530-x86-x64-AllOS-ENU.exe'\n\n Set-StrictMode -Version Latest; $ErrorActionPreference = \"Stop\";\n\n # If you don't use -NoNewWindow it will hang with an Open File - Security Warning\n $result = Start-Process -FilePath $ResourceLocation -ArgumentList '/quiet' -PassThru -Wait -NoNewWindow\n if ($result.ExitCode -in @(1641, 3010)) {\n $global:DSCMachineStatus = 1\n } elseif ($result.ExitCode -ne 0) {\n Write-Error \"Installation failed with exit code $($result.ExitCode)\"\n } else {\n Write-Verbose \"Installation succeeded\"\n }\n "; ModuleName = "PSDesiredStateConfiguration"; ModuleVersion = "0.0"; ConfigurationName = "OftenOn"; }; instance of MSFT_xPackageResource as $MSFT_xPackageResource1ref { ResourceID = "[xPackage]SSMS179::[ooManagementStudio]Install179"; Path = "\\\\CHDC01\\Resources\\SSMS-Setup-ENU.exe"; ProductId = "a0010c7f-d2e9-486b-a658-a1a1106847da"; SourceInfo = "C:\\GitProject\\OftenOn\\OftenOn\\DSCResources\\ooManagementStudio\\ooManagementStudio.schema.psm1::15::5::xPackage"; Name = "SSMS179"; ModuleName = "xPSDesiredStateConfiguration"; Arguments = "/install /quiet"; ModuleVersion = "8.4.0.0"; DependsOn = { "[Script]NetFx472::[ooNetFramework]Install472"}; ConfigurationName = "OftenOn"; }; instance of OMI_ConfigurationDocument { Version="2.0.0"; MinimumCompatibleVersion = "2.0.0"; CompatibleVersionAdditionalProperties= {"Omi_BaseResource:ConfigurationName"}; Author="cody"; GenerationDate="10/29/2018 22:36:42"; GenerationHost="THINKY"; ContentType="PasswordEncrypted"; Name="OftenOn"; }; |