RunAsUser

1.8

This module allows you to execute scripts under the current user while running as SYSTEM using impersonation.

Minimum PowerShell version

5.0

Installation Options

Copy and Paste the following command to install this package using PowerShellGet More Info

Install-Module -Name RunAsUser

You can deploy this package directly to Azure Automation. Note that deploying packages with dependencies will deloy all the dependencies to Azure Automation. Learn More

Manually download the .nupkg file to your system's default download location. Note that the file won't be unpacked, and won't include any dependencies. Learn More

Author(s)

Kelvin Tegelaar - Kelvin@limenetworks.nl

Copyright

(c) 2020 Kelvin Tegelaar - Kelvin@CyberDrain.com All rights reserved.

Owners

Tags

RMM Invoke-AsCurrentUser CyberDrain

Functions

Invoke-AsCurrentUser

Dependencies

This module has no dependencies.

Release Notes

Version 1.0 allows you to run scripts as the current user. Version 1.5 has had a near-complete rewrite of the C# code, adding functionality to support elevated sessions. 1.5.1 added support for waiting for a process to finish. 1.6 added the "UseWindowsPowerShell" switch, to enforce the usage of windows PowerShell. Version 1.8 introduce the parameter -NonElevatedSession to create sessions without admin token.

Version History

Version Downloads Last updated
1.8 (current version) 7,052,760 8/28/2020
1.6 150,494 8/4/2020
1.5.1 9,856 7/22/2020
1.5.0 4,044 7/16/2020
1.0.2 832 7/14/2020
1.0.1 1,199 7/14/2020
1.0 629 7/13/2020