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

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

解决方案

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
相关推荐
hflmwl81 天前
RamCache电脑加速软件工具安装下载
电脑·ramcache电脑加速软件·ramcache·ramcache下载·ramcache工具安装下载·ramcache电脑加速·ramcache电脑加速下载
饮水桶_T2 天前
Java调用大语言模型 笔记
笔记·设计模式·电脑·ai编程
陈工大模型2 天前
MacOS 跨平台压缩包处理:从编码痛点到工程化落地的完整方案
windows·macos·缓存·电脑·策略模式·c盘清理
饮水桶_T3 天前
Java调用大语言模型、多轮对话 笔记
笔记·算法·设计模式·电脑·ai编程
开开心心就好3 天前
电脑禁止自动休眠工具,还能按负载定时
算法·智能手机·pdf·电脑·word·音视频·lua
Name_NaN_None5 天前
安卓手机远程控制电脑方法(Android/Windows) —— 「小白教程」
android·windows·智能手机·电脑·笔记本
Digitally7 天前
三星手机照片传输到平板的 5 种简易方法
智能手机·电脑
Digitally7 天前
如何在宏碁笔记本电脑上录制屏幕?
电脑
代码改善世界8 天前
鸿蒙电脑能被远程控制吗?ToDesk鸿蒙双向远控能力解析
华为·电脑·harmonyos
Vex2une12 天前
电脑装双系统怎么弄?Win+Win 与 Win+Linux 安装及启动菜单管理全攻略
linux·windows·电脑·uefi·双系统安装·bcdedit启动项