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

New-Shortcut does not enable "Run as administrator" #10

Open
docker-creator opened this issue Feb 14, 2025 · 0 comments
Open

New-Shortcut does not enable "Run as administrator" #10

docker-creator opened this issue Feb 14, 2025 · 0 comments

Comments

@docker-creator
Copy link

New-Shortcut -Path "C:\temp\test.lnk" -TargetPath "C:\Program Files\PowerShell\7\pwsh.exe" -RunAsAdmin

The command above completes without errors, but fails to enable the "Run this program as an administrator" checkbox.
Tested on Windows 11 23H2 and Windows server 2022 21H2

Image

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

1 participant