Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ======================================================================
- How to get and run the "SpeculationControl" powershell module without installing WMF 5.1
- ======================================================================
- 1. Download the module package (direct link from PS Gallery server)
- https://devopsgallerystorage.blob.core.windows.net/packages/speculationcontrol.1.0.4.nupkg
- 2. The downloaded package is just a zipped file, change extension to .zip and extract these two files:
- SpeculationControl.psd1
- SpeculationControl.psm1
- 3. Windows 7 only:
- double-click SpeculationControl.psd1 file, to be opened in Notepad
- on line 12, change "RootModule" to "ModuleToProcess" (without quotes), and save the file
- 4. Run "Windows PowerShell" console as administrator, and execute these commands:
- a) optional, change execution policy to allow running the module:
- Set-ExecutionPolicy Bypass -Scope Process -Force
- b) import the module, define the full path to SpeculationControl.psd1 file without spaces or quotes:
- Import-Module C:\Temp\SpeculationControl.psd1
- c) run the module
- Get-SpeculationControlSettings
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement