Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

2
  • I believe your referring to get-help about_execution_policies. So running powershell as non-admin and initiating profile by New-Item -path $profile -type file –force with an alias for notepad won't run due to the execution policies. How do I get an alias for notepad to run without running ps as admin?
    – fohrums
    Commented Aug 24, 2019 at 14:55
  • After some time, I figured how to run local profile-files as non-admin. First, set execution policy to not use Restricted, instead to use RemoteSigned: Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser problem is the alias for notepad works, but not the alias with an executable with parameters. Why is that? I'm beginning to think that PS is only able to create aliases for cmdlets or built-in Windows proccesses like notepad.exe. I still need help creating a custom alias.
    – fohrums
    Commented Aug 25, 2019 at 1:21