Re: [psh] Upgrade blues




| 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]



.



Relevant Pages

  • Re: Windows Server 2003 Service Pack 1 will not install
    ... You can try to install the Windows 2003 ... Expand to Windows Logs -> Application and right-click to select Save ... of the public folder database files. ... domain to the new SBS 2003 installation, way is to create a local profile, ...
    (microsoft.public.windows.server.sbs)
  • Re: can these be deleted
    ... Have you installed or tried to install AT&T security software? ... O4 - Startup: NTUSER.DAT.rctemp.LOG ... Enquire, plan and execute ... Why you want to delete them?, did you delete/remove a profile from ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: All Users Running Scripts From Admin Profile
    ... A mortgage app that is basically an Access 97 app access msscript.dll from ... MS Outlook tries to run a script from the Admins' local settings when it ... non-admins can't access the Admin's profile so these things fail. ... > since Add/Remove programs doesn't work when you install updates ...
    (microsoft.public.win2000.termserv.apps)
  • Re: "Classic logon" screen in XP does not remeber the user name
    ... would be to install RC. ... I recently upgraded a workstation from Windows 2000 Pro to Windows XP Pro. ... can copy missing shortcuts to the new profile. ... just temporarily] another user account that is also an administrator ...
    (microsoft.public.windowsxp.security_admin)
  • Re: (office app) has not been installed for the current user. Please run setup to install the applic
    ... The user is not in the office today and I cannot log in to his profile. ... Jim Helfer ... |> | run setup to install the application ... | Computer Systems Administrator ...
    (microsoft.public.office.misc)