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 -RequiredVersion 1.8

Copy and Paste the following command to install this package using Microsoft.PowerShell.PSResourceGet More Info

Install-PSResource -Name RunAsUser -Version 1.8

You can deploy this package directly to Azure Automation. Note that deploying packages with dependencies will deploy 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

Owners

Copyright

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

Package Details

Author(s)

  • Kelvin Tegelaar - Kelvin@limenetworks.nl

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.

FileList

Version History

Version Downloads Last updated
2.4.0 67,943,120 12/14/2022
2.3.1 11,847,642 8/18/2022
2.3 174 8/18/2022
2.2 15,966,470 3/8/2021
2.1 189 3/8/2021
2.0 164,507 3/5/2021
1.9 2,292,697 10/13/2020
1.8 (current version) 30,538 8/28/2020
1.6 14,747 8/4/2020
1.5.1 36,278 7/22/2020
1.5.0 3,533 7/16/2020
1.0.2 234 7/14/2020
1.0.1 600 7/14/2020
1.0 32 7/13/2020
Show less