Hello All,
I need power shell script to validate entire server information to extract data stored in .xls, .html format.
Need to extract complete details in that server exist example : All folders names and sizes and drives ,Com components if it register in that server et.
All server information extract in the single file .
Mohammad HussainPosted Aug 29, 2023, 7:54 AM
Abhishek YadavPosted Aug 29, 2023, 6:16 AM
Here's a PowerShell script that validates the entire server information and extracts data stored in .xls and .html formats.
Make sure to update the
$serverName,$xlsOutputPath, and$htmlOutputPathvariables with your desired server name and output file paths.Please modify the data extraction sections (
# Modify this section according to your requirements to extract the specific data) of the script to extract the specific data you want from the .xls and .html files. The current script just reads the entire file content and adds it to the output.Also, update the file paths in the
Get-ChildItemcommands to match the actual file paths on the server where the .xls and .html files are located.Note: The script assumes that you have appropriate permissions and access rights to the server and the file locations.