Windows Vista Forums

Update-Profile?
  1. #1


    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

  2. #2


    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

  3. #3


    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

Update-Profile? problems?

Similar Threads
Thread Thread Starter Forum Replies Last Post
Profile system specs - UPDATE z3r010 Chillout Room 9 02 Sep 2008
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 01 Nov 2007
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 27 Sep 2007
Profile problems after Windows Vista Update mcmillanlloyd Vista General 0 29 Aug 2007
System automatically reboots after update and lost profile Dale Vista performance & maintenance 6 12 May 2007