Simply get computer name with serial number

Hi All,
I use the script below to get serial number, but I have no idea how to get the computer name in the meantime.
Pls point me.
$File = [System.IO.File]::OpenText("d:\111.txt")
 while($Machine = $GuyFile.ReadLine())
{Get-WmiObject -computername $Machine win32_SystemEnclosure }
$GuyFile.Close()

Hello Andrejs,
Try this, May be the formatting would be little off.. but you shud get the results.
function Get-ServerInfo {
PROCESS {
$computername = $_
$data = Get-WmiObject -class Win32_logicalDisk -ComputerName localhost | Select PSComputerName, DeviceID,@{n='Size(GB)';e={$_.size / 1gb -as [int]}},@{n='Free(GB)';e={$_.Freespace / 1gb -as [int]}}
$bios = Get-WMIObject -Class Win32_BIOS
$value = $data + $bios
$value | select PSComputerName, DeviceID,SerialNumber,'Size(GB)','Free(GB)'
Get-Content c:\servers.txt | Get-ServerInfo | Format-Table -auto
It generates, computername, Drives , Size of drives, free space (in GB), serial number
put your server list in c:\servers.txt
Regards,
Venu
Venu

Similar Messages

  • Automating computer name with Serial appended?

    I have  questions and please bear with me if I'm asking the wrong question or seem ignorant -- I'm not that familiar with Windows 7 imaging and wim files yet.
    Question: How can I automate the naming of the computer I'm imaging by calling it something like "PHX-LP-" with serial number (dell service tag)? I know how to retrieve service tag via Powershell. So I'd want the computer to be named something like: PHX-LP-1Y78B6
    (where 1Y78B6 is the service tag of the Dell). I believe this value is obtained from Get-WmiObject -class win32_bios.
    I already created and captured an image using sysprep then imagex with WAIK and IMAGEX booting off USB.
    To apply the image I boot off the WinPE 3 USB and then run a batch script that diskpart's and applies and makes bootable. 
    Do I need to mount the wim file and edit the  startnet.cmd to run special commands?
    If I need to use an answer file, does that mean I need to re-capture my build? Or can I have an answer file for WinPE
    that does this, and doesn't alter the answer file I used with sysprep when I initially was sysprepping/capturing the image? 

    I used vbs script that assigned names based on single pass scheduled mapping NAME to MAC address. This scheduled task was triggered at the first logon. This script included restart that is neccessary to fix new name. Script read data file containing two
    columns, MAC address in the first comlumn and name in the second.
    Regards
    Milos
    So did you add this scrip to like the SetupComplete.cmd in windows\setup\scripts? 
    Or you put a shortcut to the vbscript somewhere in Windows like the startup folder? 
    I could think of a way to manually do it with powershell, I just wasn't sure if I absolutely need to get WDS/MDT/ConfigMgr to do this type of thing.
    I think something like:
    $comp=gwmi win32_bios
    $servicetag=$comp.SerialNumber
    Then name computer some how based on "PHX-LP-" & $servicetag ?
    Not sure if I can name and join domain with 1 reboot, though. I know I can manually through the Network ID wizard GUI

  • Got CS2 To Install but now getting notified that "user name, organization name  or serial number is missing or invalid."

    After much frustration, got CS2 installed to replace my now-unsupported CS1. Went to open Adobe Photoshop and got your Adobe Photoshop user name, organization name or serial number is missing or invalid.

    First, Ganesh, your response isn't helpful because that link just explains why I had to download CS2 in the first place. Your response is the same that I got through repeated interactions with Adobe support personnel. If you're not going to provide a solution, then do not reply at all.
    Second, GautamBehl, that doesn't explain why I was getting the notification when I tried to open Photoshop after successfully installing the CS2. Perhaps I should have been clear and explained that I was installing the "3 disc" CS2 design suite.
    Here's the workaround I discovered. I downloaded Photoshop CS2 separately and had no problem. I would suspect that doing likewise with the other programs would get a similar result. I would expect that Adobe would fix the problem with the CS2 suite of programs, but according to my ineractions with Adobe support, are more interested in trying to sell recent software to users that they have just frustrated.

  • Good afternoon.I have a computer with W Vista 8, Windows office home and business 2013. I recently tried to install Photoshop Elements by CD with serial number but on the desktop appears the following message: error 1 (configuration problem) try to uninst

    What's error 1 in adobe photoshop elements configuration? I have a computer with W Vista 8, Windows office home and business 2013. I recently tried to install Photoshop Elements by CD with serial number but on the desktop appears the following message: error 1 (configuration problem) try to uninstall and reinstall. I have done this but the message continues to appear

    You haven't mentioned which version of PSE. If it is PSE 13, that requires a minimum of windows 7.

  • Reinstalling,APSE11,from,original,CD,with,serial,number,,I,get,the,message,"Key,not,valid, for,use,in,specified,state."

    While reinstalling APSE 11 (windows) from original CD (with serial number), I get the message "Key not valid for use in specified state."  What do I do?

    Unfortunately, you're in the wrong forum.  This is not the Elements forum.
    Here's the link to the forum you want:
    https://forums.adobe.com/community/photoshop_elements/content

  • Use CS6 (activated with serial number) on one computer and CC (activated by CC app) on another?

    CC authentication is playing havoc with me.
    I have a valid full install disc with serial number for CS6 Master Collection. I recently also began a subscription to CC.
    I want to use CC per its terms of use on my main machine (a Mac running Win in parallels) which, I believe, will count as both installations of my CC license. I also have a second PC where I'd like to use my perfectly valid serial number to install and run CS6.
    When I log in to the second (CS6) machine, I'm not allowed to run my CS6 programs because I am seen as a CC subscriber. There's no opportunity to enter a serial number: The machine, which has run CS6 for years, refuses to let me keep using them. For example I start Acrobat. I am alerted that my trial has 00 days left. I am asked to sign in and enter a serial number. I sign in, but before I can enter the serial number I am told "welcome, carry on" and the authroization window goes away. And it immediatly REAPPEARS with the same message about my trial having 00 days left.
    I have had a great deal of angst related to Adobe's broken activation process and my opinion of them as a company has suffered dramatically.
    Wondering if I need to make a separate Adobe ID for the CS6 installation. Will Adobe let me enter that serial number via a new Adobe ID or will it object on the grounds that the serial number is associated with my main Adobe ID?

    Re-register the perpetual license with another Adobe ID and use the CS6 installation on that ID.  This will keep the system from getting confused during the activation.  Remember to deactivate the CS6 (if it will allow that option) if at all possible.  That's the best option for now.  If you have issue with the re-installation, use the Adobe cleaner on the CS6 machine.

  • I cannot install properly my CS6 version on a second computer it seems that there is an issue with serial number I will appreciate some guidance thank you

    I cannot install properly my CS6 version on a second computer it seems that tree is an issue with serial number I will appreciate some guidance ? thank you

    Hello,
    please have a look there: http://www.adobe.com/products/cs6/faq.html >>> Can I distribute a Creative Suite 6 edition across multiple users or computers? >>> The software license agreement accompanying your product may entitle you to install and activate the software on two systems with certain restrictions. The product license agreement for Creative Suite 6 does not allow you to install the components of a single suite edition across multiple computers. See the software license agreement for more information.
    It could be necessary to activate/deactivate please have a look there:
    http://helpx.adobe.com/x-productkb/policy-pricing/activation-deactivation-products.html
    Good luck!
    Hans-Günter

  • Had to have my computer wiped clean due to virus infection. In trying to install acrobat 9, i get a message invalid serial number, even though it is the serial number in my account. What to do?

    Had to have my computer wiped clean due to virus infection. In trying to re-install acrobat 9, i get a message "invalid serial number", even though it is the serial number in my account. What to do?

    there is a lot of info at that link.  by checking that link you'll see that serial number only works for the exact product for which it was purchased.
    ie, if you purchase acrobat 9 std, you need to use acrobat 9 std installation files, not acrobat 9 pro.
    Downloadable installation files available:
    Suites and Programs:  CC 2014 | CC | CS6 | CS5.5 | CS5 | CS4, CS4 Web Standard | CS3
    Acrobat:  XI, X | 9,8 | 9 standard
    Premiere Elements:  13 | 12 | 11, 10 | 9, 8, 7 win | 8 mac | 7 mac
    Photoshop Elements:  13 |12 | 11, 10 | 9,8,7 win | 8 mac | 7 mac
    Lightroom:  5.7.1| 5 | 4 | 3
    Captivate:  8 | 7 | 6 | 5.5, 5 | 1
    Contribute:  CS5 | CS4, CS3 | 3,2
    FrameMaker:  12, 11, 10, 9, 8, 7.2
    Download and installation help for Adobe links
    Download and installation help for Prodesigntools links are listed on most linked pages.  They are critical; especially steps 1, 2 and 3.  If you click a link that does not have those steps listed, open a second window using the Lightroom 3 link to see those 'Important Instructions'.

  • Help! When I try to reinstall CS6 Design and Web Prem i get message that my serial number is invalid

    When I try to reinstall CS6 Design and Web Prem i get message that my serial number (Design and Web Prem <serial number removed>) is not valid? Why???? I have it installed now on just one computer only. It was installed also on a computer and a laptop. The laptop crashed and couldn't restart anymore. I had to through it away. After that I installed on another computer at a place where I work sometimes with photoshop. Then suddenly I got message at my computer home that the serialnumber is invalid. I installed for the time an try out version, and now I have deleted the version that I had on the computer but when i want to reinstall my legal bought version with the serial number that i mention there, I get again the message that my serial number is invalid. But now it is only installed on 1 other computer. If I check the sites, I have to contact Adobe but I don't know how. The link does not work and I cannot find any phonenumber.!!

    If you had it on a laptop that crashed and you threw away, it is still considered as activated on that machine.  YOu should contact Adobe by chat or by phone and have them deactivate for you.
    Here is a link to a page with options to help make contact:
    http://www.adobe.com/support/download-install/supportinfo/
    If you are getting a message that indicates the serial number is not valid, you should look thru the following:
    Error "The serial number is not valid for this product" | Creative Suite
    http://helpx.adobe.com/creative-suite/kb/error-serial-number-valid-product.html

  • Goods Receipt entry for items with serial number

    Hi All,
    When I try to create a Goods receipt entry, for items with serial number, i'm always getting the following error message.
    [OSRI] , 'The selected quantity of serial/batch numbers is greater than the quantity in row Id'
    The following is the code that I'm using
    Dim oInvetoryGenEntry As SAPbobsCOM.Documents
    Dim oSerialNumber As SAPbobsCOM.SerialNumbers
    Dim ErrCode As Long
    Dim ErrMsg As String
    Dim ret As Long
    Set oInvetoryGenEntry = oCmp.GetBusinessObject(oInventoryGenEntry)
    Set oSerialNumber = oInvetoryGenEntry.Lines.SerialNumbers
    oInvetoryGenEntry.DocDate = Now
    oInvetoryGenEntry.DocRate = 1
    oInvetoryGenEntry.TaxDate = Now
    oInvetoryGenEntry.PaymentGroupCode = "3"
    oInvetoryGenEntry.Comments = "GRN Entry11"
    oInvetoryGenEntry.Lines.ItemCode = "A00004"
    oInvetoryGenEntry.Lines.Price = 100
    oInvetoryGenEntry.Lines.Quantity = 1
    oSerialNumber.SystemSerialNumber = 55555
    oSerialNumber.InternalSerialNumber = "2354"
    oSerialNumber.BatchID = "bt1"
    oSerialNumber.Add
    ret = oInvetoryGenEntry.Add
    If ret <> 0 Then
            oCmp.GetLastError ErrCode, ErrMsg
            MsgBox ErrCode & " " & ErrMsg
        Else
            MsgBox "GRN Entry made."
        End If
    It would be wonderful if anyone help me out to trace the exact reason for this issue.
    Thanks
    John

    Hi John I'm almost sure that your working with SDK 6.5 with SP1 or lower, visit this address
    https://www.sdn.sap.com/sdn/collaboration.sdn?node=linkFnode6-1&contenttype=url&content=https://DI: Add more than one serial numbers in Invoice
    Maybe you can find your answer if you can fix it let me Know my email address is [email protected] because i had the same problem.
    Regards

  • Goods Issue Stock with serial number to asset

    Hi xperts,
    When i GI a stock with serial number to asset (mvmt 241), the serial number is not updated in the asset master. I believe it's due to the asset number has been created before the GI. Is there any way (BADI or user exit) that would allow the serial number to  be updated in the asset master after/during GI postings.
    Thanks in advance.

    HI,
    The serial number is not updated in the asset master & there is no user exit for updating the same . You need to maintain it manually in the Asset master through Tcode AS02. Then after that do the GI,then the serial number would get updated automatically when you manually enter Asset code under  account assignment tab.
    Regards
    Manish Joshi

  • I am changing laptops and have tried to download and install Acobat 9 Standard from the Adobe website, but get message that my serial number is invalid. I log in and double check my account and it shows as a valid serial number.  Now what?

    I am changing laptops and have tried to download and install Acrobat 9 Standard from the Adobe website, but get message that my serial number is invalid. I log in and double check my account and it shows as a valid serial number.  Now what?

    If you had it on a laptop that crashed and you threw away, it is still considered as activated on that machine.  YOu should contact Adobe by chat or by phone and have them deactivate for you.
    Here is a link to a page with options to help make contact:
    http://www.adobe.com/support/download-install/supportinfo/
    If you are getting a message that indicates the serial number is not valid, you should look thru the following:
    Error "The serial number is not valid for this product" | Creative Suite
    http://helpx.adobe.com/creative-suite/kb/error-serial-number-valid-product.html

  • Aperture upgrade won't open with serial number

    I have a retail license for aperture version 2.1 with the serial numbers on the jacket for the cd. Several times after upgrades the new version will ask for my name and serial number. The latest upgrade to 3.4.5 tells me that my serial number is invalid. Any suggestions?

    Thank you so much for your reply but I want to apologize for wasting your time with this question. I was making a "rookie" mistake by using my cd jacket information from version 2.1. After reading your reply I looked further into my cd's and found the version 3.0 cd with the info I needed on the jacket. The correct serial number works fine with the upgrade.

  • Trying to install LR4 on a second computer but my serial number is not being accepted.

    Trying to install LR4 on a second computer but my serial number is not being accepted. What to do?

    there's nothing online about which i know.  but you may be able to get that info from adobe support, http://helpx.adobe.com/x-productkb/global/service1.html

  • BAPI_GOODSMVT_CREATE with Serial Number

    Dear Gurus,
    Scenario
    We have to transfer serialized Material from one plant to another via STO
    ST order --> Delivery --> PGI (with Serial Number) --> MIGO at recieving plant.
    For MIGO (101) movement we want to use BAPI_GOODSMVT_CREATE.
    Now we have tried many combinations for it.
    if we se GM_CODE = '01'. and Movement Indicator 'B' (for purchase orders) then it gives error "Maintain Serial number."
    So if we maintaine serial number in thetable it says that you "cannot assign this serial number to the material "(AS the serial no is attached to the material at the time of PGI).
    Now if we try to change the the movement Indicator to 'L' (for deliveries) we are getting the error "Update control of movement type is incorrect (entry 101 X X _ L) "
    We have maintianed all necessary fields otherwise it would not give he Maintain srial no error (we think). I know this is very technical. but if anyone has prior knowledge please Help
    Dany

    hI,
    I have on similar error and i made this .  
    header
       IT_HEADER-PSTNG_DATE = SY-DATUM.
       IT_HEADER-DOC_DATE   = SY-DATUM.
       IT_HEADER-PR_UNAME   = SY-UNAME.
       IT_HEADER-HEADER_TXT = W_NUMDOC .
       IT_HEADER-REF_DOC_NO = IT_INPUT-NUMFR.
    Tcod MB01
       IT_CODE-GM_CODE = '01'.
    Fill item
       IT_ITEM-MATERIAL   = IT_PEDNEC-MATNR.     "Material Code
       IT_ITEM-PLANT      = ZGSARMZ-WERKS.      
       IT_ITEM-MOVE_TYPE  = ZGSMOVMOT-TPMOV1.    "Mov. Type
    If necessary used table T156t
    the field  KZBEW  most be used in th internal table .
    IT_ITEM-MVT_IND
       IT_ITEM-MVT_IND    = 'B'.                    
       IT_ITEM-ENTRY_QNT  = ABS( IT_INPUT-QTDSEL ).
       IT_ITEM-ENTRY_UOM  = 'UN'.                 
       IT_ITEM-PO_NUMBER  = IT_INPUT-EBELN.         
       IT_ITEM-PO_ITEM    = IT_INPUT-EBELP.   
    IT_ITEM-STGE_LOC   = .           
    IT_ITEM-BATCH      = .           
    IT_ITEM-COSTCENTER = .          
    IT_ITEM-CUSTOMER   = .           
       APPEND IT_ITEM.
    Regards .
    pedro

Maybe you are looking for

  • Issue with mac in wag54g2

    Hi there. I have a wag54g2 device and using it as a internet gateway and accesspoint.. in my small network there are 2 laptops (neighbours) that are using a bunch of bandwith , i want to limit them by using Qos by their mac.. this is an option in my

  • Fax from computer to photosmart 7525 gets cancelled after spooling

    I can fax directly from printer, but when I use the HP software or print function on the computer to set up fax and send, the progress goes from spooling to cancelled without any error notices. I have a Dell XPS 8500 running 8.1 and Photosmart 7525 c

  • Deleting files from comp without deleting them for ipod

    I have an 80 GB Ipod and a 30 GB PC HDD. I only have about 2-4 GB to work with at any given time on my PC. I want to know if there's a way to clean out files on my PC making room for others without losing them on the Ipod. I tried to just synch the n

  • Trigger Web Dynpro Java application automatically.

    Hi All, I don't know if I am asking too much, but I have a requirement as below I have a Custom Web Dynpro Java application for which an iView has been created and assigned to a role on the Portal. The user just have to access the role and can run th

  • Please help with a drawing on JPanel in a background.

    Hello everybody, I have already post this question in the main java forum and was adviced to place the question here. Since then, I have refactored the code. I need your opinion and advice. My task is to draw some objects on the JPanel or some other