About Me

My photo
HANUMANGARH, RAJASTHAN, India
Showing posts with label Application info. Show all posts
Showing posts with label Application info. Show all posts

Tuesday, 21 July 2020

Fetch Disk information with size and host informatuon in csv file

The code is:   #Get the server list
$servers = Get-Content D:\server1.txt
#Run the commands for each server in the list
$infoColl = @()

Tuesday, 14 July 2020

Get Vcentre Install State

Get the vmdk size via script..


Add-PSSnapin VMware.VimAutomation.Core

Set-PowerCLIConfiguration -InvalidCertificateAction ignore -Confirm:$False

 

#Connect to the VCenter server

 

Extract Disk Info from Remote host

 # Define the remote hostname or IP address $remoteHost = Get-Content "C:\temp\RemoteServer.txt" # Define the output CSV file path...