How to get back to master database location in sitecore powershell console when there is an exception while executing script.

We all know that default location when we open sitecore powershell console would be 'PS master' Default location of sitecore PS console

In the above snapshot when we have an exception in the console it returns to specific drive & how do we get back to master DB location from here.

Every time when i get this error i would close & open powershell console.

Any inputs on this please.

1 Answer 1


Simply use cd command

You can switch between locations like this:

cd c:/

cd master:

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.