Results 1 to 3 of 3
  1. #1
    WS Lounge VIP access-mdb's Avatar
    Join Date
    Dec 2009
    Location
    Oxfordshire, UK
    Posts
    2,052
    Thanks
    169
    Thanked 195 Times in 187 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.
    Eliminate spare time: get on the Internet!

  2. #2
    Administrator
    Join Date
    Mar 2001
    Location
    St Louis, Missouri, USA
    Posts
    24,268
    Thanks
    5
    Thanked 1,197 Times in 1,042 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
    2,052
    Thanks
    169
    Thanked 195 Times in 187 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!
    Eliminate spare time: get on the Internet!

Posting Permissions

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