So what your saying is.... its better not to use an Array in a situation like this, but instead address it as a conditional expression within the if statement... Got it!! thank for you help. have a good dayjvierra wrote: ↑Tue Jun 26, 2018 6:50 am I think you need to start by learning basic PowerShell. Without some training all of this will seem quite impossible.
Code: Select all
if('Windows xp' -eq (Get-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion' -Name ProductName).ProductName){ Calc }else{ notepad }
Reg Value
Forum rules
Do not post any licensing information in this forum.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
Do not post any licensing information in this forum.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.