Windows Vista Forums

Where is profile located in Windows 7 powershell?

  1. #1


    James Gentile Guest

    Where is profile located in Windows 7 powershell?

    I just upgraded to Windows 7, it's nice, but I can't figure out where to put
    my profile.ps1, does anyone know? Thanks.


      My System SpecsSystem Spec

  2. #2


    Vadims Podans [MVP] Guest

    Re: Where is profile located in Windows 7 powershell?

    your own profile you can create using this code:

    new-item -itemtype file -path $profile -force
    --
    WBR, Vadims Podans
    MVP: PowerShell
    PowerShell blog - www.sysadmins.lv

    "James Gentile" <l0ngr1fl3@xxxxxx> rakstija zinojuma
    "news:uZTmmTlHKHA.4004@xxxxxx"...

    > I just upgraded to Windows 7, it's nice, but I can't figure out where to
    > put my profile.ps1, does anyone know? Thanks.

      My System SpecsSystem Spec

  3. #3


    Karl Mitschke Guest

    Re: Where is profile located in Windows 7 powershell?

    Hello Vadims Podans [MVP]" vpodans,

    > your own profile you can create using this code:
    >
    > new-item -itemtype file -path $profile -force
    >
    > "James Gentile" <l0ngr1fl3@xxxxxx> rakstija zinojuma
    > "news:uZTmmTlHKHA.4004@xxxxxx"...
    >

    >> I just upgraded to Windows 7, it's nice, but I can't figure out where
    >> to put my profile.ps1, does anyone know? Thanks.
    >>
    And, to find out where it will be, type $profile at your powershell prompt

    Karl



      My System SpecsSystem Spec

  4. #4


    Vadims Podans [MVP] Guest

    Re: Where is profile located in Windows 7 powershell?

    exactly. $profile variable always refers to your profile file, that is:
    %mydocuments%\WindowsPowerShell\Microsoft.PowerShell_profile.ps1
    --
    WBR, Vadims Podans
    MVP: PowerShell
    PowerShell blog - www.sysadmins.lv

    "Karl Mitschke" <karlmitschke@xxxxxx> rakstija zinojuma
    "news:d66cd4c2114348cbed369cc1d0ab@xxxxxx"...

    > Hello Vadims Podans [MVP]" vpodans,
    >

    >> your own profile you can create using this code:
    >>
    >> new-item -itemtype file -path $profile -force
    >>
    >> "James Gentile" <l0ngr1fl3@xxxxxx> rakstija zinojuma
    >> "news:uZTmmTlHKHA.4004@xxxxxx"...
    >>

    >>> I just upgraded to Windows 7, it's nice, but I can't figure out where
    >>> to put my profile.ps1, does anyone know? Thanks.
    >>>
    >
    > And, to find out where it will be, type $profile at your powershell prompt
    > Karl
    >
    >

      My System SpecsSystem Spec

  5. #5


    James Gentile Guest

    Re: Where is profile located in Windows 7 powershell?

    Thanks to both of you.

      My System SpecsSystem Spec

  6. #6


    uSlackr Guest

    Re: Where is profile located in Windows 7 powershell?

    Isn't the profile different depending on whether you run in ISE or
    command-line? In the ISE $profile gives me:

    %mydocuments%\WindowsPowerShell\Microsoft.PowerShellISE_profile.ps1

    "James Gentile" <l0ngr1fl3@xxxxxx> wrote in message
    news:OQbLzDlIKHA.4668@xxxxxx

    > Thanks to both of you.

      My System SpecsSystem Spec

  7. #7


    Larry__Weiss Guest

    Re: Where is profile located in Windows 7 powershell?

    How do you get PS to display the unresolved definition of $profile as you show it?

    - Larry

    uSlackr wrote:

    > Isn't the profile different depending on whether you run in ISE or
    > command-line? In the ISE $profile gives me:
    >
    > %mydocuments%\WindowsPowerShell\Microsoft.PowerShellISE_profile.ps1
    >

      My System SpecsSystem Spec

Where is profile located in Windows 7 powershell?

Similar Threads
Thread Forum
PowerShell profile under domain account
I have set up a host-specific global PowerShell profile on my workstation. I've just noticed that this profile loads for my login account and when...
PowerShell
Error when starting powershell - Documents folder located on serve
On my Vista laptop, I've relocated my profile Documents folder to the same folder on my main workstation. This is particularly convenient because...
PowerShell
Vista Home Premium: Where are 'windows update/installation logs located'? Windows servicing failed...
Are the update/installation logs located here also? (event viewer) My 'event viewer shows "errors' in installing the Windows updates from...
Vista General
windows installer fix located
since many have been unable to get a fix for their windows installer here as was the case for me, I searched and found one. ...
Vista General
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.
Last time I tried to report this problem, I was told not to come back until I had the complete error message. Well we're in luck. The stupid OS...
Vista General
Loading Powershell Snapins in your Profile
Loading Powershell Snapins in your Profile http://halr9000.com/article/425 Iíve recently started to sync my Powershell profile between my work...
PowerShell
Where is Windows Contact program located?
I am trying to import my Palm Desktop contact list from another PC into my new Windows Vista PC. I exported the contact file as a VCF file. When I...
Vista mail