Building out a command line repository slowly but surely. Looking to also add some weekly security blog content.

CMD Line
  • Home
  • Cisco
    • Cisco Switches Routers
    • VOIP
    • Cisco Command Cheat Sheet
    • Another Cheat Sheet
  • Fortinet
    • Fortigate
  • HPE
    • HPE
  • Juniper
  • Linux
    • Linux Cheat Sheet
    • Linux Commands
  • Mitel
    • Mitel
  • Palo
    • Palo
  • PowerShell
    • Exchange
  • Tools - External Links
    • BPing The ping that beeps
    • Scripting
  • Windows
    • Commands
  • Contact Us
  • More
    • Home
    • Cisco
      • Cisco Switches Routers
      • VOIP
      • Cisco Command Cheat Sheet
      • Another Cheat Sheet
    • Fortinet
      • Fortigate
    • HPE
      • HPE
    • Juniper
    • Linux
      • Linux Cheat Sheet
      • Linux Commands
    • Mitel
      • Mitel
    • Palo
      • Palo
    • PowerShell
      • Exchange
    • Tools - External Links
      • BPing The ping that beeps
      • Scripting
    • Windows
      • Commands
    • Contact Us
CMD Line
  • Home
  • Cisco
    • Cisco Switches Routers
    • VOIP
    • Cisco Command Cheat Sheet
    • Another Cheat Sheet
  • Fortinet
    • Fortigate
  • HPE
    • HPE
  • Juniper
  • Linux
    • Linux Cheat Sheet
    • Linux Commands
  • Mitel
    • Mitel
  • Palo
    • Palo
  • PowerShell
    • Exchange
  • Tools - External Links
    • BPing The ping that beeps
    • Scripting
  • Windows
    • Commands
  • Contact Us

Windows Commands

Reboot into Safe Mode - Run cmd as Adminsitrator

To set safe mode with networking

bcdedit /set {current} safeboot network

To Reboot

shutdown -r -f -t 0

To turn off safe mode on restart

bcdedit /deletevalue {current} safeboot

To Reboot

shutdown -r -f -t 0


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


String to create batch file to delete files in a location

@echo off 

forfiles /p "C:\foldername" /s /m *.* /d -60 /c "cmd /c del @file" 

pause

Save as .bat file and schedule in task scheduler


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

MSIInstaller needs to run in safemode

REG ADD "HKLM\SYSTEM\CurrentControlSet\Control\SafeBoot\Minimal\MSIServer" /VE /T REG_SZ /F /D "Service" 

REG ADD "HKLM\SYSTEM\CurrentControlSet\Control\SafeBoot\Network\MSIServer" /VE /T REG_SZ /F /D "Service" net start msiserver

net start msiserver


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

Open control panel from cmd

start control




CMD Line

Copyright © 2024 CMD Line - All Rights Reserved.

Powered by GoDaddy

This website uses cookies.

We use cookies to analyze website traffic and optimize your website experience. By accepting our use of cookies, your data will be aggregated with all other user data.

Accept