Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

set-alias

$
0
0

Hello,

What is wrong with the following code:

Set-alias gs set-executionpolicy restricted

I want to set this line in my $profile but the line isnt working. I got the same problem when I want to use "cd" instead of set-executionpolicy, for example:

set-alias gs cd C:\myscripts 

But neither of them work. Can someone tell me what i'm doing wrong or tell me a other way of doing it if it is not possible doing it with set-alias.

Thanks!


Viewing all articles
Browse latest Browse all 21975

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>