Skip to content

janpelikan/ImpersonateSystem

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

Releases

No releases published

Packages

No packages published

Languages

  • PowerShell 100.0%