diff --git a/windows/configuration/wcd/wcd-admxingestion.md b/windows/configuration/wcd/wcd-admxingestion.md index e5f7a506a2..6d9dea362e 100644 --- a/windows/configuration/wcd/wcd-admxingestion.md +++ b/windows/configuration/wcd/wcd-admxingestion.md @@ -147,8 +147,9 @@ The next sample highlights the specific policy. Use the following PowerShell cmdlet to remove carriage returns and line feeds from a multi-line file to create a single-line file that you can paste in **AdmxFileUid**. ```PS -$path="file path" -(Get-Content $admxFile -Raw).Replace("`r`n","") | Set-Content $path -Force +$outputFile = "output.admx" +$inputFile = "input.admx +(Get-Content $inputFile -Raw).Replace("`r`n","") | Set-Content $outputFile -Force ``` ## Configuration Samples