SHARE
TWEET

SpeculationControl

Ibra86 Jan 5th, 2018 (edited) 336 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ======================================================================
  2. How to get and run the "SpeculationControl" powershell module without installing WMF 5.1
  3. ======================================================================
  4.  
  5. 1. Download the module package (direct link from PS Gallery server)
  6. https://devopsgallerystorage.blob.core.windows.net/packages/speculationcontrol.1.0.4.nupkg
  7.  
  8. 2. The downloaded package is just a zipped file, change extension to .zip and extract these two files:
  9. SpeculationControl.psd1
  10. SpeculationControl.psm1
  11.  
  12. 3. Windows 7 only:
  13. double-click SpeculationControl.psd1 file, to be opened in Notepad
  14. on line 12, change "RootModule" to "ModuleToProcess" (without quotes), and save the file
  15.  
  16. 4. Run "Windows PowerShell" console as administrator, and execute these commands:
  17.  
  18. a) optional, change execution policy to allow running the module:
  19. Set-ExecutionPolicy Bypass -Scope Process -Force
  20.  
  21. b) import the module, define the full path to SpeculationControl.psd1 file without spaces or quotes:
  22. Import-Module C:\Temp\SpeculationControl.psd1
  23.  
  24. c) run the module
  25. Get-SpeculationControlSettings
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top