Loading |
VBScript |
JavaScript |
Powershell |
Search Options: Write Computer Configuration Information to an HTML FileContent of Write Computer Configuration Information to an HTML File.ps1MD5 Hash: F43D6A52683A535F74EAD093F4D82238 |
||
$body = $null
$computer = "localhost" $System = Get-WmiObject -Class win32_computersystem -ComputerName $computer $processor = Get-WmiObject -Class win32_processor -ComputerName $computer $video = Get-WmiObject -Class win32_videocontroller -ComputerName $computer $disk = [wmi]"\\$computer\root\cimv2:win32_logicaldisk.deviceID='c:'" $body += "Processor speed " + $processor.CurrentClockSpeed + " " $body += "Video ram (meg): " + $video[0].AdapterRAM/1mb + " " $body += "Free disk space(gig): " + $disk.FreeSpace/1gb + " " $body += "Make: " + $system.Manufacturer + " " $body += "Model: " + $system.Model + " " $body += "Ram(meg): " + [int]$system.TotalPhysicalMemory/1mb $head = "" $head += " System report for $computer" ConvertTo-Html -body $body -Head $head| Out-File -FilePath "C:\fso\$computer.html" | ||
© 2008 - 2013 Boris Toll :: Scripts available: 6.481 :: :: scriptbox.toll.at :: :: powered by www.toll.at :: |