Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running a Ps1 with RunAsTI64.exe #7

Open
BrycesonK opened this issue Oct 16, 2019 · 1 comment
Open

Running a Ps1 with RunAsTI64.exe #7

BrycesonK opened this issue Oct 16, 2019 · 1 comment

Comments

@BrycesonK
Copy link

I am currently trying to run a powershell script with RunAsTI64.exe from a batch file that way it can be semi automatic. The only way I have found to run a powershell script with RunAsTi64.exe is to do .\RunAsTI64.exe Powershell.exe then call the powershell script within that powershell session.

Is there anyway I can either pass the script to the Powershell session with something like .\RunAsTI64.exe Powershell.exe "PathtoScript\Script.ps1"

Or can I just run the script using RunAsTI64.exe with something like this
.\RunAsTI64.exe "PathtoScript\Script.ps1"

@igpit
Copy link

igpit commented Dec 29, 2019

you would probably want to run it like

RunAsTI64.exe PowerShell.exe -Command ".\myScript.ps1"

... but apparently RunAsTI64.exe ignores all arguments?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants