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 45,661,711 12/14/2022
2.3.1 11,846,543 8/18/2022
2.3 166 8/18/2022
2.2 15,958,258 3/8/2021
2.1 186 3/8/2021
2.0 164,497 3/5/2021
1.9 2,292,688 10/13/2020
1.8 (current version) 30,532 8/28/2020
1.6 14,742 8/4/2020
1.5.1 35,686 7/22/2020
1.5.0 3,520 7/16/2020
1.0.2 231 7/14/2020
1.0.1 597 7/14/2020
1.0 27 7/13/2020
Show less