Forum breadcrumbs - You are here:The Code Asylum ForumMain Forums: Microsoft WindowsRemediate Unquoted Paths
You need to log in to create posts and topics.
Remediate Unquoted Paths

Code Monkey@codemonkey
22 Posts
June 12, 2019, 10:04 am
Quote from Code Monkey on June 12, 2019, 10:04 am(put a computers.txt file, with all your computer names, in the same directory as the scripts)
To find and export all the bad keys into a .csv file use the command:
.\wrapper.ps1 -scriptpath .\Get-SVCPath.ps1 -name (Get-Content computers.txt) -throttle 20 | .\Find-BADSVCPath.ps1 | Export-CSV result.csv
To fix bad keys using the exported CSV file use the command:
Import-CSV result.csv | .\Fix-BADSVCPath.ps1
To find and remediate all bad keys all at once use the command:
.\Get-SVCPath.ps1 -name (Get-Content computers.txt) | .\Find-BADSVCPath.ps1 | .\Fix-BADSVCPath.ps1
(put a computers.txt file, with all your computer names, in the same directory as the scripts)
To find and export all the bad keys into a .csv file use the command:
.\wrapper.ps1 -scriptpath .\Get-SVCPath.ps1 -name (Get-Content computers.txt) -throttle 20 | .\Find-BADSVCPath.ps1 | Export-CSV result.csv
To fix bad keys using the exported CSV file use the command:
Import-CSV result.csv | .\Fix-BADSVCPath.ps1
To find and remediate all bad keys all at once use the command:
.\Get-SVCPath.ps1 -name (Get-Content computers.txt) | .\Find-BADSVCPath.ps1 | .\Fix-BADSVCPath.ps1
Uploaded files:
Click for thumbs down.0Click for thumbs up.0
COMMENTS