DSCExamples/Configuration.ps1
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
Configuration TimeStamp { Import-DscResource -ModuleName SoftwareTimestamping SoftwareTimestamping 'iWARP-40G-1 - Timestamping Config' { Ensure = 'Present' NetAdapterName = 'iWARP-40G-1' TimestampValue = 5 } SoftwareTimestamping 'iWARP-40G-2 - Timestamping Config' { Ensure = 'Present' NetAdapterName = 'iWARP-40G-2' TimestampValue = 5 } SoftwareTimestamping 'NIC1 - Timestamping Config' { Ensure = 'Absent' NetAdapterName = 'NIC1' } SoftwareTimestamping 'vEthernet (Tester) - Timestamping Config' { Ensure = 'Absent' NetAdapterName = 'vEthernet (Tester)' } } TimeStamp -OutputPath c:\temp\ Start-DscConfiguration -Path c:\temp -Verbose -Wait -Force |