Windows 10: Running a Command Line Command From a File Automatically

Discus and support Running a Command Line Command From a File Automatically in Windows 10 Installation and Upgrade to solve the problem; I have the following commands which need to be run in the command line: sc.exe config wuauserv start= disabled sc.exe stop wuauserv I want to... Discussion in 'Windows 10 Installation and Upgrade' started by BerndStrauss, Aug 3, 2018.

  1. Running a Command Line Command From a File Automatically


    I have the following commands which need to be run in the command line:


    sc.exe config wuauserv start= disabled

    sc.exe stop wuauserv



    I want to create a file which, when launched, opens the command line, sends the above commands to the command line, and then closes the command line. I will then add a task in Task Scheduler to run the file at startup each time, so that updates may not be enabled. (I have disabled Windows Update in Services, but it re-enables itself after some time.)


    How can I create this file (whether .bat or .cmd)?

    :)
     
    BerndStrauss, Aug 3, 2018
    #1
  2. Naki Win User

    GPU-Z what command line parameter ?

    Suggestion: /? (-?) and /help (-help) command-line arguments to show a list of all possible arguments in a small window. *Smile Running a Command Line Command From a File Automatically :)
     
    Naki, Aug 3, 2018
    #2
  3. ryanly Win User
    GPU-Z what command line parameter ?

    Current /? (-?) or / help (-help) parameter is invalid
     
    ryanly, Aug 3, 2018
    #3
  4. Running a Command Line Command From a File Automatically

    Execute a command from SCCM Task sequence step "Run a Command line"

    Hi,

    Thanks for your suggestion.

    That will work indeed, however I need to run it from the SCCM Task Sequence's Run Command Line Step and I am not able to figure out how to do that.

    Can we change line while executing command from SCCM Task Sequence's Run Command Line Step?

    Regards
     
    sccm_learner, Aug 3, 2018
    #4
Thema:

Running a Command Line Command From a File Automatically

Loading...
  1. Running a Command Line Command From a File Automatically - Similar Threads - Running Command Line

  2. Command line commands

    in Windows 10 Customization
    Command line commands: I would like to create a shortcut on the desktop using a command in a .bat file. I would like to specify what icon file to use, what program to execute, and the parameters to pass to the program. I have researched MKLINK but I don't think it will do the job. Any...
  3. Command Line

    in Windows 10 Network and Sharing
    Command Line: I am attempting to copy and entire directory from one HDD to another, by keep getting an error of "Invalid umber of parameters." The file path to the Directory is as follows: G:\Users\USERNAME\Desktop\OLD OS FOLDER The destination folder is C:\OLDOS Can someone PLEASE...
  4. Command Line command question

    in Windows 10 Network and Sharing
    Command Line command question: I created a folder on my computer with a ampersand, name & name2 Recently I needed to access this folder but the ampersand prevented me from accessing using the 'cd' from the root c:\ Would someone be so kind to provide me with the syntax I need? I realize now I should...
  5. Command Line

    in Windows 10 Ask Insider
    Command Line: My command line shows a different name when im the only user on the pc. submitted by /u/Fuadop [link] [comments] https://www.reddit.com/r/Windows10/comments/hv4f7i/command_line/
  6. Deleting files with command line

    in Windows 10 Network and Sharing
    Deleting files with command line: I used del filename and it was successfully deleted. I also used dir to double check. However, when I checked the Recycle Bin; the file wasn't found inside. Was this file permanently deleted?...
  7. Command Line

    in Windows 10 Support
    Command Line: Is there a command line entry that will help check and repair drivers, and .dll's files. Or a way to have W10 (1909) repair/replace Only whats corrupt or missing? 148659
  8. Command Line

    in Windows 10 Network and Sharing
    Command Line: Hello sir. I am using windows 10 64bit. Earlier the netsat command use to work but it doesnt work now. whenever i try this command it displa an error. C:\>netstat 'netstat' is not recognized as an internal or external command, operable program or batch file. i have tried...
  9. Windows Command-Line: The Evolution of the Windows Command-Line

    in Windows 10 News
    Windows Command-Line: The Evolution of the Windows Command-Line: Welcome to the second post in this "Windows Command-Line" series. In this post we'll discuss some of the background & history behind the Windows Command-Line. Specifically, we’ll explore its humble origins in MS-DOS, to its modern-day incarnation supporting tools like...
  10. Run a scheduled task via command line via command line

    in Windows 10 Support
    Run a scheduled task via command line via command line: i want start a Run a scheduled task via command line like this: Code: %SystemRoot%\system32\taskschd.msc /Run /TN "RegIdleBackup" when i run the cmd in the prompt as admin the shedular task GUI pop up but the task not start. Is there a solution? Is the...

Users found this page by searching for:

  1. insert Powercfg h off in a task sequence

    ,
  2. task sequence Invalid command line argument /shutdown:%OSDShutdownPreparedOs%

    ,
  3. sccm task sequence invalid command line argument 1639