Skip to content

Instantly share code, notes, and snippets.

View gtalton's full-sized avatar

Gerald Talton gtalton

  • Kroll
  • Austin, TX
View GitHub Profile
@gtalton
gtalton / dumpCustomAttribsNNotes.ps1
Created November 4, 2015 14:30
vSphere PowerCLI 6.0 script to dump guest attributes and notes from multiple vCenters
$serverCSV = import-csv ".\vCenterServers.csv"
$outputFilename = “.\exported-attributes-value.csv”
Remove-Item $outputFilename
foreach($serverData in $serverCSV) {
Connect-VIserver -server $serverData.server -User $serverData.username -Password $serverData.passwd
@gtalton
gtalton / CiscoAnyConnectAutologin.vbs
Last active February 28, 2022 13:02
VBScript to automate logging into CiscoAnyConnect VPN automatically.
Option Explicit
'On Error Resume Next
Dim i, WshShell, argv, pingTarget, password
Set WshShell = WScript.CreateObject("WScript.Shell")
Set argv = WScript.Arguments
pingTarget = argv(0)
password = argv(1)