You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I am stuck in my powershell script. Please help me to solve below problem,
I can get all available VM details from vCenter servers using Get-VM -Server vCentername1,2,3, ...
Input: Import-Csv -Path ".\VMFindinglist.csv"
But i want to import-csv file as input, my VMFindinglist.csv file contains two values 1.VMname 2.vCenterName.
Output: Export-csv file and how to find the presence of existing snapshot, presence of RDM, Presence of passthrough device.
Thanks In Advance!
My script is here, Please give me a solution for this. @powercode
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi, I am stuck in my powershell script. Please help me to solve below problem,
I can get all available VM details from vCenter servers using Get-VM -Server vCentername1,2,3, ...
Input: Import-Csv -Path ".\VMFindinglist.csv"
But i want to import-csv file as input, my VMFindinglist.csv file contains two values 1.VMname 2.vCenterName.
Output: Export-csv file and how to find the presence of existing snapshot, presence of RDM, Presence of passthrough device.
Thanks In Advance!
My script is here, Please give me a solution for this. @powercode
`$Date = (Get-Date -f "dd-MM-yyyy")
$vCenterList = 'UK vcenter01','US vcenter01'
$crd = Get-Credential User1
foreach($VIServers in $vCenterList)
{
Connect-VIServer -Server $vCenterList -Credential $crd
$VMs = Get-VM -Server $vCenterList
foreach ($vm in $VMs)
{
$vmDetails = @(
[PSCustomObject]@{
}
}`
Beta Was this translation helpful? Give feedback.
All reactions