Working to get system information in the Batcave. I wanted to create a way to gather system information as part of log file when working with application installations and troubleshooting systems. $CurrDate = $(Get-Date) $CompName = $Env:COMPUTERNAME $IPAddress = ([System.Net.Dns]::GetHostByName($Inputmachine).AddressList[0]).IpAddressToString $IPMAC = Get-WmiObject -Class Win32_NetworkAdapterConfiguration -ComputerName $CompName $MACAddress = ($IPMAC | Where-Object { $_.IpAddress -eq…
Read more