Sample/DSCRFont_Sample.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 |
$output = 'C:\MOF' Configuration DSCR_Font_Sample { Import-DscResource -ModuleName DSCR_Font Node localhost { cFont Add_Font_Sample { Ensure = 'Present' FontName = 'Noto Serif (TrueType)' FontFile = 'C:\temp\NotoSerif-Regular.ttf' } cFont Remove_Font_Sample { Ensure = 'Absent' FontName = 'Noto Sans Regular (TrueType)' FontFile = 'NotoSans-Regular.ttf' } } } DSCR_Font_Sample -OutputPath $output #Test-DscConfiguration -Path $output -Verbose Start-DscConfiguration -Path $output -Verbose -Wait -Force |