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

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

解决方案

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
相关推荐
东风西巷18 小时前
K-Lite Mega/FULL Codec Pack(视频解码器)
前端·电脑·音视频·软件需求
ONETHING_CLOUD_23 天前
电脑可以连蓝牙耳机吗?
经验分享·科技·电脑·数码
Digitally3 天前
如何在电脑上编辑三星联系人
电脑
ITHAOGE153 天前
下载 | Win10 2021官方精简版,预装应用极少!(9月更新、Win 10 IoT LTSC 2021版、适合老电脑安装)
windows·科技·物联网·microsoft·微软·电脑
驱动小百科4 天前
电脑开机显示屏显示无信号怎么办 原因及解决方法
电脑·电脑黑屏·显示器无信号·电脑开机无信号·电脑无信号怎么办
科技智驱4 天前
电脑格式化了还能恢复数据吗?硬盘格式化恢复教程分享
电脑·数据恢复
Digitally4 天前
如何将华为手机的照片转移到电脑
华为·智能手机·电脑
GIS小小研究僧4 天前
银河麒麟设置右键新建Ofiice文件
华为·电脑·gis
学习研习社4 天前
移动硬盘上的文件消失了?以下是Mac电脑解决方法
macos·电脑
RoboWizard5 天前
移动固态硬盘连接手机无法读取是什么原因?
java·spring·智能手机·电脑·金士顿