AdminSysNet

Aller au contenu | Aller au menu | Aller à la recherche

Microsoft › Ligne de commande

Fil des billets

lire serial number d'un PC depuis CMD.exe

http://www.thegeekstuff.com/2008/10/view-dell-service-tag-and-express-service-code-from-linux-and-windows/

 

1. Get DELL Service Tag on remote Windows system

Login to the Windows remote-host using VNC or remote desktop connection. Use WMIC on Windows to get service tag as shown below.

C:\>wmic bios get serialnumber
SerialNumber
ABCDEF1

Following WMIC command will give make and model number along with service tag.

C:\>wmic csproduct get vendor,name,identifyingnumber
IdentifyingNumber    Name                Vendor
ABCDEF1              PowerEdge 2950      Dell Inc.

If VNC or remote desktop connection to the remote-host is not available,  execute the following from the local-host to get the service tag of the remote-host.

C:\>wmic /user:administrator /node:remote-host bios get serialnumber
SerialNumber
ABCDEF1
[Note: Replace remote-host with the machine name of your remote-host.]

2. Get DELL Service Tag on remote Linux system

Login to the Linux remote-host using SSH. Use dmidecode on Linux to get service tag as shown below.

[remote-host]# dmidecode -s system-serial-number
ABCDEF1

3. Get DELL Express Service Code From Service Tag

Service Tag is a base-36 integer.  Once you have the Service Tag, you can calculate express service code yourself. Express Service Code is base-10 decimal integer of Service Tag. Dell uses express service code mainly for their support call-routing. When you call dell support, their automated call-routing system may ask you to enter express service code, which you can easily enter in your telephone, as it is just a bunch of numbers, instead of characters.

Use the following online tools to find express service code from service tag and vice-versa.

Outils WMI: ligne de commande WMIC,

WMI sur Wikipedia: http://fr.wikipedia.org/wiki/Windows_Management_Instrumentation

Tutoriel sur WMI: http://c.buguet.free.fr/infos2/spip.php?article106

WMI infos:http://technet.microsoft.com/en-us/library/cc180229.aspx

WMI Command-line Tools: http://msdn.microsoft.com/fr-fr/library/windows/desktop/aa827351%28v=vs.85%29.aspx

WMIC - Take Command-line Control over WMI: http://technet.microsoft.com/en-us/library/bb742610.aspx

WMI Command Line Tool: http://technet.microsoft.com/en-us/library/cc181088.aspx

WMI Commands on windows 7: http://www.thewindowsclub.com/wmi-commands-on-windows-7

Explications sur Petri.com: http://www.petri.co.il/command-line-wmi-part-1.htm#

Commandes MSDOS: site batcher.fr

oici quelques cours très simples à comprendre sur les scripts batchs.
Merci au créateur de batcheur.fr

http://www.batcher.fr/scripts.php

Ouvrez ce billet  pour voir tout le cours de scripting batch

Lire la suite...

Powershell: sites documentaires

http://www.powershellpro.com/powershell-tutorial-introduction/powershell-tutorial-scripting/

http://www.powershell-scripting.com/

http://michaelclaveyrolas.over-blog.com/

Commandes Windows Xp et Power Shell

Power Shell:
http://www.ss64.com/ps/index.html

Windows XP (y compris ressource kit et Robocopy):
http://www.ss64.com/nt/index.html