mirror of
https://github.com/MicrosoftDocs/windows-itpro-docs.git
synced 2025-05-12 21:37:22 +00:00
PS Script update
Updated PS script
This commit is contained in:
parent
e67b68c61b
commit
8352e65e9b
@ -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**.
|
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
|
```PS
|
||||||
$path="file path"
|
$outputFile = "output.admx"
|
||||||
(Get-Content $admxFile -Raw).Replace("`r`n","") | Set-Content $path -Force
|
$inputFile = "input.admx
|
||||||
|
(Get-Content $inputFile -Raw).Replace("`r`n","") | Set-Content $outputFile -Force
|
||||||
```
|
```
|
||||||
|
|
||||||
## Configuration Samples
|
## Configuration Samples
|
||||||
|
Loading…
x
Reference in New Issue
Block a user