http://www.sqlservercentral.com/blogs/sql_server_dba/2012/02/10/powershell-default-start-directory-/

Printed 2014/09/20 02:47AM

Powershell default start directory

2012/02/10

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.

Powershell_start_up

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

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

 Type: echo %HOMEDRIVE%%HOMEPATH% 

  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

 


Copyright © 2002-2014 Simple Talk Publishing. All Rights Reserved. Privacy Policy. Terms of Use. Report Abuse.