使用新电脑的初期是幸福的——一切运行顺利,机器不会变热。随着使用次数的增加,您会注意到这里和那里有些滞后(some lagging here and there),并且整体性能会随着时间的推移而下降。
PC 开始挂起,因为内存可能被不必要的文件堵塞,其中大部分您将永远不会再使用。为了使您的计算机处于最佳状态,您需要执行一些维护任务。
更何况您随时可能因为不可预见的情况而丢失您的数据,而日常维护确保您不会丢失任何东西。如果您忘记备份或优化您的 PC 也没关系,因为有一些创造性的方法可以在自动运行时完成所有操作。
(Automate Common Maintenance Tasks)自动化Windows 10(Windows 10)中的常见维护任务
在本节中,我将向您展示如何在您的 Windows 10 机器上执行以下任务:
- 自动清洁系统驱动器。
- 自动备份您的文件。
- 在最佳时间更新 Windows(Update Windows)、设备驱动程序和应用程序。
如果您不了解上述解决方案,也没关系。继续阅读,因为我将为您提供有关它们中的每一个的详细指南。
1]自动清理(Clean)系统驱动器
您应该定期清除系统驱动器上不需要的文件,尤其是在磁盘存储空间有限的情况下。有几种方法可以清理系统驱动器,但您不必强调所有这些方法,因为我将向您展示如何自动化这些任务并减少您的工作量。
使用 Storage Sense(Use Storage Sense)自动清理硬盘驱动器
微软在Windows 10中引入了(Windows 10)Storage Sense。它会删除临时文件和回收站(Recycle Bin)中的文件。您可以将清理系统驱动器的任务委托给 Storage Sense,因为它不会删除您的重要文件。
按 Windows key + I 组合打开Settings,然后转到 System > Storage。在这里,打开 Storage Sense选项。这会在您的机器上启用Storage Sense 。
要配置删除的内容以及何时删除,请单击更改我们自动释放空间(Change how we free up space automatically)的方式。
安排磁盘清理实用程序任务
Windows 磁盘清理实用程序(Windows Disk Cleanup Utility)无需介绍。它为您提供了从计算机中删除各种垃圾文件的选项。只需单击一个按钮,您就可以摆脱下载的程序文件、临时 Internet 文件、缩略图、回收站(Recycle Bin)文件等。
您可以使用任务计划程序将其(using the Task Scheduler)安排为每隔一段时间自动运行一次,而不是偶尔手动使用磁盘清理实用(Disk Cleanup Utility)程序。这是如何做到的:
按(Press)Windows键并搜索任务计划程序(task scheduler)。从搜索结果中打开任务计划程序。(Task Scheduler)单击(Click)任务计划程序中的操作(Action)菜单,然后选择 创建基本任务。(Create Basic Task.)
为新任务命名和描述,然后单击下一步(Next)按钮。在下一个屏幕上,指定您希望任务运行的时间间隔。您可以将其设置为每天、每周、每月等运行。触发器也可以激活任务。例如,当计算机启动、登录或记录特定事件时。
接下来,选择 Action,它指的是您要安排的内容。在这种情况下,选择 启动程序(Start a program)选项。Program/script字段中输入(Enter)以下脚本 :
C:\Windows\system32\cleanmgr.exe
最后,查看新任务的摘要并点击Finish。
阅读(Read):保持 Windows 10 处于良好运行状态的提示(Tips to maintain Windows 10 in good running condition)。
2]自动备份文件
没有人计划让他们的驱动器崩溃以任何方式丢失他们的重要文件。定期备份您的文件和设置将使您免于丢失数据。大多数人会发现很难记住定期备份他们的文件,这就是为什么自动备份至关重要。
幸运的是,Windows 10 带有 文件历史记录(File History )功能,可以简化备份程序。这个功能很复杂,但很容易使用。您所要做的就是在启用该功能的情况下将外部硬盘驱动器连接到您的计算机,Windows将在连接的驱动器上备份您的重要文件。
您可以查看这篇文章以了解如何使用文件历史记录来备份和恢复文件。
3]在最佳时间更新 Windows(Update Windows)、设备驱动程序和应用程序
用户面临的许多硬件问题归结为过时的应用程序或驱动程序。当您的驱动程序有可用更新时, Windows(Windows)也不会提醒您。用户能够在早期的Windows版本中阻止(Windows)Windows更新,但您现在所能做的就是推迟挂起的更新。
活动时间设置可防止您的机器在不适当的时间进行更新。使用此功能,您现在可以将系统设置为在 活动时间(active hours)更新,这取决于您使用计算机的方式。
按 Windows key + I并从设置(Settings)屏幕中选择更新和安全。(Updates & Security)接下来,单击更改活动时间(Change active hours)选项并将其更改 为根据活动自动调整此设备的活动时间(Automatically adjust active hours for this device based on activity)。
希望这可以帮助!
阅读下一篇(Read next):使用 dMaintenance 创建您自己的 Windows 维护任务(Create your own Windows Maintenance tasks using dMaintenance)。
How to automate Common Maintenance Tasks in Windows 10
The early days of using a new compυter are blissfυl – everything runs smoothly, and the machine doesn’t get hot. With mоre use, you notiсe some lagging here and there, and the overall performance drops with time.
The PC started hanging because the memory is probably clogged with unnecessary files, most of which you’ll never use again. To keep your computer in optimum conditions, you need to perform some maintenance tasks.
Not to mention that you may lose your data at any time due to unforeseen circumstances, and routine maintenance ensures that you don’t lose anything. It’s okay if you forget to back up or optimize your PC because there are some creative ways to do it all on autorun.
Automate Common Maintenance Tasks in Windows 10
In this section, I’ll show you how to carry out the following tasks on your Windows 10 machine:
- Clean the system drives automatically.
- Automatically back up your files.
- Update Windows, device drivers, and apps at the best times.
It’s okay if you don’t understand the above solutions. Keep reading because I’ll give you detailed guides on each of them.
1] Clean the system drive automatically
You should get rid of unneeded files on your system drive periodically, especially if you have limited storage on the disk. There are several ways to clean the system drive, but you don’t have to make it a point to do all of them because I’ll show you how to automate these tasks and reduce your work.
Use Storage Sense to automate hard drive cleaning
Microsoft introduced Storage Sense in Windows 10. It deletes temporary files and those in Recycle Bin. You can delegate the task of cleaning your system drive to Storage Sense because it won’t delete your important files.
Press the Windows key + I combination to open Settings and then go to System > Storage. Here, toggle ON the Storage Sense option. This enables Storage Sense on your machine.
To configure what gets deleted and when to delete it, click on the Change how we free up space automatically.
Schedule Disk Cleanup Utility tasks
The Windows Disk Cleanup Utility needs no introduction. It gives you options to remove all kinds of junk files from your computer. With the click of a button, you can get rid of downloaded program files, temporary internet files, thumbnails, Recycle Bin files, etc.
Instead of manually using the Disk Cleanup Utility once in a while, you can schedule it to run automatically at intervals using the Task Scheduler. Here’s how to do it:
Press the Windows key and search for task scheduler. Open Task Scheduler from the search results. Click on the Action menu in Task Scheduler and select Create Basic Task.
Give the new task a name and description, and click the Next button. On the next screen, specify the interval you want the task to run. You can set it to run daily, weekly, monthly, etc. A trigger can also activate the task. For example, when the computer starts, logs on, or when a specific event is logged.
Next, select the Action, which refers to what you want to schedule. In this case, choose the Start a program option. Enter the following script in the Program/script field:
C:\Windows\system32\cleanmgr.exe
Finally, review the summary of your new task and hit Finish.
Read: Tips to maintain Windows 10 in good running condition.
2] Automatically backup files
No one plans for their drives to crash to lose their vital files in any way. Backing up your files and settings regularly will save you from data loss. Most people will find it tough to remember to back up their files regularly, and that’s why automating your backups is crucial.
Fortunately, Windows 10 comes with the File History feature that eases the backing up routine. This feature is sophisticated but quite easy to use. All you have to do is connect an external hard drive to your computer with the feature enabled, and Windows will back up your vital files on the connected drive.
You can check out this post to learn how to use File History to back up and restore files.
3] Update Windows, device drivers, and apps at the best times
Many hardware issues that users face are down to outdated applications or drivers. Windows also doesn’t alert you when updates of your drivers are available. Users were able to block Windows updates in earlier Windows editions, but all you can do now is postpone pending updates.
The Active Hours setting prevents your machine from updating at inappropriate times. With this feature, you can now set your system to update during your active hours, which is determined by the way you use your computer.
Press Windows key + I and select Updates & Security from the Settings screen. Next, click on the Change active hours option and change it to Automatically adjust active hours for this device based on activity.
Hope this helps!
Read next: Create your own Windows Maintenance tasks using dMaintenance.