keyongtech


  keyongtech > windows.* > windows.powershell > 05/2008

 #1  
05-05-08, 04:22 PM
Greg Wojan
I have a Windows Server 2008 with the PowerShell 2 CTP installed. I was
attempting to install a role/feature that requires PowerShell 1.0 so I
received a polite little dialog telling me PowerShell 1.0 was required
and I needed to install it.

Can anyone tell me the best way to deal with this "issue". Thanks.

--Greg
 #2  
05-05-08, 10:54 PM
Shay Levi
Hi Greg

There is a similar issue when you want to install Exchange 2007 mgmt tools
on a machine that has PowerShell CTP already installed.
Try to execute:

set-itemproperty "HKLM:\SOFTWARE\Microsoft\PowerShell\1" PID "89383-100-0001260-04309"

It will add the missing PowerShell v1 registry key. Try to install the server
role/feature and then delete the key.



-----
Shay Levi
$cript Fanatic
http://scriptolog.blogspot.com
[..]
 #3  
05-06-08, 07:04 PM
Marco Shaw [MVP]
Shay Levi wrote:
>
> Hi Greg
>
> There is a similar issue when you want to install Exchange 2007 mgmt
> tools on a machine that has PowerShell CTP already installed.
> Try to execute:
>
> set-itemproperty "HKLM:\SOFTWARE\Microsoft\PowerShell\1" PID
> "89383-100-0001260-04309"
>
> It will add the missing PowerShell v1 registry key. Try to install the
> server role/feature and then delete the key.


That doesn't appear to work, at least for adding the PowerShell snap-in
for the Server 2008 command-line backup tools.

I'm going to look into it. I just need to find something on how the
Server Manager works under the covers.

Marco
 #4  
05-06-08, 10:22 PM
Shay Levi
Thanks for the info. I can't test against 2008, probably in the next few
days :)

 #5  
05-06-08, 10:32 PM
Greg Wojan
Thanks Marco. That is exactly what I was trying to install -- the backup
tools command line scripts.

I wonder what would happen if I installed PowerShell 1 and then tried to
install PowerShell CTP over the top? I'll give it a try when I have the
time.

--Greg
[..]
 #6  
05-07-08, 01:41 AM
Chris Warwick
I don't think that will work.

I guess the thing to do would be to install PS V1, install all
features and roles that depend on PS. Uninstall PS and reinstall
CTP2:-)

YMMV - as they say...


On Tue, 6 May 2008 17:32:29 -0400, "Greg Wojan" <gwojan>
wrote:
[..]
 #7  
05-10-08, 01:12 AM
Shay Levi
I had no problems installing PowerShell CTP2 on server 2008 and load the
Windows.ServerBackup snap-in.
What role were you trying to install?

 #8  
05-10-08, 02:03 AM
Charlie Russel - MVP
Won't work. Server Manager will uninstall the backup cmdline tools, since it
knows there's a dependency. :(
 #9  
05-10-08, 02:04 AM
Charlie Russel - MVP
Yup. Just not the command line tools feature option for it. :(
 #10  
05-11-08, 02:32 PM
Shay Levi
I made a video capture of the process:

http://scriptolog.blogspot.com/2008/...rver-2008.html



 #11  
05-12-08, 04:28 PM
Greg Wojan
Shay,

I was trying to install the backup scripts. I'm able to install the
"Windows Server Backup" feature but I get I nice dialog insisting on
PowerShell 1.0 being installed if I try and install the backup command
line tools/scripts.

--Greg
[..]
 #12  
05-12-08, 05:10 PM
Greg Wojan
Awesome! :-)

Doh! Use the command line install... Thanks.

> -----Original Message-----
> From: Shay Levi [mailto:no]
> Posted At: Sunday, May 11, 2008 09:33
> Posted To: microsoft.public.windows.powershell
> Conversation: Installing PowerShell dependent features on
> W2K8 with PowerShell CTP
> Subject: Re: Installing PowerShell dependent features on W2K8
> with PowerShell CTP
>>

> I made a video capture of the process:
>
> [..]

er-2008.html



 #13  
05-14-08, 04:16 PM
Shay Levi
> Awesome! :-)

Not that great! Can you check the output of $host?

I've just updated my post. Discussing it offline with Marco revealed my mistake
:(

http://scriptolog.blogspot.com/2008/...rver-2008.html



 #14  
05-15-08, 06:31 PM
Greg Wojan
Shay,

I guess I spoke too soon. :-(

I watched your video again -- notice the copyright date when you launch
PowerShell. When you install the backup cmdlets the version of
PowerShell is back-rev'd to v1.0 with a copyright date of 2006.

I guess the installer is still smarter than we are... <sigh>

--Greg
[..]
Similar Threads
Powershell 2 new features - where to go for a list?

Hi all, just wondering whether there is a list of new features for v2. Ideally something more verbose than [..] and less then having to read the whole help file and having...

install powershell on W2k8 R2 core edition

Hi How can I install powersell on Windows Server 2008 R2 core edition? Patrick

when run powershell script as windows service ,powershell fail

On windows 2008 ,run powershell script by windows serivice application ,but this script always failed due to the following .Net runtime error ..NET Runtime version...

Powershell Plus - Free for non commercial Use and Powershell Analyzer1.0 released

Head over to [..] to read about this. Basically PSPLUS beta is available with a 45 day trial, and after that free for non commercial use. PowerShell Analyzer 1.0 is released,...

Powershell and loading dependent assemblies

Is it possible to find out what exact (dependency) assembly Powershell had trouble finding? PS Z:\> $vaultServer.Login($loginCredentials) Exception calling "Login" with "1"...


All times are GMT. The time now is 08:37 AM. | Privacy Policy