Page 1 of 2 12 LastLast
Results 1 to 12 of 13

Thread: Remotely shutting down network client from DOS. Complete tutorial

  1. #1
    Join Date
    10 Jun 2009
    Age
    38
    Posts
    432
    Threads
    10
    Credits
    1,259
    Thanked
    25

    Default Remotely shutting down network client from DOS. Complete tutorial

    As Salam O Alaikum

    Network Administrator ke leye kabhi kabhi aesa case ata hai jis main un ko cleints system ko shutdown karnay ke leye kud clients system pr jana parta hai. Kya aesa possible hai ke Network Administrator remotely apnay clients ko Shutdown/Restart/Logoff kr sakay?????!

    Yes it's possible. Follow these steps,

    Step # 01

    Jis system ko ap ShutDown karna chah rahay ho us ka NAME ya IP ap ko pata hona chahiye.

    Ksi System ke name jannay ke leye command prompt main yeh command type kr ke enter krain :
    hostname

    IP jannay ke leye yeh command type kr ke enter krain:
    IPCONFIG

    STEP # 02

    Yeh confirm krain ap us ko network pr us se communicate bhi kr sakain gay ya nahe. Aesa karnay ke leye ap ko apnay us remote system ko ping krna ho ga. Ap ke pass IP ya hostname to hai. To command prompt main yeh command type krain
    ping hostname ya
    ping IpAdress

    Agr ping reply aa jaye its mean ap ki communication ho sakti hai phr ap next step main us ko remotely shutdown krnay ka procedure follow krain warna IP/HOSTNAME dobara check krain aur apnay system se us remote system ki connectivity check krain.

    STEP # 3

    To shutdown use following command
    shutdown -s -m \\HOSTNAME -c "Testing" ya
    shutdown -s -m \\IP -c "Testing"

    Ab ap ne saray steps theek follow keye hain to sirf yahan ap ko aik error aa sakta hai aur wo hai Access Denied ka. Agr ap ke pass Access Denied ka error aa jaye, its mean ke pass itni access/privileges nahe hain. Access gain krnay ke leye ap ko remote client pr kuch settings krni ho gein jo ke next step hai.

    TROUBLESHOOTING ACCESS DENIED


    1) Click on Start -> Setting -> Control Panel
    2) Double Click Administrative Tools
    3) Double Click Local Security Policies -> Local Policies -> Click User Right Assignments
    4) Right side pr bohat sari policies show ho rahi ho gein. Us main aik Policy ho gi 'Force Shutdown From a Remote System'. Is Policy pr right click kr ke is ki properties open krain.
    5) ADD USER GROUP main apnay system ke username yahan add krwa dein like YOURCOMPUTERNAME\USERNAME.

    Ab ap apnay system se jis client ke system pr ap ne yeh changes ki hain us ko remotely shutdown kr saktay hain.
    Ap apnay network ke multiple computers ko bhi aik command se shutdown kr saktay hain mager us ke leye ap ko batch file banani parey gi.

    ---------------------------

    ABOUT SHUTDOWN.EXE DOS COMMAND

    DOS/COMMAND-PROMPT main jitni bhi commands hotein hain un ke switches hotay hain jin ki madat se ap parameters ya options detay ho. For example SHUTDOWN aik command hai aur kis computer ke shutdown krna hai, kitni deer baad karna hai, shutdown krna hai ya logoff ya restart wagera yeh ap switches ke madat se mention kro gay. Syntax of shutdown command:

    shutdown [-i | -l | -s | -r | -a] [-f] [-m \\computername] [-t xx] [-c "comment"] [-d up:xx:yy]

    shutdown -i : is command se Graphical screen display ho jaye gi, agr ap switches main nahe parna chahtay simple yeh command apply krain. Window main graphically apnay network computer ko add krwa kr ap Shutdown kr saktay hain.


    shutdown -l : ap ka system logoff ho jaye ga
    shutdown -s : ap ka system shutdown ho jaye ga
    shutdown -r : ap ka system restart ho jaye ga
    shutdown -a : agr ap ne ghalti se shutdown kr deya hai apna system to yeh command apply krnay se shutdown procedure abort/khatam ho jaye ga.

    oper wali sari commands se ap ka system effect ho ga magr agr ap ksi remote system ko effect krna chah rahay ho to ap ko us ka IP ya name pata hona chahiye

    shutdown -s -m \\COMPUTERNAME
    shutdown -r -m \\192.168.1.50

    Baki switches -t time ke leye , -c shutdown/restart/logg ke wqt comment display krwaneye ke leye, -d shutdown reason ke leye hain.


    Information provided here is for educational purposes only.


    Regards,
    Atif Raza
    Last edited by AtifRaza; 15th September 2011 at 01:48 PM.
    MS TELECOMMUNICATION SYSTEMS
    BSCS HONORS
    CCNA & MCP CERTIFIED

  2. #2
    ITDUNYA79's Avatar
    ITDUNYA79 is offline Senior Member+
    Last Online
    5th December 2016 @ 05:20 AM
    Join Date
    14 Jul 2011
    Location
    Suadi Arabia
    Gender
    Male
    Posts
    1,327
    Threads
    83
    Credits
    62
    Thanked
    130

    Default

    good i try it

  3. #3
    ikazimali is offline Junior Member
    Last Online
    3rd October 2019 @ 02:53 PM
    Join Date
    24 Apr 2007
    Location
    Karachi
    Posts
    21
    Threads
    2
    Credits
    991
    Thanked
    0

    Default

    pehly try karky dekho properly

  4. #4
    kashifkhan88's Avatar
    kashifkhan88 is offline Advance Member
    Last Online
    1st February 2020 @ 12:31 AM
    Join Date
    21 Sep 2011
    Location
    PESHAWAR
    Age
    31
    Gender
    Male
    Posts
    1,183
    Threads
    108
    Credits
    296
    Thanked
    139

    Default

    good

  5. #5
    coolcool1227's Avatar
    coolcool1227 is offline Advance Member
    Last Online
    4th March 2022 @ 12:29 AM
    Join Date
    23 May 2009
    Location
    Sialkot
    Gender
    Male
    Posts
    2,219
    Threads
    62
    Credits
    1,575
    Thanked
    139

    Default

    Nice lakin mein is method ko Windows XP Professional edition aur Windows 7 mein try kya hai, lakin yeh method Windows XP Home edition mein nahi use ho sakta, kyon k us mein secpol.msc ki application nahi hoti. Windows XP Home Edition k liye kya tareeqa ho ga?

  6. #6
    Join Date
    10 Jun 2009
    Age
    38
    Posts
    432
    Threads
    10
    Credits
    1,259
    Thanked
    25

    Default

    Hmm.... ok,

    Phr ap NTRIGHTS utility use kr ke try krain XP HOME EDITION main... aur "SeShutdownPrivilege" jo ke System Admin Privilege hai is ko +R se grant krain.

    DOS main yeh command type krain

    ntrights -u USERNAME +r SeShutdownPrivilege
    example,

    ntrights -u GUEST +r SeShutdownPrivilege
    ntrights -u DOMAINNAME\ABC +r SeShutdownPrivilege (is command se ABC domain ke tamam users remotely shutdown kr saktay hain)

    +R access grant ke leye hai aur -R remove krnay ke leye.

    Information provided are for educational purposes only!
    Regards,

  7. #7
    faizanelahi's Avatar
    faizanelahi is offline Senior Member
    Last Online
    22nd March 2018 @ 12:02 AM
    Join Date
    30 May 2011
    Location
    gujranwala
    Age
    32
    Gender
    Male
    Posts
    636
    Threads
    49
    Credits
    63
    Thanked
    24

    Default

    main ny apny dost sy internet conection lia hy kuch din pahly us ny mujhy mera mac add or computer name btaya or kaha k ya dos ki 1 command sy pta chalta hy kia ap wo command bta sakty hain
    NOBODY IS PERFECT
    I AM NOBODY

  8. #8
    coolcool1227's Avatar
    coolcool1227 is offline Advance Member
    Last Online
    4th March 2022 @ 12:29 AM
    Join Date
    23 May 2009
    Location
    Sialkot
    Gender
    Male
    Posts
    2,219
    Threads
    62
    Credits
    1,575
    Thanked
    139

    Default

    Quote faizanelahi said: View Post
    main ny apny dost sy internet conection lia hy kuch din pahly us ny mujhy mera mac add or computer name btaya or kaha k ya dos ki 1 command sy pta chalta hy kia ap wo command bta sakty hain

    Different commands hein nbtstat, getmac etc lakin in ke liye IP address ya computer name pehlay se maloom hona chahye.

    Shayad koi aur command bhi ho...........so wait for replies.

    for commands syntax help e.g nbtstat

    type nbtstat/? in CMD.

  9. #9
    coolcool1227's Avatar
    coolcool1227 is offline Advance Member
    Last Online
    4th March 2022 @ 12:29 AM
    Join Date
    23 May 2009
    Location
    Sialkot
    Gender
    Male
    Posts
    2,219
    Threads
    62
    Credits
    1,575
    Thanked
    139

    Default

    Quote AtifRaza said: View Post
    Hmm.... ok,

    Phr ap NTRIGHTS utility use kr ke try krain XP HOME EDITION main... aur "SeShutdownPrivilege" jo ke System Admin Privilege hai is ko +R se grant krain.

    DOS main yeh command type krain

    ntrights -u USERNAME +r SeShutdownPrivilege
    example,

    ntrights -u GUEST +r SeShutdownPrivilege
    ntrights -u DOMAINNAME\ABC +r SeShutdownPrivilege (is command se ABC domain ke tamam users remotely shutdown kr saktay hain)

    +R access grant ke leye hai aur -R remove krnay ke leye.

    Information provided are for educational purposes only!
    Regards,

    Yeh samaj nahi aye, thori mazeed tafseel chahye.

  10. #10
    Join Date
    10 Jun 2009
    Age
    38
    Posts
    432
    Threads
    10
    Credits
    1,259
    Thanked
    25

    Default

    Quote faizanelahi said: View Post
    main ny apny dost sy internet conection lia hy kuch din pahly us ny mujhy mera mac add or computer name btaya or kaha k ya dos ki 1 command sy pta chalta hy kia ap wo command bta sakty hain
    Brother...

    MAC Address ko Physical address bhi bola gata hai aur yeh Network Card ka hota hai. Ap ne apnay dost se internet leya hai. It means ke ap us ke router/accesspoint se connected hain beshak ap wire se connected hon ya wireless ke through. Har router yeh option deta hai ke jo jo computers us ke sath connected hain hon wo un ke MAC ADRESSES show krwata hai. Aur un computers ko kya IP mili hui hai yeh bhi show ho rahi hoti hai.

    Jahan tk computername ki bat hai, agr ap ko ksi network pr ksi system ka IP pata ho to ap bhi us ka computername/host maloom kr saktay hain. Us ki dos ki command hai

    PING -A IPADDRESS

    is se ap ke pass us IP ka ComputerName aa jaye ga.


    IP ke through ap MAC-ADDRESS translation ke leye ARP(Address Resolution Protocol) use kr saktay hain. Is ke aur bhi bohat sarey faiday hain jin main se aik faida yeh bhi hai ke ap duplicate IP aik network pr bhi findout kr saktay hain aur bhi functions hain including mapping e.t.c. Agr ksi ki IP pata ho to us ka MAC-ADDRESS maloom krnay ke leye use:

    arp -a ipaddress
    is command se ap aik network pr ksi IP ka Mac-Address maloom kr saktay ho.

    Information provided here is for educational purposes only.!
    Regards,

  11. #11
    hasib ahmed's Avatar
    hasib ahmed is offline Advance Member
    Last Online
    12th November 2022 @ 11:45 PM
    Join Date
    08 Sep 2008
    Location
    rawalpindi
    Age
    34
    Gender
    Male
    Posts
    850
    Threads
    106
    Credits
    83
    Thanked
    15

    Default

    nice info
    ma ishq-e-kainaat ma zanjeer ho saku
    mujh ko hisar-e-zaat ke shar se rahai de


  12. #12
    memon007 is offline Senior Member+
    Last Online
    4th August 2015 @ 10:33 PM
    Join Date
    20 Jan 2009
    Location
    ♥ CiTy ♥ Of ♥ LiGhT♥ KaRaChI ♥
    Age
    36
    Posts
    767
    Threads
    18
    Credits
    592
    Thanked
    23

    Default

    very informative post

Page 1 of 2 12 LastLast

Similar Threads

  1. [Tutorial][Root] Delete system apps complete tutorial
    By Malik Wahab in forum Android Zone
    Replies: 26
    Last Post: 17th August 2015, 10:32 AM
  2. Answered How to access a Client pc in which my inetnet network
    By MirzaGeeMirza in forum Ask an Expert
    Replies: 11
    Last Post: 28th June 2012, 09:19 PM
  3. Solved Peechtree ka complete tutorial
    By fwdwaseem in forum Solved Problems (IT)
    Replies: 5
    Last Post: 31st December 2010, 03:27 PM
  4. Solved Remotely Connect from Home to office Network problum
    By iabros in forum Solved Problems (IT)
    Replies: 7
    Last Post: 10th December 2010, 10:05 PM
  5. network per Client website kaisay share karty hain?
    By soul_of_life789 in forum Ask an Expert
    Replies: 11
    Last Post: 2nd November 2007, 06:36 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •