![]() ![]() Using & (IF) means execute the first command and run the second if it succeeds, which might have been a better idea for the example given above. There are a couple of additional conditional execution operators that can be useful. For example, the following command will make a directory and then copy a file to it: md C:\Temp & copy file.txt C:\Temp\file.txt Two or more commands can be ran within one Run Command Line task by separating commands with the & (AND) operator. But sometimes combining multiple commands into a single step will be more efficient. When needing to run multiple commands, adding a separate Run Command Line tasks for each command will work. When building an SCCM task sequence, a Run Command Line task can be added to execute CMDs: Successfully Tested On: Microsoft System Center Configuration Manager versions 1806 - 1906, Microsoft Endpoint Configuration Manager versions 1910 - 2010, Windows 10 Enterprise versions 1809 - 21H1
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |