In addition to Weibo, there is also WeChat
Please pay attention

WeChat public account
Shulou
2025-11-09 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
$Date= (Get-Date) .ToString ("yyyyMMdd") Write-Output ("computer name, MAC address, user, Motherboard Model, CPU, physical memory (GB), operating system IP ") | `Out-File-FilePath C:\ LDM-PC$Date.csv-Encoding UTF8 $LDM_PC= (Get-ADComputer-Filter * | Where-Object {$_ .Name-like" lmpc* "- or $_ .Name-like" lmlap* "}) .Name | Sort-ObjectForEach ($PC_Info in $LDM_PC) {IF ((Test-Connection-ComputerName $PC_Info-Count 1-ErrorAction SilentlyContinue). Statuscode-eq 0) {$ComObject=Get-WmiObject-ComputerName $PC_Info -Class Win32_ComputerSystem $Name=$ComObject.Name $UserName=$ComObject.UserName $FullName= (Get-WmiObject Win32_UserAccount | Where-Object {$_ .Caption-eq $UserName}). FullName $Memory= "{0:N0}"-f ($ComObject.TotalPhysicalMemory/1GB) $NetObject=Get-WmiObject-ComputerName $PC_Info-Class Win32_NetWorkAdapterConfiguration-Filter "IPEnabled='True'" $MACAddress=$NetObject.MACAddress-replace ":" "-" $IPAddress=$NetObject.IPAddress-like "*. *" $ProObject=Get-WmiObject-ComputerName $PC_Info-Class Win32_Processor $CPU=$ProObject.Name $OpeObject=Get-WmiObject-ComputerName $PC_Info-Class Win32_OperatingSystem $OpeName=$OpeObject.Caption $BasObject=Get-WmiObject-ComputerName $PC_Info-Class Win32_BaseBoard $BaseModel=$BasObject. Product $SerialNumber=$BasObject.SerialNumber if ($BaseModel-eq "0T1D10") {$BaseModel= "Dell Vostro3800 (large chassis)} # Note the space if ($BaseModel-eq" 0RYP79 ") {$BaseModel=" Dell Vostro 3267 (small chassis)} if ($BaseModel-eq "0JP3NX") {$BaseModel= "Dell OptiPlex 3050 Micro"} if ($BaseModel-eq) "0GG04X") {$BaseModel= "Dell OptiPlex 3050 SFF (large chassis)} if ($BaseModel-eq" B250M-D3H-CF ") {$BaseModel=" gigabyte B250M-D3H-CF "} if ($BaseModel-eq" MS-H110D4L FS M.2 ") {$BaseModel=" inscription MS-H110D4L FS M.2 "} if ($BaseModel-eq" B150M-ET SERIES ") {$BaseModel=" Asustek B150M-ET SERIES "} If ($BaseModel-eq "B85M-F") {$BaseModel= "Asustek B85M-F"} if ($BaseModel-eq "B85M-D2V-SI") {$BaseModel= "gigabyte B85M-D2V-SI"} if ($BaseModel-eq "H81M-DS2") {$BaseModel= "gigabyte H81M-DS2"} if ($BaseModel-eq "C.H81M PRO") {$BaseModel= "seven rainbows C.H81M PRO"} If ($BaseModel-eq "C.B75K") {$BaseModel= "Seven Rainbow C.B75K"} if ($BaseModel-eq "MS-H81IL FS") {$BaseModel= "inscription MS-H81IL FS"} if ($BaseModel-eq "H81M-VG4 R2.0") {$BaseModel= "Ascot H81M-VG4 R2.0"} if ($SerialNumber-eq "/ 4MP1KL2/CNPE10078C05EZ/") {$FullName= "Conference Room 1 "} if ($SerialNumber-eq" / 4MK1KL2/CNPE10078B06OX/ ") {$FullName=" Conference Room 2 "} if ($SerialNumber-eq" / 4MD3KL2/CNPE1007860LI5/ ") {$FullName=" Conference Room 3 "} Write-Output (" `"$Name`") `"$MACAddress`",` "$FullName`", `"$BaseModel`",` "$CPU`", `"$Memory`",` "$OpeName`", `"$IPAddress`") | Out-File-FilePath C:\ LDM-PC$Date.csv-Append-Encoding UTF8}}
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope





About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.