Get adcomputer properties serial number.
User Security Attributes - Win32 apps.
Get adcomputer properties serial number Summary: Use Windows PowerShell and the Active Directory module to get a listing of computers and IP addresses from Active Directory. csv as well - not required, but would be a bonus for my reports. To run these examples, replace <computer> with a computer identifier such as the SAM account name Add-WindowsCapability –online –Name “Rsat. Imaging if you had 100,000 users and wanted to return all properties, how much memory that would take up and how you would handle it manipulating it . To search effectively for computers in your Active Directory you should use the Filter switch. Thanks in advance. LocalComputerName : [MySystemName] Manufacturer : System manufacturer Model : System Product Name SerialNumber : System Serial Number CPU : AMD Phenom(tm) II X4 945 Processor SysDrive_Capacity_GB : 931. Using PowerShell and WMI to get the serial number of a computer. It Get-WMIObject Win32_Bios -ErrorAction Stop -Computername $computer. How can I get a list of all computers, the operating system version, the service pack, and the IP address from Active Directory? Use the Get-ADComputer cmdlet and specify the ipv4Address, OperatingSystem, and Get-ADComputer -Filter * -Properties * | Get-Member. $( echo COMPUTER:PC123;wmic /NODE: PC123 bios get serialnumber; echo COMPUTER:PC234;wmic /NODE: PC234 bios get serialnumber; echo COMPUTER:PC345;wmic /NODE: PC345 bios get serialnumber; ) *>&1 > 13 votes, 12 comments. If this is the case for your environment, you could pull the This Get-ADComputer cmdlet returns a default set of ADComputer property values. Name -like "SAO002*"} | Select -Property Name 2 Questions Is there a faster way to do this. Get-ComputerInfo cmdlet in PowerShell retrieves computer hardware information The above is of no use. Howdy All, I’m a long time reader, first time poster 🙂 The company I’m working for requires a script that does the following: Crawls through AD to find host names Using the AD hostname, find the age actual age of the PC or CPU or BIOS Find the serial number Pipe all the results into a Excel or HTML report Language has to be PS1 or vbs I’ve had a wee look online Get-ADComputer -Filter * -Properties * | Get-Member. In addition to naming properties for user objects, for example, objectGUID, objectSid, cn, distinguishedName, and so on, there are other security properties used for logon, network access, and access control. We track machines by an asset number, The following code works as expected, except I do not know how to pass the -computername parameter to the Get-MpComputerStatus command. SYNOPSIS Retrieves the Windows AutoPilot deployment details from one or more computers This works with serial number assuming the output is formatted exactly as you have displayed it in the comments. The cmdlet of choice for inventorying computers through AD is Get-ADComputer . Go to this article if you want to know how to install it. you could also say something like: "C:\folder\output. You can identify a computer by its distinguished name, GUID, security identifier (SID) or Security Accounts Manager (SAM) account name. Output Formatting – Once you’ve retrieved the desired computer objects, you can format the output to suit your requirements. The rest of the variables, such as Location, Device Name, Serial Number are returned correctly: The Set-ADComputer cmdlet modifies the properties of an Active Directory computer object. Get-ADComputer -Filter * | . Asking for help, clarification, or responding to other answers. I know i can use the below powershell script and simply inject a serial number one at a time but i would like to feed it a list of serial numbers and run throught the array and pull all the info it can. This command uses the Win32_BIOS class to get information about BIOS and a serial number using the `SerialNumber` property. From what I know, Serial number is not a part of the Get-Adcomputer cmdlet returned values. Name -ErrorAction There is a “serialNumber” but i don’t think its used by default. It does, however, bring in that 'VMware' string included. I need to be able to search Active Directory for computer names, buy I only have partial names. 3. This command automatically searches for computer objects throughout a domain, returning all sorts of info. It only appears to be retrieving information from users and computers that are in 2 or more groups. txt inside the current directory. 0” Get-ADComputer コマンドレットを使用すると、Active Directory 内のコンピューター オブジェクトを検索し、そこから情報を抽出で Get-ADComputer -Filter * -Properties Name, ipv4address, OperatingSystem, OperatingSystemVersion -SearchBase "DC=my,DC=domain,DC=com" -Server "my. My goal is to get a list of AD computer objects not following naming conventions with the whenCreated property. There’s more. Name | Foreach-Object {Get-CimInstance Win32_Bios -ComputerName $_ -ErrorAction SilentlyContinue | Select-Object @{n='Computername'; e={$_. so you can pull properties from each to really fine-tune your output. For my tests, CIM is faster. Note that is is normal for the resulting CSV file to not collect a Windows Product ID (PKID) value since this is not required to register a device. Only the serial number and hardware hash will be populated. You can use the Set-ADComputer cmdlet (from the PowerShell Active Directory module) to change the attributes of a computer account in This Get-ADComputer cmdlet returns a default set of ADComputer property values. Another way is using Get-CimInstance. # Get the list of all computer names and export to CSV file Get-ADComputer -Filter * | select Name | Export-Csv -Path 'C:\temp\computers. AD does have the following properties: Get-ADComputer -Filter * -Property * | Select-Object Name,Enabled,OperatingSystem,OperatingSystemServicePack,OperatingSystemVersion,DistinguishedName,CanonicalName,Modified | Export-CSV AllWindows. In a large organization, the System administrator has to continuously monitor inactive or stale objects in Version 3. txt" puts the names into a file called output. EDIT: I have found the following command but would like to turn it into a command i can enter into command prompt or powershell (&(objectcategory=computer)(description=19129)) EDIT2: Found it looked for ever and after making a post i finally find it. User Security Attributes - Win32 apps. The data are OS, Hard disk, RAM, CPU. How can I get the machine IP address only for several PCs using ForEach-Object in Powershell? 0. It will return the Malware status of the local pc, that is running the script, but not the AD pc's. how can I extract the list of computers from an OU with the following fields, type of operating system, the current logged in user and the previous logged in user and the time of those sessions, could you help me, the domain is no. 1. Use the below command to get the list of properties. Sure i remember using a wmic command to do this at some point but that needs run on the pc first to populate How to find, count and export computer information from the Active Directory Get-ADComputer in PowerShell. To get a list of the default set of properties of an ADComputer object, use the following command: Get-ADComputer<computer>| Get-Member Stack Overflow for Teams Where developers & technologists share private knowledge with coworkers; Advertising & Talent Reach devs & technologists worldwide about your product, service or employer brand; OverflowAI GenAI features for Teams; OverflowAPI Train & fine-tune LLMs; Labs The future of collective knowledge sharing; About the company We can get the description of Active Directory computers using the Get-AdComputer in PowerShell. later in the script is goes thru each pc and my OCD cannot permit I am trying to get the following information through Powershell on my AD: OS, OS Version, OS Architecture (32 or 64 bit), RAM, and space left on C Drive. Oh sorry, I thought he was trying to get the name as in the model, not the dns name. Get-ADComputer -Filter * -Property * | Format-Table Name,OperatingSystem,OperatingSystemServicePack,OperatingSystemVersion -Wrap Powershell - Get-ADComputer -properties memberof. com for support. Командлет Get-ADComputer позволяет вывести в результатах команды любые из свойств компьютера. Any Help? Get-ADComputer -filter 'name -like "wch-ret-*"' |select name | ForEach-Object{ Get-WmiObject -Class win32_ComputerSystem } here's a script I wrote that does a serial number lookup via WMI of all the servers in AD. csv This is a simple script which will capture a list of computers from Active Directory and subsequently pull the serial number using the Get-WMIObject CmdLet using the Win32_BIOS class. I want to query AD to retrieve a lost of physical & virtual servers. csv -NoTypeInformation -Encoding Logins may be showing incorrect profile information. This Get-ADComputer cmdlet returns a default set of ADComputer property values. Ah-HA! I did not run mine on a remote computer. domain. Como puede ver, la última fecha de inicio de sesión de esta computadora a la red se especifica en el atributo de la computadora LastLogonDate – 21/09/2015 0:20:17. Dear redditors, I'm struggling with a query. Don’t extract all computers and then search the result set. Computer Description Query. Gets one or more Active Directory computers. You could probably write a powershell script to grab the computer name and serial number and then use the computer name to grab the mac address. Windows can get your computer's serial number from the BIOS. I also needed to disable SAN to UPN mapping on all DCs, see link. txt" if you want the file to go The Get-AdComputer cmdlet in PowerShell is used to retrieve information about Active Directory computers. right now that code is Get-ADComputer -Filter {LastLogonTimeSta This command works on any Windows version to get you the serial number. The Get-ADComputer cmdlet gets a computer or performs a search to retrieve multiple computers. After the query is When I run it, the SN (Serial Number) section doesn't get any information from the computer, however, when I run the command "Get-WmiObject Win32_bios | fl SerialNumber" on my computer it works. This script uses WMI to retrieve properties needed by the Microsoft Store for Business to support Windows AutoPilot deployment. NOTES Version 1. Here is a PowerShell command to get the serial number of the computer. csv -NoTypeInformation. I would like to get the serial numbers of a list of computers. Note that it is normal for the resulting CSV file to not collect a Windows Product ID (PKID) value since this is not required to register a device. You can remotely populate Descriptions for all domain computers using Get-ADComputer and foreach loop. The original script requires the user to type in the full computer name. 1 Updated: 01-06-2018 - Replaced Get-WmiObject cmdlet with Get-CimInstance - Added Serial Number Information - Added Sound Device Information - Added Video Controller Information - I have this command to get all AD Computers that start with a certain naming scheme Get-ADComputer -Filter * | Where-Object {$_. The person who wrote the script is gone, and I am trying to modify it slightly. To retrieve additional properties use the -Properties parameter. PowerShell you can run Get-ComputerInfo on the computer(s) in question and that will return the serial number among other useful information. csv of computers in an OU along with the following: Computer Name; Serial Number; Model; username (current or last known if applicable) hardware (ram, storage, cpu) What I currently have seems to work except for the fact that I only get my PC's info several times in the . To get a list of the default set of properties of an ADComputer object, use the following command: Get-ADComputer<computer>| Get-Member Great! The Read-Host will prompt if this was run inside a script (. xx and this needed to be host/{{AAD_Device_ID}} see image. Except I'm not though: I'm iterating through an array of the DNs of the group members and each time only requesting 1 computer object (with the -ErrorAction SilentlyContinue switch to handle the scenario where the group contains not-just-computers). Edit: Problem solved, see below for updated function. If you use the property "Name" instead, you will get just the host name: PS C:\prog\PowerShell> Get-ADComputer -Filter * | Select -Expand Name 2008R2ESXI2 2008R2ESXI This script uses WMI to retrieve properties needed for a customer to register a device with Windows Autopilot. (This doesn't select only the Name property, as you seem to have thought. Son résultat est très intéressant puisqu’elle va permettre d’afficher une liste de tous les ordinateurs (et serveurs) intégrés Hi everyone I have a script that is going through our AD and sending an email with all of the computer objects that haven’t logged on in the last 90 days. I want to write a script to run againest AD and check what was last checkin time. Neither is it an Active Directory value. How can I get this sorted is it as simple as piping it to a sort command. Name -ErrorAction SilentlyContinue | Select-Object PSComputerName,SerialNumber } but I failed to get s specific serial number of one server only Hello all, i have a list of serial numbers and our laptop names have serial number in there. I have created a powershell script as follows: Powershell - get serial-number of android devices. Get-ADComputer -Filter * -Properties Name, OperatingSystem; 5. If you need further properties in Such a script will only update the current computer description attribute in AD. Or use Get-WmiObject. The -Filepath in the Out-File is the path and file name where you want to output the text to. NET get full property list for AD Computers (to match Powershell Get-ADComputer API) 0. 0. Tools~~~~0. csv” Also you To get the serial number of your computer open Windows PowerShell and run. This script uses WMI to retrieve properties needed for a customer to register a device with Windows Autopilot. To view the properties for an ADComputer object, see the following examples. \GetWindowsAutoPilotInfo. 0. is there any other way to get serial number To view the properties for an ADComputer object, see the following examples. com and the OU is Computers, that OU is the OU where the computers that joined the domain for the first time are. SYNOPSIS Retrieves the Windows AutoPilot deployment details from one or more computers Get-ADComputer ComputerName -Properties Description by default only a small number are returned is a performance thing. At this moment, I retrieve all the servers with the following query: => Get-ADComputer -Filter { OperatingSystem -like "server" -And Enabled -eq "True" } Now, I can detect if a physical is virtual or physical by querying the serialnumber. The Identity parameter specifies the Active Directory computer to modify. but in my environment the last logged on user gets written to the description along with the serial number/service tag. I am new to the company, and have been placed in charge of producing a new encryption solution for all end point devices. The PowerShell command Get-ADComputer is part of the Active Directory PowerShell module. on March 12, 2011. Use the code in my comment if you would like just the #s. Get-ADComputer -Filter * | Get-ADComputer -Filter {OperatingSystem -Like "Windows 7*"} -Property * | FT Name,OperatingSystem,OperatingSystemServicePack,OperatingSystemVersion -Wrap -auto. The Get-ADComputer cmdlet gets a computer or performs a Dear All, I would like to get the Active Directory computers detailed info using PowerShell. It might seem easier to use the GUI for searching rather than the command line, but that's not entirely true. PowerShell Active Directorymodule to be installed 2. This may be more information than you want, but this Powershell script is easy to modify. Get-ADComputer -Filter * -Properties Name,OperatingSystem,IPv4Address | Select-Object Name,OperatingSystem,IPv4Address. 00 OperatingSystem_Name : Microsoft Windows I don't know that you can get the exact build number from an AD object. Disclaimer – I took parts this from several different web sites and modified it to meet my needs. Use Get-ADComputer -Filter to search directly for improved Find local businesses, view maps and get driving directions in Google Maps. Basically we use the computer serial number and add 3 letters to the front of it, to give us the hostname. for example serialnumber is 3WETYU7 laptop name is MD3WETYU7. Is it possible to display CPU details like core count and processor name using the Get -ADComputer command? or do i use another command to do the same, what im using now Get-ADComputer -Filter To get the serial number of the computer in PowerShell, use the `Get-WmiObject` command. What serial numbers are you referring to? Is it the serial of the motherboard/chassis or are you asking for software licensing based on the mac address? Spiceworks is a great tool. (Source: Russell Smith) Retrieving the Serial Number from a Remote Computer. (using serial number, make, and model). Reply More posts you may like. e. RESOLVED! -> Turns out the client certificate was using a SAN UPN Value of {{AAD_Device_ID}}@domain. To run these examples, replace <computer> with a computer identifier such as the SAM account name of your local computer. Please email psgadmin at microsoft. The command to get computer multiple properties like manufacturer, BIOS info, etc. DESCRIPTION. I need a powershell script that I can feed a list of IP addresses from a text file, and will return the serial number, host name, OS, and IP address in separate columns. To Tried to use this command on DC with no luck, (Get-ADComputer -Filter *). Most of the time when you want to retrieve computers from the Active Directory you want to narrow down the search base on OU. I wrote the following script, but it isn’t pulling the computers i As the title states, I am trying to determine every computer model used in our domain. El cmdlet This cmdlet retrieves a default set of computer object properties. I am having trouble getting a list of serial numbers to work with the “get-adcomputer” command. Get-ADComputer -Filter {Description -Like Logins may be showing incorrect profile information. Then look it up on manufacturer's site. dsquery computer "OU=IT,DC=contoso,DC=com" -o rdn. If you have a laptop, flip it over. I am trying to export out a HTML file using the following PowerShell function: comp1 Serial number xxxxxxxxxx / user1 / ect. Not sure if that’s a ‘your’ network things, I can not replicate it. If I can get a command that combines basic AD computer properties & at least serial number, I would greatly appreciate it. com" | Format-Table Name, OperatingSystem, ipv4* Powershell: Get number of computers connected to Active Directory by OS. COMPUTERNAME -Properties * |Convert-ADValues Subject, Serial Number, Date Get-ADComputer is basically a search cmdlet. Get a computer name, and run this command to see all the values you can return : Get-adcomputer Computer-Name -properties * If you use Spiceworks, you can have a CSV list of all the Computers and No, unless you've set a custom attribute for it, but otherwise no. I got all servers serial numbers using the below command: Get-ADComputer -Filter * | Select-Object Name | Foreach-Object { Get-CimInstance Win32_Bios -ComputerName $_. is the Get-ComputerInfo cmdlet in PowerShell. Windows Commands, Batch files, Command prompt and PowerShell. ps1 -OutputFile . In a large organization, as a system administrator, it’s very important to have information about users, computers, and other objects in the active directory. 79 SysDrive_FreeSpace_Pct : 80 RAM_GB : 8. Thanks for contributing an answer to Stack Overflow! Please be sure to answer the question. Como puede ver, la última fecha de inicio de sesión de esta computadora a la red se especifica en el atributo de la computadora LastLogonDate - 21/09/2015 Version 3. SYNOPSIS Retrieves the Windows AutoPilot deployment details from one or more computers . You can also set the parameter to a computer object variable, Hi Everyone, I’ve been working all day on this and probably wasting a lot of time. To get the serial number from the BIOS, query a specific class in the WMI namespace. PowerShell: Changing Computer Attribute Values with Set-ADComputer. My goal is to Try the command below, it should work: Get-ADComputer -Filter *| Select-Object Name | Foreach-Object {Get-CimInstance Win32_Bios -ComputerName $_. ActiveDirectory. 6. On the command line, I USUALLY find that it I have used Get-WmiObject Win32_ComputerSystem | Select Manufacturer,Model to get get the info from my own computer, but if I am able to get it exported into the . We can get a description of the active directory computers using the Active after that I copied the List and modified it to run the following script to get the Serial number of every computer. To list all computers with a specific operating system, use the following command: Get-ADComputer -Filter {OperatingSystem -like To view the properties for an ADComputer object, see the following examples. The script should export data of all computer to csv. You can also set the parameter to a computer object variable, My goals were to write something that I could use every day which would take the output of Get-ADUser, Get-ADComputer and other Get-AD* cmdlets within the ActiveDirectory module and convert the data to strings which would properly output to Export-CSV. To use the Get-AdComputer cmdlet, your system needs to have the following requirement: 1. Yes, searching with Active Directory Users and Computers or Active Get-ADComputer -Filter * -Properties Name, OperatingSystem, LastLogonDate This command is particularly useful for system inventory purposes, allowing you to gain insights into the operating systems running on your network. Reply Use WMI to get make, model and serial number. The Identity parameter specifies the Active Directory computer to retrieve. List of AD names and login names. . For example, you can display specific properties of the computer objects, sort them, or export them to a file for further analysis. Property values that are not associated with cmdlet parameters can be modified by using the Add, Replace, Clear, and Remove parameters. Get-WmiObject-Class Win32_BIOS-Filter 'SerialNumber="SN"' | Select -Property PSComputerName If you don't see a serial number after running the wmic command — or if you just can't turn the PC on or don't have access to it — there are several other places you might find the serial number:. Get-ADComputer -filter * -Properties * | Select Name, OperatingSystem. ps1) file, but manually setting the OU works too. SYNOPSIS; DESCRIPTION; SYNTAX; EXAMPLES; SYNOPSIS. Bonjour, J'ai trouvé cette petite information ci-dessous sur la recherche du numéro de série d'un ordinateur, puis sur son If you need to find the serial number for your computer or laptop, you do not need to look in the documentation or the manufacturer's label on the case/motherboard. Hi! We have a script in our environment that sets RDP options on a remote machine, among other things. AD computer has Description property. 5: Added logic to display the serial number of the gathered device. I am trying to use the Get-ADComputer and Get-ADUser to retrieve the memberOf from Active-Directory of all the users and computers. But it’s much more convenient to 今回はGet-ADComputerコマンドレットを使用して、 Active Directoryに参加しているコンピューターを取得する方法について説明します。 Get-ADComputerコマンドレットはActiveDirectoryモジュー 情報を取得する場合はPropertiesパラメーターに取得したい情報をカ To 65td: Your link provided me with some PowerShell commands, but it looks as though I need to know the HostName of the computer before I can retrieve the serial number, as in: Get-WMIObject -Class Win32_BIOS -ComputerName DomCon1 | Format-List SerialNumber The above command provided me only with the serial number of DomCon1 The -Property Name parameter is unnecessary, as Get-ADComputer always retrieves the Name property. List of serial numbers Hello Simone, The approach you are using is correct for a custom command, business rule or scheduled task configured for the Computer object type. You could as suggested above, get-adcomputer, then loop the list issuing a remote wmi bios serial request as above and then output the names that match, or Как вы видите, время последнего входа данного компьютера в сеть указано в атрибуте компьютера LastLogonDate – 6/2/2022 3:59:30 AM. Eric. However, as per our check, the serialNumber property is not populated in TABLE OF CONTENTS. \MyComputers Version 3. wmic bios get /? 32 comments add one. "output. This Get-ADComputer cmdlet returns a default set of ADComputer property values. If you omit the -o switch with the rdn value, you receive a list of Distinguished Names. 41 SysDrive_FreeSpace_GB : 742. This is what I have (took some digging to learn that I have to use -Properties (???) to get the OperatingSystem object - something on it’s own I’m totally not comprehending. ) Rather than -Property Name, append | Select-Object -ExpandProperty Name to your Get-ADComputer command line. With free export script This is a simple script which will capture a list of computers from Active Directory and subsequently pull the serial number using the Get-WMIObject CmdLet using the Get-ADComputer. Windows xp does not have wmic. To retrieve additional ADComputer properties, use the Properties parameter of this cmdlet. After this change to the SCEP profile and with an updated client certificate, secure mapping started to work, and I also Here's some output from Get-ADComputer piped to Get-Member, which shows all the properties: AD is running on 2008 R2 controllers, functional level 2003 R2. Get-ADComputer -Filter * -Properties LastLogon | Select-Object Name, @{Name='LastLogon Get-ADComputer -identity la-computer-22 -properties * Get ADComputer SearchBase. Get a specific computer showing all the properties: PS C:\> Get-ADComputer "Server64" -Properties * Get all computer accounts: PS C:\> Get-ADComputer -Filter * PowerShell Get-AdComputer cmdlet in the active directory gets one or more active directory computer accounts using search criteria. so some of that info is no I am very new to Powershell and am having an issue when using the Get-ADUser and GetADComputer cmdlets. Powershell List of Computers. DS-LDS. The Get-AdComputer command has a LastLogon attribute, which stores the date and time of the computer’s last successful logon to a domain controller. The result would be a list of computer names. Then when that's built the array of the computers which are a member of the group it filters them down. That works, but typing in the full name should not be necessary. Alternatively to filter it in the initial Get-ADComputer command you could do it like this, which is any Computer object that doesn’t have anything for the PasswordLastSet attribute: Get-ADComputer -Properties PasswordLastSet -Filter {PasswordLastSet -notlike "*"} I had thought that at first, but I get no results back if I try it like that. Trouble retrieving Active Directory computer description. 2. I am just to new to figure this out timely. To run these examples, replace <computer> with a computer identifier such as the SAM account name Above I selected the property "DNSHostName". Okay, so I’d do this one of two ways depending on the environment and what you’re comfortable with. Provide details and share your research! But avoid . PSComputerName}},SerialNumber} The wmic command retrieves the serial Number property from the BIOS class of WMI for the Get All Computers with all properties get-adcomputer -filter * -properties * This command will get all computers and all of the computer properties (attributes). You can modify commonly used property values by using the cmdlet parameters. Users with administrator access or have enough access to read Active Directory information Tip: To know about which PowerShell modulesare available in the system, run th You can use the Get-ADComputer PowerShell cmdlet to get various information about computer account objects (servers and This script will query for our computer’s serial number (or service tag) and will also grab the unique ID associated with an attached monitor. Examples. i. Name | Foreach-Object {Get-CimInstance Win32_Bios -ComputerName $_ -ErrorAction SilentlyContinue | Select-Object PSComputerName,SerialNumber} | Out-GridView Hinweis PowerShell muss natürlich mit Administrator – Rechten gestartet werden, um auf alle Domänen Computer zugreifen zu können. ≡ Menu. PowerShell Get Computer Info: A Quick Guide. . By I am trying to get something working that will give me a . Name | Select-Object SerialNumber, Name | Export-CSV “C:\users\me\desktop\listofpcs. How to find computer object OU from server itself using CMD. (Get-ADComputer -Filter *). I’ve figured out how to find each of these specifications on my own, however, getting them into a clean format has been So I’m trying to get a list of computers from different OU’s (prompts user for input) and so I’m just trying to see the results I’d want I’m disappointed to see Get-ADComputer lack so many properties. The purpose of this PowerShell script is to query the user for a partial name of a pre-existing computer on the domain. Get-adcomputer -Properties whenCreated -filter * | sort-object createtime | Export-Csv -Path c:\folder_path\filename. It has an operating system name, and version attribute. To run these examples, replace <computer> with a computer identifier such as the SAM account name Here is what I use for Dell Workstations. csv thoughts? Lots of helpful solutions here already, but to directly answer your question of why there is no output from the second statement, which returns the serial number: the code creates two objects with different sets of properties, and Format-Table only displays properties from the first object that it encounters. thank you for visiting my first question on this website. asmgrhcdbfgbnehkhacxtiyykbezcumtudnuahobjsoenkwxqhjhfvytwxjkvfv