Quantcast
Channel: VMware Communities : Document List - vSphere PowerCLI
Viewing all articles
Browse latest Browse all 379

VM Service Report v1.0

$
0
0

This Script is to determine what services are running on what vm's in a VI organization

 

This is very handy when you have many vm's running all types of services - and can point out a rogue service you may not want to have in your VM's

 

 

This script will require:

 

 

An administrator account to remote servers that are in the VI as WMI is used to obtain information.

 

 

Powershell and MS Excel.

 

 

I get a list of services from each vm and output these along with the VM (IP information and vmnetwork for NICS.)

 

 

There is a list of services that are excluded by default, this can be disabled if needbe, thus allowing you to get a better view of what services are installed and running on the vm's.

 

 

I use WMI to obtain information from the servers - for this to work correctly you need to have administrator access to all of the servers and for the script to be run under this account and the servers need to have WMI/RPC running.

 

 

So some webservers etc. may not show any services as the app can't talk to them (in some ways if it can it may be a security problem)

 

 

In my environment I run this script under an account that is the Enterprise Admin in the root domain for the Active Directory. Or any account that has administrator access on all of the servers.

 

 

The description is obtained as well as the status of each service to further assist the user to determine what a service is.

 

 

Future versions will:

 

 

  • Create seperate excel sheets for each ESX server - The vm's will then be displayed on those sheets as well as one consolidated sheet.

  • ESX services will be displayed on each sheet.

  • A port Scan will be completed on the ESX server as well as each vm - thus giving a full idea of what ports are open on the vm's

 


Viewing all articles
Browse latest Browse all 379

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>