About Me

My photo
HANUMANGARH, RAJASTHAN, India

Thursday, 23 July 2020

Get Multiple NSLOOKUP status in powershell

$servers = get-content C:\Users\sunil\Desktop\allservers.txt
foreach ($Server in $Servers)
{

Wednesday, 22 July 2020

How to know running vcentre us appliance or windows server.

Use below two command in powershell to determine running on Appliance or Window 

$server = Connect-VIServer -Server 192.168.x.x

$Server.ExtensionData.Content.about

It will tell in OS Type, if it is Linux-64, yes it definitely appliance. If not, yes Window 👍

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...