If you want to kick off your day with a dose of motivation, like I do, you may get your Windows 11 PC to show you your chosen motivational quotes every morning. Setting this up is easier than you think, and I’ll walk you through the steps.

Step 1: Create a Text File With Your Quotes

The first thing to do is to create a text file containing your favorite quotes. Your PC will pick a random quote from this file and show it to you every morning.

To do that, launch Windows Search (press Windows+S), typeNotepad, and open the app. In a new document, type your quotes (one per line). For example:

Notepad’s “Save As” window to save the quotes text file.

After you’ve added all your favorite quotes, from Notepad’s menu bar, select File > Save. Choose the folder where you want to save the file. Click the “File Name” field and typequotes.txt. Then, choose “Save.”

Step 2: Make a Batch File That Randomly Picks a Quote

You’ll now create abatch filethat chooses a random quote from your quotes file.

To do this, open Windows Search (press Windows+S), typeNotepad, and launch the app. In a new document, type the following:

Notepad’s “Save As” window to save the quotes batch file.

In the script, make sure to replace the given path with the path to your quotes file. Also, at the end of the file, you’ll notice 10. It means the file will show your quote for 10 seconds. If you want it to display the quote until you manually dismiss it, replace 10 with0.

Then, save the file by choosing File > Save. Select a folder to save the file in. Click the “Save as Type” drop-down menu and choose “All Files.” Select the “File Name” field and typeshowquote.bat. Then, click “Save.”

“Begin the Task” and “OK” highlighted on the “New Trigger” window.

Step 3: Schedule Quotes With Task Scheduler

You’ll now make your PC launch the batch file you created every morning using Windows 11’s built-in Task Scheduler utility. To do that, open Windows Search (press Windows+S), typeTask Scheduler, and open the utility. On the right pane, click “Create Task.”

Click the “Name” field and type something likeMotivational Quote. Access the “Triggers” tab and choose “New.” Select the “Begin the Task” drop-down menu and choose “At Log On.” This launches your batch file each time you boot your PC. Then, click “OK.”

“Browse” and “OK” highlighted on the “New Action” window.

Open the “Actions” tab and click “New.” For the “Program/Script” field, click “Browse” and choose the batch file you created earlier (not the quotes file). Then, click “OK.”

Select “OK” to save your task.

From now on, every time youlog in to your PC, Task Scheduler will run the batch file and show you one of your chosen quotes. This way, you get a new quote on your screen every morning.

To keep it fresh, you’re able to keep updating and modifying your quotes file to add and remove quotes.

Notepad’s “Save As” window to save the quotes PowerShell script.

Use PowerShell to Display Quotes

If you want to see quotes in a PowerShell window, launch the Notepad app.

Type the following code, replacing the quotes file path with the path to your quotes file.

“Program/Script,” “Add Arguments (Optional),” and “OK” highlighted on the “Edit Action” window.

In Notepad’s menu bar, select File > Save As. Select a folder to save the file in. Click the “Save as Type” drop-down menu and choose “All Files.” Click the “File Name” field and typeshowquote.ps1. Then, choose “Save.”

Launch the Task Scheduler utility, edit your task, and edit the action in it. In the “Program/Script” field, typepowershell.exe. In the “Add Arguments (Optional)” field, type the following. Make sure to replace the path in this code with the path of your PowerShell script.

Select “OK” and choose “OK” again to save the task.

And that’s how you can get your Windows 11 PC to automatically motivate you with a new quote every morning. Like that, you canautomate many other tasks using batch fileson your Windows 11 PC.