Skip to content

Latest commit

 

History

History
37 lines (24 loc) · 941 Bytes

README.md

File metadata and controls

37 lines (24 loc) · 941 Bytes

ImpersonateSystem

PowerShell Gallery

Impersonate Windows built-in SYSTEM account.

Description

Impersonate Windows built-in SYSTEM account and execute commands on its behalf by invoking a scriptblock.

Note: Requires to be run as Administrator.

Installation

Install from PowerShell Gallery

Install-Module -Name ImpersonateSystem

or

git clone https://github.com/tobiohlala/ImpersonateSystem

Usage

Import-Module ImpersonateSystem

Invoke-AsSystem { [System.Environment]::UserName }

Examples

Get-Help Invoke-AsSystem -Examples