sferguson524
Pattern Altitude
I am looking to convert this powerCLI script to orchestrator.. Totally stuck.
#Set Variables
$credential=Get-Credential
$vcenter=Read-Host "Please enter the name of your vCenter Server"
#login to vCenter
Connect-VIServer $vcenter -user $credential.UserName -Password $credential.GetNetworkCredential().password
# Get Snapshots - Exporting to CSV
Get-VM | Get-Snapshot | Select VM,Name,Description,@{Label="Size";Expression={"{0:N2} GB" -f ($_.SizeGB)}},Created | Export-Csv c:\powershell\$vcenter.csv -NoTypeInformation
any suggestions?
#Set Variables
$credential=Get-Credential
$vcenter=Read-Host "Please enter the name of your vCenter Server"
#login to vCenter
Connect-VIServer $vcenter -user $credential.UserName -Password $credential.GetNetworkCredential().password
# Get Snapshots - Exporting to CSV
Get-VM | Get-Snapshot | Select VM,Name,Description,@{Label="Size";Expression={"{0:N2} GB" -f ($_.SizeGB)}},Created | Export-Csv c:\powershell\$vcenter.csv -NoTypeInformation
any suggestions?