Last active
January 8, 2018 03:20
-
-
Save rkyttle/18f64fb9d96ced0b5652804068a714e3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Import-Module SpeculationControl | |
$scriptstring = Get-Content -Path (Get-Module SpeculationControl).Path | % { if (-not ($_ -match “^\# “)) { $_ }} | Out-String | |
$scriptstring += ' | |
function Write-Host {} | |
' | |
$scriptstring += 'Get-SpeculationControlSettings' | |
$script=[scriptblock]::create($scriptstring) | |
$results = Invoke-Command -ComputerName localhost, system2, system3 -ScriptBlock $script | |
$results | Export-Csv .\SpeculationControlSettings.csv -NoTypeInformation |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment