Skip to content

Commit b07bac0

Browse files
s-h-a-d-o-wopcmCopilot
authored
Update WINDOWS_HOWTO.md (#964)
* Update WINDOWS_HOWTO.md * Update doc/WINDOWS_HOWTO.md Co-authored-by: Copilot <[email protected]> * Remove the now unnecessary mention of "password" * Update doc/WINDOWS_HOWTO.md Co-authored-by: Copilot <[email protected]> * Update doc/WINDOWS_HOWTO.md Co-authored-by: Copilot <[email protected]> * Update doc/WINDOWS_HOWTO.md Co-authored-by: Copilot <[email protected]> --------- Co-authored-by: opcm <[email protected]> Co-authored-by: Copilot <[email protected]>
1 parent f91cf10 commit b07bac0

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

doc/WINDOWS_HOWTO.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ _For support of systems with more than _**_64_**_ logical cores you need to comp
44

55
## Command-line utility
66

7-
1. Follow [Compile the Windows MSR driver](#compile-the-windows-msr-driver) to compile the Windows MSR driver (msr.sys). For Windows 7 and later versions you have to sign the msr.sys driver additionally ([http://msdn.microsoft.com/en-us/library/ms537361(VS.85).aspx](http://msdn.microsoft.com/en-us/library/ms537361(VS.85).aspx)). To enable loading test-signed drivers on the system: in administrator cmd console run `bcdedit /set testsigning on` and reboot.
7+
1. Follow [Compile the Windows MSR driver](#compile-the-windows-msr-driver) to compile the Windows MSR driver (msr.sys). For Windows 7 and later versions you have to [sign the msr.sys driver additionally](#sign-the-windows-msr-driver). To enable loading test-signed drivers on the system: in administrator cmd console run `bcdedit /set testsigning on` and reboot.
88

99
2. Build the *pcm.exe* utility:
1010
```
@@ -72,6 +72,19 @@ When you install Visual Studio, also install related packages:
7272
MSBuild.exe MSR.vcxproj -property:Configuration=Release -property:Platform=x64
7373
```
7474
75+
## Sign the Windows MSR driver
76+
77+
Run the following in PowerShell, in the directory where `MSR.sys` is located:
78+
79+
```
80+
$cert = New-SelfSignedCertificate -Type CodeSigning -Subject "CN=TestCert" -CertStoreLocation "Cert:\CurrentUser\My" -KeyExportPolicy Exportable
81+
$pwd = Read-Host -Prompt "Enter the password for the PFX file" -AsSecureString
82+
Export-PfxCertificate -Cert $cert -FilePath TestCert.pfx -Password $pwd
83+
signtool sign /fd SHA256 /f TestCert.pfx /p ([Runtime.InteropServices.Marshal]::PtrToStringAuto([Runtime.InteropServices.Marshal]::SecureStringToBSTR($pwd))) /t http://timestamp.digicert.com MSR.sys
84+
```
85+
86+
Afterwards, double-click `TestCert.pfx`. Install to "Current User" and when able to pick "Place all ...", browse for "Trusted Root Certification Authorities".
87+
7588
## Known limitations
7689
7790
Running PCM.exe under Cygwin shell is possible, but due to incompatibilities of signals/events handling between Windows and Cygwin, the PCM may not cleanup PMU configuration after Ctrl+C or Ctrl+Break pressed. The subsequent run of PCM will require to do PMU configuration reset, so adding -r command line option to PCM will be required.

0 commit comments

Comments
 (0)