lax123man / remotevulnauditing Goto Github PK
View Code? Open in Web Editor NEWThis project forked from rgnv/remotevulnauditing
So this is a pretty simple thing I hacked together, I just wanted to post it in case somebody can use it. I broke down the SpeculationControl module that was released by Microsoft and took the script content from the get-speculationcontrolsettings cmdlet. I essentially just took their script and put it into a invoke-command script block and integrated it with Active Directory get-adcomputer. This will collect the same true/false information as before, but now it will get this data from all computers in the domain and dump it to a CSV file. I used $erroractionpreference because i wanted to hide the errors from AD computers that are not powered on. You need the RSAT tools to use get-adcomputer.