Shutdown the Remote PC

October 20, 2010
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
 

Gateway address, IP Address, DNS

October 20, 2010
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

October 20, 2010
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

October 20, 2010
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

October 20, 2010
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

October 20, 2010
netsh firewall set opmode mode=ENABLE
netsh firewall set service type=FILEANDPRINT mode=ENABLE
Continue reading...
 

Create scheduled restore point in Windows XP

October 20, 2010
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

October 20, 2010
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...
 

Bulk Users Import to Active Directory

October 20, 2010
Bulk Users creation to windows 2003 domain.
Create one excel file name is user5.xls.

Type fill givenname and sn filed. Also change your ou and domain name.


































Save as the excel file to users5.csv file














Delete unwanted field of emp.code.

Finally save this file user5.csv

goto domain command prompt type

c:\csvde -i -f user5.csv

After that all users are imported to active directory. Next step is enable the account and Passoword using the following script.

' start script
' PwdLastSet.vbs
' Example VBScript to FO...
Continue reading...
 

avoid anonymous connections using Group Policy Objects

October 19, 2010
To protect your Windows XP and Server 2003 computers, go to the same node within a GPO, but configure the following GPO settings: Microsoft has relied on anonymous connections to allow computers and services to establish open communications with other computers. These anonymous connections are not secure, however. Attackers exploit anonymous connections left open on Windows computers to access essential security-related information. With Group Policy Objects (GPOs), you can protect yo...
Continue reading...
 

shirassr@gmail.com


Mob:9495667411

Recent Posts