1. Download a Powershell module UserRights.psm1 from here https://gallery.technet.microsoft.com/s ... r-26e259b0 and remember the folder you saved it (in my example it is in C:\Entwicklung\PowerShell)
2. Start a powershell with administration privileges and do the following (with correct path of the module file):
Code: Select all
Set-ExecutionPolicy RemoteSigned -Force
$user=whoami
Import-Module C:\Entwicklung\PowerShell\UserRights.psm1
Grant-UserRight -Account $user -Right SeLockMemoryPrivilege
Get-UserRightsGrantedToAccount -Account $user
Code: Select all
PS C:\WINDOWS\system32> Set-ExecutionPolicy RemoteSigned -Force
PS C:\WINDOWS\system32> $user=whoami
PS C:\WINDOWS\system32> Import-Module C:\Entwicklung\PowerShell\UserRights.psm1
PS C:\WINDOWS\system32> Grant-UserRight -Account $user -Right SeLockMemoryPrivilege
PS C:\WINDOWS\system32> Get-UserRightsGrantedToAccount -Account $user
Account Right
------- -----
asus-nb\amatt SeLockMemoryPrivilege
Code: Select all
Set-ExecutionPolicy Restricted -Force
Code: Select all
Stockfish 12 by the Stockfish developers (see AUTHORS file)
setoption name Hash value 1024
info string Hash table allocation: Windows large pages used.