Difference between revisions of "Getting Started (PowerShell)"

Jump to navigation Jump to search
→‎Installation: Added profile
m (→‎Installation: Added V4 download link)
(→‎Installation: Added profile)
Line 21: Line 21:
# Go to '''Internet Options''', and then '''Advanced'''
# Go to '''Internet Options''', and then '''Advanced'''
# Then under '''Security''' uncheck ''Check for publisher's certificate revocation''
# Then under '''Security''' uncheck ''Check for publisher's certificate revocation''
=== User Profile ===
Its possible to create a customised profile so that modules, settings etc are available.  This is achieved by running a PowerShell script whenever PowerShell starts
# Locate your profile path
#* <source lang=powershell>Write-Host $profile</source>
# Create a PowerShell script in the exact path
You could for example log all PowerShell activity to a OneDrive folder...
<source lang=powershell>
$today = (Get-Date).ToString("yyyy-MM-dd")
Start-Transcript -Path "$home\OneDrive\Scripts\transcripts\$env:computername-PID$pid-$today.txt" -Append -NoClobber
</source>


== Execution Policy ==
== Execution Policy ==

Navigation menu