Hmm. There's a script node labelled "Connect", but it doesn't do anything, per se. I was going to make it work but ran out of time. Here's the script. Not sure where exactly they were going with this, but I'm sure it's very clever. :smileyhappy: My brain is already in vacation mode so I won't bother spending cycles on this. I expect to come back from vacation to find you guys have it all figured out. :smileygrin:
# Display a list of available connections
$cnfPath = "$($env:USERPROFILE)\Local Settings\Application Data\Quest Software\PowerGUI\Quest.PowerGUI.VMware.Config.xml"
$connections = @{}
if ( -not (Test-Path -Path $cnfPath)) {
$default = New-Object -TypeName System.Management.Automation.PSObject
$default.PSObject.TypeNames[0] = "$($default.PSObject.TypeNames[0])#VMwareConnection"
$default `
| Add-Member -Name Server -MemberType NoteProperty -Value "MyServer" -PassThru `
| Add-Member -Name Port -MemberType NoteProperty -Value "443" -PassThru `
| Add-Member -Name Username -MemberType NoteProperty -Value "user" -PassThru `
| Add-Member -Name Protocol -MemberType NoteProperty -Value "HTTPS"
$connections[http://$default.Server|http://$default.Server]=$default
$connections | Export-Clixml -Path $cnfPath
}
$connections = Import-Clixml -Path $cnfPath
$connections | ForEach-Object { $_.Values }
Hal Rottenberg
Co-Host, PowerScripting Podcast (http://powerscripting.net)