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

Is it possible to execute PowerShell as an admin? #20

Open
carlspring opened this issue Mar 6, 2023 · 1 comment
Open

Is it possible to execute PowerShell as an admin? #20

carlspring opened this issue Mar 6, 2023 · 1 comment

Comments

@carlspring
Copy link

Hi,

I need to run some PowerShell commands as an admin. Is this possible? We're running on our own Github Actions Runners.

Kind regards,

Martin

@amis92
Copy link
Contributor

amis92 commented Mar 8, 2023

I don't think this action impacts your issue in any way.

As far as Actions docs say, there should be no problem to do so:

I'd also like to point out, if you just want to run PowerShell scripts and not interact with GitHub Actions further, you might be better off just using the shell: pwsh: https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsshell

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