cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Skrskr
Level 3

convert vbscript to powershell

Jump to solution

Hi,

I am trying to get IS_MAJOR_UPGRADE property from powershell CA (Immediate Execution, 64 bit run). 

get-property -name IS_MAJOR_UPGRADE does not seems to get it.

Using vbscipt I could get it from Session.Property("IS_MAJOR_UPGRADE").

 

Thank you,

Regards,

Sangeetha

 

 

 

 

Labels (1)
0 Kudos
(1) Solution
Skrskr
Level 3

$major_up = get-property -name IS_MAJOR_UPGRADE  worked.

To record it in installlog had failed before (error creating message).

trace-info -LogMessage $major_up  -- worked

 

 

 

View solution in original post

0 Kudos
(2) Replies

Hi,

I tried using $Session.Property("IS_MAJOR_UPGRADE")  as you had suggested, but still it does not work..

 

0 Kudos
Skrskr
Level 3

$major_up = get-property -name IS_MAJOR_UPGRADE  worked.

To record it in installlog had failed before (error creating message).

trace-info -LogMessage $major_up  -- worked

 

 

 

0 Kudos