用于获取带有 GUI 错误的 Adob​​e Connect 和 Zoom 软件版本的 Powershell 脚本

问题描述

正在处理 Powershell 脚本以在 GUI 中获取 adobe connect 和 Zoom 版本。并显示链接。任何帮助将不胜感激。

问题 1 - 两个软件版本都不可见。输出中只有一个显示为缩放或 Adob​​e

问题 2 - 无法获得两行的超链接。一次只获取一个

$ErrorActionPreference = "SilentlyContinue"
    
Add-Type -AssemblyName System.Windows.Forms Add-Type -AssemblyName System.Drawing
    
$font = New-Object System.Drawing.Font("Arial",9)
    
$form = New-Object System.Windows.Forms.Form 
$form.Text = 'plt Readiness' 
$form.Size = New-Object System.Drawing.Size(325,225) 
$form.StartPosition = 'CenterScreen' 
$form.Icon = 'C:\Users\C899414\Desktop.ico'
    
$OKButton = New-Object System.Windows.Forms.Button 
$OKButton.Location = New-Object System.Drawing.Point(120,150) 
$OKButton.Size = New-Object System.Drawing.Size(75,23) 
$OKButton.Text = 'OK' 
$OKButton.TextAlign = 'MiddleCenter' 
$OKButton.DialogResult = [System.Windows.Forms.DialogResult]::OK 
$form.AcceptButton = $OKButton 
$form.Controls.Add($OKButton)
    
    
$LinkLabel = New-Object System.Windows.Forms.LinkLabel 
$LinkLabel.Location = New-Object System.Drawing.Point(81,110) 
$LinkLabel.Size = New-Object System.Drawing.Size(280,20) 
$LinkLabel.Font = $font 
$LinkLabel.LinkColor = "BLUE" 
$LinkLabel.ActiveLinkColor = "RED" 
$LinkLabel.Text = "Ticketsystem" 
$LinkLabel.add_Click({[system.Diagnostics.Process]::start("https://service-Now.com/nav_to.do?uri=%2Fincident.do%3Fsys_id%3D-1%26sysparm_query%3Dactive%3Dtrue%26sysparm_stack%3Dincident_list.do%3Fsysparm_query%3Dactive%3Dtrue")}) 
$Form.Controls.Add($LinkLabel)
    
$software = New-Object System.Windows.Forms.Label $software.Location = New-Object System.Drawing.Point(10,50) $software.Size = New-Object System.Drawing.Size(280,20) $software.Font = $font $software.Text = "Adobe Connect: $((Get-WMIObject Win32_Product |  Where-Object {$_.Name -like 'Adobe Connect Application*'} |  Select-Object Version))" $software.Text = "Zoom: $((Get-WMIObject Win32_Product |  Where-Object {$_.Name -like 'Zoom*'} |  Select-Object Version))" $form.Controls.Add($software)
    
$help = New-Object System.Windows.Forms.Label 
$help.Location = New-Object System.Drawing.Point(10,110) 
$help.Font = $font 
$help.Size = New-Object System.Drawing.Size(280,20) 
$help.Text = "Help:" 
$form.Controls.Add($help)
    
$help2 = New-Object System.Windows.Forms.Label 
$help2.Location = New-Object System.Drawing.Point(10,130) 
$help2.Font = $font 
$help2.Size = New-Object System.Drawing.Size(280,20) 
$help2.Text = "Update From Software Center:" 
$form.Controls.Add($help) 
$form.Topmst = $true 
$form.ShowDialog()

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)