Results 1 to 3 of 3
  1. #1
    WS Lounge VIP access-mdb's Avatar
    Join Date
    Dec 2009
    Location
    Oxfordshire, UK
    Posts
    1,967
    Thanks
    158
    Thanked 184 Times in 177 Posts

    Starting Powershell in different folders

    Admin PS starts in c:\windows\system32 and non admin in c:\users\name. Is there any way to change these defaults? It's a bit of a bind changing to where my scripts are each time.
    Just because you can doesn't mean you should.

  2. #2
    Administrator
    Join Date
    Mar 2001
    Location
    St Louis, Missouri, USA
    Posts
    24,101
    Thanks
    5
    Thanked 1,164 Times in 1,019 Posts
    Joe

  3. The Following User Says Thank You to JoeP517 For This Useful Post:

    access-mdb (2017-05-20)

  4. #3
    WS Lounge VIP access-mdb's Avatar
    Join Date
    Dec 2009
    Location
    Oxfordshire, UK
    Posts
    1,967
    Thanks
    158
    Thanked 184 Times in 177 Posts
    Thanks Joe, I didn't know about profiles. I did some of what they suggested and the set-loaction worked fine. But the others didn't, they all failed

    Code:
    $Shell.WindowTitle=”SysadminGeek”
    $shell.BackgroundColor = “red”
    $shell.ForegroundColor = “Black”
    This isn't a deal breaker and a quick Google seems to imply to use $host. I'll investigate further.
    I will now have to think about where I put my scripts - the path is now rather long!
    Just because you can doesn't mean you should.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •