#Useful to find vm if its disconnected somehow and don't know where vm is present
$dstore=Get-Datastore
clear
foreach($dss in $dstore)
{
write-host $dss.Name
Get-ChildItem -Path vmstore:\"UK Datacenter"\$dss |Select-String -Pattern "tech-jockey-vm1"
}
$dstore=Get-Datastore
clear
foreach($dss in $dstore)
{
write-host $dss.Name
Get-ChildItem -Path vmstore:\"UK Datacenter"\$dss |Select-String -Pattern "tech-jockey-vm1"
}
No comments:
Post a Comment
Thanks for showing interest in tech-jockey.