Re: [psh] Upgrade blues
- From: "William Stacey [MVP]" <william.stacey@xxxxxxxxx>
- Date: Wed, 3 May 2006 11:04:35 -0400
| No. I used regedit.exe to fix it before I started. Or tried to!
Did you try "set-executionpolicy unrestricted" and it still did not work? I
don't think you need regedit anymore for this.
| If I try to edit the $profile file (Notepad $profile) I get errors.
Not sure if this is your issue, but I had same type of thing. Couple things
I ran into:
1) C:\Documents and Settings\Administrator\My
Documents\PSConfiguration\Microsoft.PowerShell_profile.ps1 is $profile.
Dir is not created by Install, so "notepad $profile" will not find it.
2) Once dir is manually created you also need to create the
Microsoft.PowerShell_profile.ps1 file and set the execution policy so the
script can run.
Couple things. I agree this is a pain, even for savy console folks. This
started to remind me of old unix installs with needing to read a ton of Man
pages before getting something to install/run. Now that I did it once, it
is not that bad and see what is going on, but this could be easier.
What could make this better?
1) Create the profile directory and an "empty" profile at Install.
2) Use profile.ps1 instead of
Microsoft.PowerShell_profileXYZAABDERFGADFDFFWee##$%$%!!@xxxxx - I still
don't get this fully yet.
3) If your running Restricted, PSH should not even try to run the profiles
at startup, so the startup Error does not show up if you have not set
executionpolicy yet. Scripts will not run anyway, so why try to run
$profile at startup?
--
William Stacey [MVP]
.
- Follow-Ups:
- Re: [psh] Upgrade blues
- From: Thomas Lee
- Re: [psh] Upgrade blues
- From: Keith Hill [MVP]
- Re: [psh] Upgrade blues
- References:
- [psh] Upgrade blues
- From: Thomas Lee
- Re: [psh] Upgrade blues
- From: Lee Holmes [MSFT]
- Re: [psh] Upgrade blues
- From: Thomas Lee
- [psh] Upgrade blues
- Prev by Date: Re: RootHints in dns setting
- Next by Date: Re: [PS] Parameter tab-completion does not work in assignment stat
- Previous by thread: Re: [psh] Upgrade blues
- Next by thread: Re: [psh] Upgrade blues
- Index(es):
Relevant Pages
|
|