Basic Powershell setup

posted 3/18/2016 3:19:16 AM by: timothy
# Enable Powershell scripts

Set-ExecutionPolicy RemoteSigned

# Set home directory

Test-Path $profile
New-Item -path $profile -type file -force
Notepad $profile

# In profile init script, permaset home folder and any other
# evil AI components that might need to be running

"========================================="
"=                                       ="
"=           Welcome Overlord            ="
"=                                       ="
"=      Awaiting Your Instructions       ="
"=                                       ="
"========================================="

$homeFolder = "C:\Users\***Username***\Documents\WindowsPowershell"
Set-Location $homeFolder 

        

© 1999—2024 Timothy Lee Russell

vcard

View Timothy Russell's profile on LinkedIn

profile for Timothy Lee Russell at Stack Overflow, Q&A for professional and enthusiast programmers