Adding a permanent network route in Windows

It’s not that common to add a network route in windows, but if you have more than one network interface and there are many networks hidden over there, you will need to do it

The syntax is quite simple

route -p add the_network mask the_netmask the_gateway metric the_metric

As an example, we will use the following information:

the_metric 10

And the resulting command is:

route -p add mask metric 10

-p means the network will be added permanently in windows registry, if you want to play with this new network until the next reboot, don’t use it.
If you do not what to do with metric , simply use 10

To check the routing table, use the command

route print

Purging WINS cache on Windows

On cmd execute:

nbtstat -R

Install Telnet Client on Windows 7 and above by using a command line

Quick ‘n dirty, from the cmd “console”

pkgmgr /iu:"TelnetClient"

Installing recovery console on a Service Pack >=2 Windows based computer

If you try to install the Recovery console into a Windows 2003 Server SP2 computer (or any windows service-packed computer) from the installation media, you may receive the  error:

“Setup cannot continue because the version of Windows on your computer is newer than the version on the CD.”

This happens because windows expects a Windows xxx SPyyy CD. If you don’t have a CD suitable for the service pack currently installed, follow this link.

If when running  FolderPath:\i386\winnt32.exe /cmdcons you receive the message “No valid system partitions were found” follow this other link as well.

As a plus, if you need the Recovery console commands syntax,  go here.

Listar nombres de discos físicos en windows

En GNU/Linux, estamos acostumbrados a nombres de discos tales como /dev/hda /dev/sda e incluso algo como /dev/cciss/c0d0

En cambio en Windows® siempre hemos visto algo como “C:” o “D:”. Tienen nombres específicos dentro del sistema operativo?

Pues la respuesta se encuentra ejecutando el comando wmic dentro de una ventana de comandos de windows:

wmic diskdrive list

C:\>wmic diskdrive list
Availability  BytesPerSector  Capabilities  CapabilityDescriptions  Caption CompressionMethod  ConfigManagerErrorCode  ConfigManagerUserConfig  CreationClassName  DefaultBlockSize  Description      DeviceID            ErrorCleared  ErrorDescription  ErrorMethodology  Index  InstallDate  InterfaceType  LastErrorCode  Manufacturer                  MaxBlockSize  MaxMediaSize  MediaLoaded
MediaType              MinBlockSize  Model               Name                Ne
edsCleaning  NumberOfMediaSupported  Partitions  PNPDeviceID
entCapabilities  PowerManagementSupported  SCSIBus  SCSILogicalUnit  SCSIPort  S
CSITargetId  SectorsPerTrack  Signature  Size         Status  StatusInfo  System
CreationClassName  SystemName  TotalCylinders  TotalHeads  TotalSectors  TotalTracks  TracksPerCylinder
512             {3, 4}                                WDC WD800BB-
23FJA0                     0                       FALSE                    Win3
2_DiskDrive                      Unidad de disco  \\.\PHYSICALDRIVE0
0                   IDE
(Unidades de disco estándar)                              TRUE
Fixed  hard disk media                WDC WD800BB-23FJA0  \\.\PHYSICALDRIVE0
3           IDE\DISKWDC_WD800BB-23FJA0____
0        0                0
1             63               43808126   80031974400  OK                  Win32
_ComputerSystem     CERVERO     9730            255         156312450     248115
0      255

Y nos mostrará toda clase de información sobre unidades de disco, siendo el nombre del dispositivo \\.\PHYSICALDRIVE0

Powered by WordPress with GimpStyle Theme design by Horacio Bella.
Entries and comments feeds. Valid XHTML and CSS.