Friday 29 June 2012

Map a Drive Letter to a Local Folder



(1) Using “subst” command
Under Windows, there is a legacy dos command named “subst”:
C:\>subst /?
Associates a path with a drive letter.


SUBST [drive1: [drive2:]path]
SUBST drive1: /D


drive1: Specifies a virtual drive to which you want to assign a path.
[drive2:]path Specifies a physical drive and path you want to assign to
a virtual drive.
/D Deletes a substituted (virtual) drive.

Type SUBST with no parameters to display a list of current virtual drives.
C:\>

Creating A Map Drive

Goto Start > Run > cmd.exe
Use the command subst <virtual drive name:> <local folder path> to map a new drive to the local folder. Here I have mapped the drive with the name X to a folder in my external hard drive.
map_folder_xp_2
subst x: j:\movies\

Removing A Map Drive

Use the command subst /d <virtual drive name:. The /d switch will delete the virtual mapped drive
map_folder_xp_4
subst /d x:

(2) Visual Subst
Fortunately there is an easier way to utilize this command than having to remember the command line every time you want to use your files. The free windows program Visual Subst will manage these drives for you.

VisualSubst

To Find MAC ADDRESS in Remotely

net view at a command prompt.
Find the name of the machine you want.
nbtstat -a machinename at a command prompt.
MAC address will be at the bottom.

example :
C:\Users\fm>nbtstat -a hostname
 
If you can ping this host over the LAN/WAN, his MAC address will be cached in ARP table of your NIC for a while, so, from command prompt:

c:\ ping 1.2.3.4
after some echo replies from host 1.2.3.4
c:\arp -a
and you will see MAC address of 1.2.3.4

Output like :

C:\Users\fm>arp -a

Interface: 192.168.2.85 --- 0xb
  Internet Address      Physical Address      Type
  169.254.60.189        00-24-81-ee-b8-49     dynamic
  192.168.0.1           01-00-5e-28-00-01     dynamic
  192.168.0.2           78-ac-c0-42-53-7c     dynamic
  192.168.0.5           00-18-71-88-a7-76     dynamic
  
 Open a command window - go to Start > Run and type "command" into the field then click "OK".
  1. Type getmac.
  2. The MAC address will be noted on the column on the left under "Physical Address"
Example C:\>getmac Physical Address Transport Name =================== ============================== 00-D0-B7-B1-A7-14 \Device\Tcpip_{474E507B-4FCD-428C-A553-304B997C4D96}

Tuesday 26 June 2012

How to map a drive using command prompt


First click on Start and then Run. Type cmd in the Open box.
start run cmd
Then type the following DOS command to map the network drive:
net use x: \\computer name\share name
where x: is the drive letter you want to assign to the shared folder.
net use command
You can delete a mapped network drive using the command prompt by typing in
net use x: /delete
If you have any problems mapping a drive in Windows, post a comment and I’ll try to help you out! Enjoy!

Friday 22 June 2012

Restart Client PC (Connected with Domain )




go to command promt c:\>  shutdown -i
then give the client ip or hostname
n give shutdown or restart..........





Sunday 10 June 2012

Network stucks at acquiring ip address in Windows XP

In Windows XP, Network does not acquire IP automatically and stucks forever at acquiring network address,

The possibilities are,

1. DHCP Service not running - Go to Start -> Run -> services.msc and start DHCP Client service and make it automatic.
2. Bad Network Cable - Replace Cable
3. Bad NIC Card - Service or Replace Network Card

that should do the trick !!!
i8042prdisabled 

I have had the same issue and I was able to resolve it.By default the startup type for i8042prt.sys at boot time is set to enabled.
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\i8042prt > The REG_DWORD entry "START" is set to "1" which means enabled.

The driver is not installed by default and it is stored some directories.In example :
C:\Windows\winsxs\amd64_keyboard.inf_31bf3856ad364e35_6.0.6000.16609_none_f18fcd509427b0d2\i8042prt.sys

The driver can only be loaded if it is under stored under system32\DRIVERS\i8042prt.sys.

If you never plug-in a PS/2 keyboard to your PC it is never copied to the system32\DRIVERS folder and you will see everytime this event if you start your PC.

The solution is either you should plug-in a PS/2 keyboard one time or you should change the value of the "START" registry entry to "0" which means "disable" at startup or "do not try to load"

Thats it !

1Windows Registry Editor Version 5.00
2
3[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\i8042prt]
4"Start"=dword:00000004