Powershell add a value to a variable

Hello,

i am having a very simple Problem and i find now solution:

In Line 2 I write some objects into the variable $vApplictaionDetect

In Line 3i want to add some more objects (it my script it will overwrite the current content)

$vApplicationName = 'Dassault' 
$vApplictaionDetect = Get-ItemProperty HKLM:\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\* | Where-Object {$_.Publisher -like $vApplicationName+"*"}
$vApplictaionDetect = Get-ItemProperty HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\* | Where-Object {$_.Publisher -like $vApplicationName+"*"})

February 20th, 2015 4:03pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics