Windows Vista Forums
Vista Forums Home Join Vista Forums Webcasts Windows 7 Forum Vista Tutorials Tags

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.
Register at Vista forums...the world biggest Windows Vista resource Join Vista Forums Now

Go Back   Vista Forums > Microsoft Technical Newsgroups > PowerShell

Update-Profile?

Update your Vista Drivers Update Your Drivers Now!!
Closed Thread
 
Thread Tools Display Modes
Old 03-29-2007   #1 (permalink)
Duncan Smith
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 SpecsSystem Spec
Old 03-29-2007   #2 (permalink)
aaronlerch@gmail.com
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 SpecsSystem Spec
Old 03-29-2007   #3 (permalink)
Duncan Smith
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 SpecsSystem Spec
Closed Thread

Thread Tools
Display Modes



Similar Threads
Thread Thread Starter Forum Replies Last Post
Solved 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


Vistax64.com is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media 2005-2008

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51