About Me

My photo
HANUMANGARH, RAJASTHAN, India
Showing posts with label CPU Info. Show all posts
Showing posts with label CPU 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 = @()

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