You can try using .net:
$Reg = [Microsoft.Win32.RegistryKey]::OpenRemoteBaseKey('LocalMachine', $computer1)
$RegKey= $Reg.OpenSubKey("SOFTWARE\\Veritas\\NetBackup\\CurrentVersion")
$NetbackupVersion1 = $RegKey.GetValue("PackageVersion")
More Related Contents:
- What’s the best way to determine the location of the current PowerShell script?
- Is there a way to make a PowerShell script work by double clicking a .ps1 file?
- Redirecting standard input\output in Windows PowerShell
- How to perform keystroke inside powershell?
- When should I use Write-Error vs. Throw? Terminating vs. non-terminating errors
- Delete files older than 15 days using PowerShell
- How to get disk capacity and free space of remote computer
- Recursive file search using PowerShell
- Executing an EXE file using a PowerShell script
- How to get an MD5 checksum in PowerShell
- Obtaining ExitCode using Start-Process and WaitForExit instead of -Wait
- Redirection of standard and error output appending to the same log file
- How to properly -filter multiple strings in a PowerShell copy script
- How do I include a locally defined function when using PowerShell’s Invoke-Command for remoting?
- How to export data to CSV in PowerShell?
- Methods to hex edit binary files via Powershell
- Comparing array variables in PowerShell
- Copy file remotely with PowerShell
- How to speed up Powershell Get-Childitem over UNC
- Using Invoke-Command -ScriptBlock on a function with arguments
- PowerShell script to check the status of a URL
- Powershell – Reboot and Continue Script
- Hashtables and key order
- Can’t install nuget package because of “Failed to initialize the PowerShell host”
- PowerShell The term is not recognized as cmdlet function script file or operable program
- PowerShell is missing the terminator: “
- Using PowerShell to remove lines from a text file if it contains a string
- What security setting is preventing Remote PowerShell 2.0 from accessing UNC paths
- List hidden sub-directories and sizes
- Prevent trailing newline in PowerShell Out-File command