我正在编写一个从 get-aduser 中提取多个客户详细信息的程序
我抓住的一个属性是 get-aduser.phonenumber
我将数字正确显示到链接标签。
我的问题是如何获得拨号到机器上默认 voip 程序的链接。
$ADUser = get-aduser $user -properties *
$script:PhoneNumber= $ADuser.PhoneNumber
$PhoneLabel = New-Object System.Windows.Forms.LinkLabel
$PhoneLabel.Location = New-Object System.Drawing.Size(795,100)
$PhoneLabel.Size = New-Object System.Drawing.Size(300,20)
$PhoneLabel.LinkColor = "Blue"
$PhoneLabel.ActiveLinkColor = "RED"
$PhoneLabel.Text = ''
$Form.Controls.Add($PhoneLabel)
$PhoneLabel.text = $script:PhoneNumber
$PhoneLabel.add_Click({DialPhone})
function DialPhone
{
# and im totaly lost at this point???????
}
任何帮助将不胜感激。