This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ErrorActionPreference = 'SilentlyContinue' | |
$fs = 'fileserver' | |
$drive = @{ | |
'Personal' = '\\{0}\{1}' -f $fs, $env:USERNAME | |
'Training' = '\\{0}\Training' -f $fs | |
'Transfer' = '\\{0}\Transfer' -f $fs | |
} | |
New-PSDrive -Name 'P' -PSProvider FileSystem -Root $drive.Personal -Description 'Personal Files' -Persist | |
New-PSDrive -Name 'T' -PSProvider FileSystem -Root $drive.Training -Description 'Training Files' -Persist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# $env:OneDrive\Documents\WindowsPowerShell | |
$HOST.UI.RawUI.WindowTitle = "Windows PowerShell ISE - {0}" -f $PSVersionTable.PSVersion.ToString() | |
$psISE.PowerShellTabs.SelectedPowerShellTab.ShowCommands = $false | |
$psISE.Options.SelectedScriptPaneState = 'Right' | |
$psISE.Options.SelectedScriptPaneState = 'Top' | |
###################### | |
# DEFAULT PARAMETERS # | |
###################### |