i have orchestrator with service manager installed . now i want to give facility to my developers to get checkpoint information about respective VMs (particular) from SMportal so that they can revert to specific checkpoint if they want.
below powershell script is giving me checkpoint info for entire environment -
$vmcheck = Get-VM | where { $_.LastRestoredVMCheckpoint -like "* *" }
[string]$body = "n"
$body += "<tr><td></td><td>CheckPoint</td><td>Location</td></tr>
n"
foreach ($vm in $vmcheck) {
$body += ("{0}{1}{2}n" -f ($vm.name, $vm.LastRestoredVMCheckPoint, $vm.CheckPointLocation))
}
$body += "</table>
n"
can i use above script for my particular VM ?