![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
|
Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
br> br> |
| |||||||
![]() |
| | Thread Tools | Display Modes |
| | #1 (permalink) |
| Guest | Update-Profile? Does this cmdlet not do what I think it does (I don't get a man page for it)? I was hoping it would re-load the profile, so I could start a session, decide I need a function adding to the profile, edit the profile, type 'up' and be able to make use of the new function without having re- start the powershell... Thanks, Duncan. |
My System Specs![]() |
| | #2 (permalink) |
| Guest | Re: Update-Profile? On Mar 29, 5:56 am, "Duncan Smith" <DSmith1...@googlemail.com> wrote: > Does this cmdlet not do what I think it does (I don't get a man page > for it)? > > I was hoping it would re-load the profile, so I could start a session, > decide I need a function adding to the profile, edit the profile, type > 'up' and be able to make use of the new function without having re- > start the powershell... > > Thanks, > > Duncan. You can simply do what's called "dot sourcing" to re-load your profile script. Just type: .. $profile ($profile is a built-in variable pointing to your profile file) You can do this with any script, actually. You may have to re-sign the script if you have your execution policy set to require signed and trusted scripts. Aaron |
My System Specs![]() |
| | #3 (permalink) |
| Guest | Re: Update-Profile? On Mar 29, 2:09 pm, aaronle...@gmail.com wrote: > On Mar 29, 5:56 am, "Duncan Smith" <DSmith1...@googlemail.com> wrote: > > > Does this cmdlet not do what I think it does (I don't get a man page > > for it)? > > > I was hoping it would re-load the profile, so I could start a session, > > decide I need a function adding to the profile, edit the profile, type > > 'up' and be able to make use of the new function without having re- > > start the powershell... > > > Thanks, > > > Duncan. > > You can simply do what's called "dot sourcing" to re-load your profile > script. Just type: > > . $profile > > ($profile is a built-in variable pointing to your profile file) > > You can do this with any script, actually. You may have to re-sign > the script if you have your execution policy set to require signed and > trusted scripts. > > Aaron Ah of course, I hadn't thought of dot-sourcing it back in. Thanks, Duncan. |
My System Specs![]() |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
Windows Search 4 Update/User Profile problem | RockLobster | Windows Updates | 3 | 08-05-2008 04:58 PM |
| Windows cannot find the local profile and is logging you on with a temporary profile. Changes you make to this profile will be lost when you log off. | invader | Vista General | 1 | 11-01-2007 01:25 PM |
| Moved Contacts to C:\Users over my profile and I have a copy of my profile under my profile in the explorer only. | Josh Young | Vista file management | 5 | 09-27-2007 11:13 PM |
| Profile problems after Windows Vista Update | mcmillanlloyd | Vista General | 0 | 08-29-2007 01:13 AM |