Showing category "Dos Commands" (Show all posts)

Shutdown the Remote PC

Posted by Shiras S.R on Wednesday, October 20, 2010, In : Dos Commands 
The following command is used for remote pc shutdown

shutdown -m \\computername(or Ipaddress) -s -f -t 00


-m Remote machine

-s Shutdown

-t time duration
Continue reading ...
 

Gateway address, IP Address, DNS

Posted by Shiras S.R on Wednesday, October 20, 2010, In : Dos Commands 
Add gateway address
Type the command in cmd
netsh interface ip delete addres "local area connection" gateway=10.90.102.6

netsh interface ip set address name="local area connection" gateway=10.90.102.6 gwmetric=default

netsh interface ip add address "local area connection" gateway=10.90.103.6 gwmetric=automatic

Delete DNS

Delete particular Dns using this command

netsh interface ip delete dns "local area connection" 10.90.2.2

Delete all dns using this command..

netsh interface ip delete dns...
Continue reading ...
 

PsExec

Posted by Shiras S.R on Wednesday, October 20, 2010, In : Dos Commands 
PsExec executes a program on a remote system, where remotely executed console applications execute interactively.

psexec @computername.txt -e -u administrator -P password -realtime -c ocxreg.bat

computername.txt contain computer name or ip address..
Continue reading ...
 

Map network Drive

Posted by Shiras S.R on Wednesday, October 20, 2010, In : Dos Commands 
net use \\server\share password /USER:domain\username

/P means persistent.

This means reconnect the share at the next logon.

But for that to work with a password you will also need to save the credentials.

So try this ...

NET USE Z: \\192.168.2.43\mercury password /USER:domain\username /SAVECRED /PERSISENT:YES

Replace password, domain and username with appropriate values ...

NET USE Z: \\192.168.2.43\mercury MrBlobby /USER:BBC\NoelEdmonds /SAVECRED /PERSISENT:YES

Example:

net use h: ...
Continue reading ...
 

How to View and delete scheduled job tasks

Posted by Shiras S.R on Wednesday, October 20, 2010, In : Dos Commands 
at command prompt

View scheduled jobs

at \\computername

Delete scheduled jobs

type
at \\computername /delete /y
Continue reading ...
 

How to enable firewall in Windows XP

Posted by Shiras S.R on Wednesday, October 20, 2010, In : Dos Commands 
netsh firewall set opmode mode=ENABLE
netsh firewall set service type=FILEANDPRINT mode=ENABLE
Continue reading ...
 

Create scheduled restore point in Windows XP

Posted by Shiras S.R on Wednesday, October 20, 2010, In : Dos Commands 
Restore.bat file contain
at 3:40pm \\bslch\systemrestore$\a.vbs

a.vbs file contain
Set IRP = getobject("winmgmts:\\.\root\default:Systemrestore" )
MYRP = IRP.createrestorepoint ("IT Helpdesk Restore Point", 0, 100)



put the restore.bat file in logon script in computer policy.
a.vbs file is copied into "\\bslch\systemrestore$" this location.
Continue reading ...
 

Disable USB Drive using Group Policy

Posted by Shiras S.R on Wednesday, October 20, 2010, In : Dos Commands 
usb.bat file contain
regedit /s \\slche\systemrestore$\usb.reg


usb.reg file contain

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\USBSTOR]
"Start"=dword:00000004

usb.bat is put in logon scipt in computer policy
rsb.reg file is placed in \\slche\systemrestore$\usb.reg
Continue reading ...
 

Time synchronization between server and client

Posted by Shiras S.R on Tuesday, October 19, 2010, In : Dos Commands 
The following command is used for time synchronization between server and client.

This command is used in client computer.

w32tm /resync /computer:computername or domainname /nowait /soft
Continue reading ...
 

How to set path using bat file

Posted by Shiras S.R on Tuesday, October 19, 2010, In : Dos Commands 

Type the below command in notepad and save the file to .bat file extenstion.

cmd /k "set path=%path%;"c:\Program Files\Java\jdk1.5.0\bin"&&z:"


Continue reading ...
 

How to Check Office 2010 Activation Status

Posted by Shiras S.R on Tuesday, October 19, 2010, In : Dos Commands 
1 Open an administrative level command prompt.

2 Change directory to the Office14 folder at the following location by typing the following command, and hit Enter to execute:

cd \Program Files\Microsoft Office\Office14

Note: For user installing 32-bit (x86) edition of Office 2010 on 64-bit (x64) Windows OS, type the following command instead, and hit Enter to execute:

cd \Program Files(x86)\Microsoft Office\Office14
3 Then, type the following command, and hit Enter to execute:

cscript ospp.vbs /d...
Continue reading ...
 
 

shirassr@gmail.com


Mob:9495667411

Recent Posts