Add-MOF.ps1
Function Add-MOF { #Not finished yet param( [ValidateScript({ If ( Test-Path -Path $_ -PathType Leaf ) { $true } Else { Throw "$_ is not a valid File." } })] [string]$DSCMofPath, [String]$OsDrive ) #ToDo: Check if Mof-File is set to Localhost $DSCConfigurationFolder = $OsDrive + "\Windows\System32\Configuration\" Copy-Item -Path $DSCMofPath -Destination $DSCConfigurationFolder\pending.mof } |