Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

Shell 

Bat Script To Boot Microsoft Windows Os into Safe Mode

Open A Notepad and Copy and paste the below lines of code in it


@echo off
bcedit /set {current} safeboot network
shutdown /r
echo System is rebooting in safe mode, have patience :) silent_nuke
timeout 3


save file as safemode.bat
(Aug 30, 2017 12:12 AM)ritudev Wrote:  Open A Notepad and Copy and paste the below lines of code in it


@echo off
bcedit /set {current} safeboot network
shutdown /r
echo System is rebooting in safe mode, have patience :) silent_nuke
timeout 3


save file as safemode.bat

Hi ✌
Can you explain to us what mean {current} in this script ? and please use tag [code][/ code] when you post a code !
Thanks !
Tried this out, doesn't work for me o.O
(Sep 12, 2017 08:15 AM)DUCKBOY Wrote:  Tried this out, doesn't work for me o.O
Because he omit the d in this command bcedit 😠

The correct command is : bcdedit 😉

This will set the safemode switch:

Code
bcdedit /set {current} safeboot minimal


with networking:

Code
bcdedit /set {current} safeboot network

then reboot the machine with

shutdown /r

to put back in normal mode via dos:

Code
bcdedit /deletevalue {current} safeboot

Source from here ==> https://stackoverflow.com/questions/1269...ve#tab-top


Possibly Related Threads...
Thread / Author Replies Views Last Post
[Shell] by Emre_Jan 12, 2021 11:16 PM 0 141 Jan 12, 2021 11:16 PM
Last Post: Emre_
[C] by HardStoNNov 12, 2020 04:02 PM 5 215 Nov 12, 2020 04:02 PM
Last Post: HardStoN
[.NET] by Takehito MorokuzuFeb 6, 2019 02:45 PM 0 145 Feb 6, 2019 02:45 PM
Last Post: Takehito Morokuzu