PowerShell

Video: How to create a PowerShell Profile

Hi PowerShell friends!

In this video I will show you how to create a PowerShell Profile.

Remember to check the Execution Policy first with Get-ExecutionPolicy. If it’s set to restricted change it to remotesigned with Set-ExecutionPolicy RemoteSigned.

Hope you enjoy it! Code sample, see below.


$host.ui.rawui.windowtitle="SID-500.COM | $([char]0x00A9) Patrick Gruenauer | MVP PowerShell [2018-2020]"
Set-Location -Path C:\
function Google {
Start-Process "https://www.google.at/search?q=$args"
}
function sid-500 {
Start-Process "https://sid-500.com/?s=$args"
}

Clear-Host

Categories: PowerShell

Tagged as: , ,

1 reply »

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.