dimanche 29 mars 2015

differentiate between linux and windows machine with powershell

I am running hyperV server which has many Linux and Windows virtual machines. I want to write powershell script which will give me list of windows machines.


command "Get-VM" gives list of all virtual machines.


I have done some research to differentiate between Linux and Windows machines, where i found, windows machines returns version of Operating system where Linux don't do the same. This is not very efficient, anyone knows any other way to do it.


Aucun commentaire:

Enregistrer un commentaire