PoshCode Archive  Hex Artifact Content

Artifact b20d6a67d94398fdaf8c3b77ac53616b986f82abb77281d85437c8bce1d79e3a:

  • File Set-Privilege.ps1 — part of check-in [1865d9fead] at 2018-06-10 14:13:56 on branch trunk — I thought that it’s impossible. Some guy who calls himself gregzakh wrote a demo module called Func which allows you to invoke some WinAPI functions without defining dynamic modules in memory. This module correctly works on PowerShell v2, 4 and 5 (I have not got PowerShell v3 to test it). The script below uses Func library to set SeShutwondPrivilege privilege up for current PowerShell host. (user: Dan Jones size: 1292)

A hex dump of this file is not available. Please download the raw binary file and generate a hex dump yourself.