We have another ConnectWise Automate video on creating a script from a set of demands, helping you streamline your automation processes and boost efficiency.
Step By Step:
- Open the computer management screen where you want to create the script from a set of commands.
- In the computer management screen, go to Tools and select Command Prompt.
- Type the command
net stop spoolerin the command prompt and press Enter. - Wait for the command to run and ensure it completes successfully.
- Enter the command to delete the spool cache in the command prompt and press Enter.
- When prompted, confirm that you want to delete the files by selecting Yes.
- Type the command
net start spoolerin the command prompt and press Enter. - Wait for the command to complete successfully. Return to the Computer Management Screen.
- Right-click the gear icon and go to Commands.
- You will see the commands you just executed (stop, delete, start spooler) listed in the screen.
- Select the commands you wish to create a script from (hold Ctrl to select multiple commands).
- Right-click any of the selected commands and click Create Script.
- The script creation process will load in the background.
- Even if the commands appear out of order, the script engine will correctly reorder them based on the sequence they were executed (e.g.,
net stop spoolerwill be the first). - Name your script (e.g., Clear the Print Spool Cache). Click Save to save the script.
- Now you have a script that automates the process, and instead of manually running the commands, you can use this script to perform the task on multiple agents.