Forum Discussion

RevathyV's avatar
RevathyV
New Contributor
2 years ago
Solved

Powershell Get-ItemProperty

PowerShell Script and Get the Result as Text:

Example

Get-ItemProperty HKLM:\Software\Microsoft\Windows\CurrentVersion\Uninstall\* | Select-Object DisplayName, DisplayVersion | Where-Object {$_.DisplayName -match "McAfee"}, to search "McAfee" i need to use double quotes but testcomplete doesnot allow to do it

 

  • You can use e.g. ""McAfee"" or \"McAfee\" depending on how your string is being called.

1 Reply

  • rraghvani's avatar
    rraghvani
    Champion Level 3

    You can use e.g. ""McAfee"" or \"McAfee\" depending on how your string is being called.