找回密码
 注册
搜索
[新手上路]批处理新手入门导读[视频教程]批处理基础视频教程[视频教程]VBS基础视频教程[批处理精品]批处理版照片整理器
[批处理精品]纯批处理备份&还原驱动[批处理精品]CMD命令50条不能说的秘密[在线下载]第三方命令行工具[在线帮助]VBScript / JScript 在线参考
查看: 23398|回复: 7

[其他] [分享]Win10-Win11-NVIDIA最新驱动下载的批处理

[复制链接]
发表于 2023-7-26 21:46:19 | 显示全部楼层 |阅读模式
请参考Q-04把bat文件保存为ANSI编码:
https://mp.weixin.qq.com/s/Koje4FufWxWBs7ioDy_LJA

Win10-Win11-NVIDIA最新驱动下载.bat
  1. @echo off
  2. set "FileTemp=%temp%\BatHome.log"
  3. set "BaseURI=https://gfwsl.geforce.cn/services_toolkit/services/com/nvidia/services/AjaxDriverService.php"
  4. REM psid=120 # Geforce RTX 30 Series
  5. REM pfid=929 # RTX 3080
  6. REM osID=57 # Windows 10 64bit
  7. REM https://learn.microsoft.com/en-us/openspecs/office_standards/ms-oe376/6c085406-a698-4e12-9d4d-c3b0ee3dbc4a
  8. REM languageCode=2052 # Chinese - People's Republic of China
  9. set "FullURI=%BaseURI%?func=DriverManualLookup&psid=120&pfid=929&osID=57&languageCode=2052&isWHQL=1&dch=1&sort1=0&numberOfResults=1"
  10. curl -o "%FileTemp%" "%FullURI%"
  11. for /f "delims=" %%i in ('powershell "(Get-Content '%FileTemp%' | ConvertFrom-Json).IDS[0].downloadInfo.Version"') do (
  12.     set "VersionNum=%%i"
  13. )
  14. set "DownloadURL=https://cn.download.nvidia.com/Windows/%VersionNum%/%VersionNum%-desktop-win10-win11-64bit-international-dch-whql.exe"
  15. set "FileOut=%~dp0%VersionNum%-desktop-win10-win11-64bit-international-dch-whql.exe"
  16. bitsadmin /transfer myDownloadJob /download /priority foreground "%DownloadURL%" "%FileOut%"
复制代码
参考:https://github.com/lord-carlos/nvidia-update
发表于 2023-7-28 17:33:29 | 显示全部楼层
真好用 感谢大佬
发表于 2023-7-28 18:08:06 | 显示全部楼层
PS D:\test\Nvdia> Get-ExecutionPolicy -List

        Scope ExecutionPolicy
        ----- ---------------
MachinePolicy       Undefined
   UserPolicy       Undefined
      Process    RemoteSigned
  CurrentUser    RemoteSigned
LocalMachine    RemoteSigned


PS D:\test\Nvdia> powershell -file .\nvidia.ps1
无法加载文件 D:\test\Nvdia\nvidia.ps1。未对文件 D:\test\Nvdia\nvidia.ps1 进行数字签名。无法在当前系统上运行该脚本。有关
运行脚本和设置执行策略的详细信息,请参阅 https:/go.microsoft.com/fwlink/?LinkID=135170 中的 about_Execution_Policies。
    + CategoryInfo          : SecurityError: ( [],ParentContainsErrorRecordException
    + FullyQualifiedErrorId : UnauthorizedAccess

脚本右键属性也看了,没有锁定。

Windows 11 22H2 x64 zh-cn 管理员也无法运行。

这是怎么回事,找了台Windows 10的系统,发现可以运行。
发表于 2023-7-28 18:15:43 | 显示全部楼层
没事了,
在这里找到解决方法了:https:/go.microsoft.com/fwlink/?LinkID=135170

Set-ExecutionPolicy -ExecutionPolicy Unrestricted
发表于 2023-8-12 23:37:20 | 显示全部楼层
好方案,学习了
发表于 2025-3-14 08:28:58 | 显示全部楼层
本帖最后由 lovekix 于 2025-3-15 08:09 编辑

好像 不能用了
是不是需要更新下网址了

发表于 2025-3-27 18:59:15 | 显示全部楼层
好像 不能用了
是不是需要更新下网址了
lovekix 发表于 2025-3-14 08:28



测试了一下 脚本正常下载....?
发表于 2025-3-27 21:24:37 | 显示全部楼层
回复 7# jifeiyun


    真的可以正常下载吗?为什么我测试时来源不正确直接服务器拒绝访问?
http://www.bathome.net/thread-70668-1-1.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|批处理之家 ( 渝ICP备10000708号 )

GMT+8, 2026-3-17 07:25 , Processed in 0.018772 second(s), 8 queries , File On.

Powered by Discuz! X3.5

© 2001-2026 Discuz! Team.

快速回复 返回顶部 返回列表