电脑的时间同步电池坏掉了,每次开机都要调整时间

电脑的时间同步的电池没电了,每天开机时间都不对,要打开时间同步按钮来设置时间

解决方案

1.找到这个设置并打开,实际上,要打开这个界面,时间才会同步,可能是我的电脑原因,所以我没办法打开这个就结束了

2.写一个bat脚本,后缀为.bat就可以了

复制代码
@echo off
title Network Time Sync Tool
color 0A

echo =========================================
echo           Network Time Sync Tool
echo =========================================
echo.
echo This tool will help you sync network time through Windows settings
echo.
echo Preparing...
echo.

:: Check for administrator privileges
net session >nul 2>&1
if %errorLevel% equ 0 (
    echo Administrator privileges detected, attempting automatic time sync...
    echo.
    w32tm /resync /force
    
    if %errorLevel% equ 0 (
        echo =========================================
        echo Time synchronization successful!
        echo.
        echo Current system time: %date% %time%
        echo =========================================
        echo.
        echo Your system time has been successfully synced with network time.
        pause
        exit /b
    ) else (
        echo Automatic sync failed, will open time settings interface...
    )
)

echo =========================================
echo Please follow these steps to sync time manually:
echo 1. Select the "Sync" button in the popup window
echo 2. The window will close automatically after 3 seconds
echo =========================================
echo.

:: Open Windows time settings
start ms-settings:dateandtime

echo Time settings window has opened, please complete the synchronization.
echo Window will close automatically in 3 seconds...
echo.

:: Wait for 3 seconds
timeout /t 3 /nobreak >nul

:: Close the time settings window
taskkill /f /im SystemSettings.exe >nul 2>&1

3.把bat文件放到启动文件夹里面

看我的路径,找不到的就win+r,然后输入下面的指令

复制代码
shell:Common Startup
相关推荐
俊哥工具1 天前
解决文件正在使用无法删除,顽固文件清理工具超好用
智能手机·电脑·word·音视频·媒体
OsDepK1 天前
mimo code安装教程
git·电脑·ai编程
Digitally1 天前
7 种方法将三星S26/S25/S24/S23手机视频传电脑
智能手机·电脑·音视频
鲲穹AI超级员工2 天前
电脑端各类音频编辑处理程序基础信息完整整理记录
电脑·音频处理
wjql23 天前
免费远程控制软件哪个好用 无界趣连2.0免费吗
电脑
红糖奶茶3 天前
显卡打不上驱动的原因和解决办法
windows·电脑
一杯奶茶¥3 天前
系统重装后如何使用万能驱动软件给新系统安装驱动
windows·电脑·系统重装
wjql23 天前
手机远程控制电脑的方法 手机怎么连接电脑
智能手机·电脑
开开心心_Every3 天前
带OCR识别的电子发票打印工具
运维·自动化·ocr·电脑·powerpoint·音视频·lua
啦啦啦~~~2223 天前
专为非小米笔记本电脑设计,小米手机互联服务通用版 新版分享,新增设备列表窗口删除设备功能
智能手机·电脑·开源软件