SQL Clone
SQLServerCentral is supported by Redgate
Log in  ::  Register  ::  Not logged in

Powershell default start directory

This post discusses some methods in configuring the Powershell  default start directory

 By default , the installation process will add a value to  the Start In parameter.


When you start Powershell , the default path will be  %HOMEDRIVE%%HOMEPATH%.

 Without opening Powershell , view the variable values through the DOS cmd window.


  To set up a new new start up Powershell directory , change the value in Start in.

 Method 2 – Amend $PROFILE  and Set-Location

 In your  $PROFILE file, you can add a

Set-Location "type_a_path"

where type_a_path is the path you want to start on.

See Also

Powershell sql server security audit



Leave a comment on the original post [www.sqlserver-dba.com, opens in a new window]

Loading comments...