![]() Brands like Dell, HP, etc., make dedicated docking stations for laptops so that every user who needs a PC’s mainstream ports can get them even on the laptops. It adds a lot of usability and flexibility to a laptop. What is a Docking Station?Ī docking station is a hub of external ports often missing from a laptop due to its mobile nature. If true for you, this troubleshooting guide will help resolve the issue. ::ASCII.Are you facing connection issues with the Dell docking station on your laptop or desktop? "Monitor Information" | Out-File -Append -FilePath c:\temp\asset.txt Get-CimInstance -Namespace "root/Surface" -Class "SurfaceDockComponent" | Where-Object ComponentName -like Microcontroller | Format-List DeviceName,DockSerialNumber,Version | Out-File -Append -FilePath c:\temp\asset.txt "Surface Dock Information" | Out-File -Append -FilePath c:\temp\asset.txt Get-ciminstance win32_bios | format-list serialnumber, Manufacture | Out-File -Append -FilePath c:\temp\asset.txt "Computer Serial Number" | Out-File -Append -FilePath c:\temp\asset.txt Wmic csproduct get name | Out-File -Append -FilePath c:\temp\asset.txt "Computer Model" | Out-File -Append -FilePath c:\temp\asset.txt Hostname | Out-File -Append -FilePath c:\temp\asset.txt Whoami | Out-File -Append -FilePath c:\temp\asset.txt $Subject = Read-Host -Prompt 'Enter the users who Inventory this is For' $EmailFrom = Read-Host -Prompt 'Input Your Email Address' ![]() You can also down the script from my Github site. Hopefully, this will help someone else facing this challenge. If you are logged on as the user, it will also collect that information. The script will run and prompt you for an email address and the Person who the asset inventory is for. Get-CimInstance Win32_PnPEntity | where name -match 'Lenovo 500 RGB Camera' | Format-List Name | Out-File -Append -FilePath c:\temp\asset.txt "WebCam Information" | Out-File -Append -FilePath c:\temp\asset.txt In the Example below, you will need to Modify the name to the webcam that you currently have installed in your environment. (Note the Surface Dock 1, does not expose its serial number to WMI. The script is set to look for a certain model for Webcams and for Docking stations. ![]() ![]() If you are looking to grab system serial numbers in a very easy way and get away from writing them down, this is the way. The only flaw I have found in the script, is Dell does a poor job of putting the serial number into the monitor firmware, meaning you do not always get the entire serial number, but otherwise it works great. With that knowledge and borrowing from some other scripts, I came up with a script that will collect the information and email the information to you. I did some googling and discovered that using WMI you can obtain the model number and serial number for the Computer, Monitors, docking station and webcam. Someone made a comment of how difficult this was and impossible to collect and it irritated me enough that I thought I should automate it. In the past it was very manually as in you had to write down the serial numbers for the computer and monitors and then update the asset inventory system (yes automated systems exist, but that is not something we currently have. Recently, we rolled out new computers and one of the challenges is collecting asset inventory. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |