DD Windows 一键脚本(GCP谷歌云Oracle甲骨文Azure微软云OVH云)

说明

  • 无限制全自动dd安装Windows;
  • 突破没有VNC,没有救援模式,内存比dd包小的限制;
  • 使用Debian Live CD中的busybox做中间媒介,经过复杂的处理使本机的网络参数传进Windows操作系统中;
  • 即使没有DHCP能够让Windows获取网络参数,也能让Windows操作系统在开机的第一时间能够连通网络;
  • 本站所提供的脚本及安装包均来源于网络并通过测试;
  • 特别注意:脚本不适用于OpenVZ构架的服务器,请勿尝试;

安装依赖

更新系统

#Debian/Ubuntu:
apt-get update

#RedHat/CentOS:
yum update

必要依赖

#Debian/Ubuntu:
apt-get install -y xz-utils openssl gawk file

#RedHat/CentOS:
yum install -y xz openssl gawk file

一键脚本

示例脚本,补全DD包直连地址后运行即可;

wget --no-check-certificate -qO InstallNET.sh 'https://sunpma.com/other/oss/InstallNET.sh' && bash InstallNET.sh -dd '[Windows DD包直链地址]'

精简版DD包

如果没有自己的DD包,可以使用博主提供的包,从以下版本中选择自己需要的系统,然后输入一键脚本即可;

# DD Windows Server 2008 R2 64位 精简版 [账户Administrator密码nat.ee]
wget --no-check-certificate -qO InstallNET.sh 'https://sunpma.com/other/oss/InstallNET.sh' && bash InstallNET.sh -dd 'https://oss.sunpma.com/Windows/Win_Server2008R2_sp1_64_Administrator_nat.ee.gz'

# DD Windows Server 2012 R2 64位 精简版 [账户Administrator密码nat.ee]
wget --no-check-certificate -qO InstallNET.sh 'https://sunpma.com/other/oss/InstallNET.sh' && bash InstallNET.sh -dd 'https://oss.sunpma.com/Windows/Win_Server2012R2_64_Administrator_nat.ee.gz'

# DD Windows Server 2016 64位 精简版 [账户Administrator密码nat.ee]
wget --no-check-certificate -qO InstallNET.sh 'https://sunpma.com/other/oss/InstallNET.sh' && bash InstallNET.sh -dd 'https://oss.sunpma.com/Windows/Win_Server2016_64_Administrator_nat.ee.gz'

# DD Windows Server 2019 64位 精简版 [账户Administrator密码WinSrv2019dc-Chinese]
wget --no-check-certificate -qO InstallNET.sh 'https://sunpma.com/other/oss/InstallNET.sh' && bash InstallNET.sh -dd 'https://oss.sunpma.com/Windows/Win_Server2019_64_Administrator_WinSrv2019dc-Chinese.gz'

# DD Windows Server 2022 64位 精简版 [账户Administrator密码nat.ee]
wget --no-check-certificate -qO InstallNET.sh 'https://sunpma.com/other/oss/InstallNET.sh' && bash InstallNET.sh -dd 'https://oss.sunpma.com/Windows/Win_Server2022_64_Administrator_nat.ee.gz'

# DD Windows7 32位 精简版 [账户Administrator密码nat.ee]
wget --no-check-certificate -qO InstallNET.sh 'https://sunpma.com/other/oss/InstallNET.sh' && bash InstallNET.sh -dd 'https://oss.sunpma.com/Windows/Win7_86_Administrator_nat.ee.gz'

# DD Windows7 sp1 64位 企业精简版 [账户Administrator密码nat.ee]
wget --no-check-certificate -qO InstallNET.sh 'https://sunpma.com/other/oss/InstallNET.sh' && bash InstallNET.sh -dd 'https://oss.sunpma.com/Windows/Win7_sp1_64_Administrator_nat.ee.gz'

# DD Windows8.1 64位 专业精简版 [账户Administrator密码nat.ee]
wget --no-check-certificate -qO InstallNET.sh 'https://sunpma.com/other/oss/InstallNET.sh' && bash InstallNET.sh -dd 'https://oss.sunpma.com/Windows/Win8.1_64_Administrator_nat.ee.gz'

# DD Windows10 2016LTSB 64位 企业深度精简版 [账户Administrator密码nat.ee]
wget --no-check-certificate -qO InstallNET.sh 'https://sunpma.com/other/oss/InstallNET.sh' && bash InstallNET.sh -dd 'https://oss.sunpma.com/Windows/Win10_2016LTSB_64_Administrator_nat.ee.gz'

# DD Windows10 2019LTSC 64位 企业深度精简版 [账户Administrator密码nat.ee]
wget --no-check-certificate -qO InstallNET.sh 'https://sunpma.com/other/oss/InstallNET.sh' && bash InstallNET.sh -dd 'https://oss.sunpma.com/Windows/Win10_2019LTSC_64_Administrator_nat.ee.gz'

# DD Windows10 2021LTSC 64位 企业深度精简版 [账户Administrator密码nat.ee]
wget --no-check-certificate -qO InstallNET.sh 'https://sunpma.com/other/oss/InstallNET.sh' && bash InstallNET.sh -dd 'https://oss.sunpma.com/Windows/Win10_2021LTSC_64_Administrator_nat.ee.gz'

Oracle甲骨文

此DD包仅适用于Oracle甲骨文DD安装Windows使用;(注意:不适用于新出的ARM框架机型)

# DD Windows7 sp1 64位 企业精简版 [账户Administrator密码nat.ee]
wget --no-check-certificate -qO InstallNET.sh 'https://sunpma.com/other/oss/InstallNET.sh' && bash InstallNET.sh -dd 'https://oss.sunpma.com/Windows/Oracle_Win7_sp1_64_Administrator_nat.ee.gz'

# DD Windows8.1 64位 企业精简版 [账户Administrator密码nat.ee]
wget --no-check-certificate -qO InstallNET.sh 'https://sunpma.com/other/oss/InstallNET.sh' && bash InstallNET.sh -dd 'https://oss.sunpma.com/Windows/Oracle_Win8.1_64_Administrator_nat.ee.gz'

# DD Windows10 2016LTSB 64位 企业深度精简版 [账户Administrator密码nat.ee]
wget --no-check-certificate -qO InstallNET.sh 'https://sunpma.com/other/oss/InstallNET.sh' && bash InstallNET.sh -dd 'https://oss.sunpma.com/Windows/Oracle_Win10_2016LTSB_64_Administrator_nat.ee.gz'

# DD Windows10 2019LTSC 64位 企业深度精简版 [账户Administrator密码nat.ee]
wget --no-check-certificate -qO InstallNET.sh 'https://sunpma.com/other/oss/InstallNET.sh' && bash InstallNET.sh -dd 'https://oss.sunpma.com/Windows/Oracle_Win10_2019LTSC_64_Administrator_nat.ee.gz'

# DD Windows10 2021LTSC 64位 企业深度精简版 [账户Administrator密码nat.ee]
wget --no-check-certificate -qO InstallNET.sh 'https://sunpma.com/other/oss/InstallNET.sh' && bash InstallNET.sh -dd 'https://oss.sunpma.com/Windows/Oracle_Win10_2021LTSC_64_Administrator_nat.ee.gz'

# DD Windows Server 2008 R2 64位 精简版 [账户Administrator密码nat.ee]
wget --no-check-certificate -qO InstallNET.sh 'https://sunpma.com/other/oss/InstallNET.sh' && bash InstallNET.sh -dd 'https://oss.sunpma.com/Windows/Oracle_Win_Server2008R2_sp1_64_Administrator_nat.ee.gz'

# DD Windows Server 2012 R2 64位 精简版 [账户Administrator密码nat.ee]
wget --no-check-certificate -qO InstallNET.sh 'https://sunpma.com/other/oss/InstallNET.sh' && bash InstallNET.sh -dd 'https://oss.sunpma.com/Windows/Oracle_Win_Server2012R2_64_Administrator_nat.ee.gz'

# DD Windows Server 2016 64位 精简版 [账户Administrator密码nat.ee]
wget --no-check-certificate -qO InstallNET.sh 'https://sunpma.com/other/oss/InstallNET.sh' && bash InstallNET.sh -dd 'https://oss.sunpma.com/Windows/Oracle_Win_Server2016_64_Administrator_nat.ee.gz'

# DD Windows Server 2022 64位 企业深度精简版 [账户Administrator密码nat.ee]
wget --no-check-certificate -qO InstallNET.sh 'https://sunpma.com/other/oss/InstallNET.sh' && bash InstallNET.sh -dd 'https://oss.sunpma.com/Windows/Oracle_Win_Server2022_64_Administrator_nat.ee.gz'

阿里云

以下DD包适用于阿里云DD安装Windows使用;

# DD Windows7 32位 精简版 [账户Administrator密码nat.ee]
wget --no-check-certificate -qO InstallNET.sh 'https://sunpma.com/other/oss/InstallNET.sh' && bash InstallNET.sh -dd 'https://oss.sunpma.com/Windows/Aliyun_Win7_86_Administrator_nat.ee.gz'

# DD Windows10 2019LTSC 64位 企业深度精简版 [账户Administrator密码nat.ee]
wget --no-check-certificate -qO InstallNET.sh 'https://sunpma.com/other/oss/InstallNET.sh' && bash InstallNET.sh -dd 'https://oss.sunpma.com/Windows/Aliyun_Win10_2019LTSC_64_Administrator_nat.ee.gz'

# DD Windows10 2021LTSC 64位 企业深度精简版 [账户Administrator密码nat.ee]
wget --no-check-certificate -qO InstallNET.sh 'https://sunpma.com/other/oss/InstallNET.sh' && bash InstallNET.sh -dd 'https://oss.sunpma.com/Windows/Aliyun_Win10_2021LTSC_64_Administrator_nat.ee.gz'

Azure微软云

以下DD包适用于Azure微软云DD安装Windows使用;

# DD Windows Server 2008 R2 64位 精简版[账户Administrator密码nat.ee]
wget --no-check-certificate -qO InstallNET.sh 'https://sunpma.com/other/oss/InstallNET.sh' && bash InstallNET.sh -dd 'https://oss.sunpma.com/Windows/Win_Server2008R2_sp1_64_Administrator_nat.ee.gz'

# DD Windows Server 2012 R2 64位 精简版[账户Administrator密码nat.ee]
wget --no-check-certificate -qO InstallNET.sh 'https://sunpma.com/other/oss/InstallNET.sh' && bash InstallNET.sh -dd 'https://oss.sunpma.com/Windows/Oracle_Win_Server2012R2_64_Administrator_nat.ee.gz'

# DD Windows Server 2016 64位 精简版 [账户Administrator密码nat.ee]
wget --no-check-certificate -qO InstallNET.sh 'https://sunpma.com/other/oss/InstallNET.sh' && bash InstallNET.sh -dd 'https://oss.sunpma.com/Windows/Win_Server2016_64_Administrator_nat.ee.gz'

# DD Windows Server 2022 64位 精简版 [账户Administrator密码nat.ee]
wget --no-check-certificate -qO InstallNET.sh 'https://sunpma.com/other/oss/InstallNET.sh' && bash InstallNET.sh -dd 'https://oss.sunpma.com/Windows/Win_Server2022_64_Administrator_nat.ee.gz'

# DD Windows7 sp1 64位 企业精简版 Hyper-V Xen Nvme [账户Administrator密码nat.ee]
wget --no-check-certificate -qO InstallNET.sh 'https://sunpma.com/other/oss/InstallNET.sh' && bash InstallNET.sh -dd 'https://oss.sunpma.com/Windows/Win7_sp1_64_Hv_Xen_Nvme_Administrator_nat.ee.gz'

# DD Windows8.1 64位 适量精简版 [账户Administrator密码Vicer]
wget --no-check-certificate -qO InstallNET.sh 'https://sunpma.com/other/oss/InstallNET.sh' && bash InstallNET.sh -dd 'https://oss.sunpma.com/Windows/Win8.1_64_Administrator_Vicer.gz'

# DD Windows10 2019LTSC 64位 企业适量精简版 [账户Administrator密码Vicer]
wget --no-check-certificate -qO InstallNET.sh 'https://sunpma.com/other/oss/InstallNET.sh' && bash InstallNET.sh -dd 'https://oss.sunpma.com/Windows/Win10_2019LTSC_64_Administrator_Vicer.gz'

其它脚本
先使用以下命令及脚本重新安装系统为Debian 10然后再使用此脚本选择自定义链接Custom image安装Windows
Debian 10默认登录账号和密码:root / Pwd@Linux

# 更新系统及必要依赖
apt-get install wget sudo net-tools xz-utils openssl gawk file wget  -y
apt-get update -y
apt-get upgrade -y
apt-get install -y xz-utils openssl gawk file
apt-get install -y xz-utils openssl gawk file wget screen && screen -S os
apt-get install virt-what -y
virt-what
apt-get install build-essential libpcsclite1 -y

# 一键脚本命令
wget --no-check-certificate -O AutoReinstall.sh https://git.io/AutoReinstall.sh && bash AutoReinstall.sh

# DD Windows7 sp1 64位 企业精简版 Hyper-V Xen[账户Administrator密码nat.ee]
https://oss.sunpma.com/Windows/Win7_sp1_64_Hv_Xen_Administrator_nat.ee.gz

GCP谷歌云

GCP谷歌云OVH云服务器等需要指定网络参数安装的方式,示例为GCP谷歌云

# 将X.X.X.X替换为自己的网络参数.
# --ip-addr :IP Address/内网IP地址
# --ip-mask :Netmask   /子网掩码
# --ip-gate :Gateway   /网关
wget --no-check-certificate -qO InstallNET.sh 'https://sunpma.com/other/oss/InstallNET.sh' && bash InstallNET.sh --ip-addr X.X.X.X --ip-mask X.X.X.X --ip-gate X.X.X.X -dd 'DD包 直链地址'

例:
替换--ip-addr后面的X.X.X.X为你自己的内网IP,注意查看ip-gate网关信息是否于你机器的网关相同;
在GCP谷歌云 Debian / Ubuntu 测试成功, CentOS 未测试;
账户:Administrator 密码:nat.ee
GCP谷歌云 香港

wget --no-check-certificate -qO InstallNET.sh 'https://sunpma.com/other/oss/InstallNET.sh' && bash InstallNET.sh --ip-addr X.X.X.X --ip-mask 255.255.255.0 --ip-gate 10.170.0.1 -dd 'https://oss.sunpma.com/Windows/Win7_sp1_64_Administrator_nat.ee.gz'

GCP谷歌云-台湾

wget --no-check-certificate -qO InstallNET.sh 'https://sunpma.com/other/oss/InstallNET.sh' && bash InstallNET.sh --ip-addr X.X.X.X --ip-mask 255.255.255.0 --ip-gate 10.140.0.1 -dd 'https://oss.sunpma.com/Windows/Win7_sp1_64_Administrator_nat.ee.gz'

连接上后如果遇到无法打开网页的情况,修改DNS即可

8.8.8.8
8.8.4.4

OVH

此DD包仅适用于OVH云服务器DD Win使用
说明:OVH需要使用网络参数进行安装,博主并未进行测试,这里仅提供直链安装包;

# DD Windows7 64位 精简版 [账户administrator密码www.80host.com]
https://oss.sunpma.com/Windows/OVH_Win7_64_administrator_www.80host.com.gz

关于激活

可以使用本博客搭建的KMS进行激活
传送门:https://sunpma.com/kms.html

如果不能使用KMS激活,可以试试下面的Key(不一定都能成功激活)

# Windows 7 企业版
KMS密钥:33PXH-7Y6KF-2VJC9-XBBR8-HVTHH / RHTBY-VWY6D-QJRJ9-JGQ3X-Q2289 / H8PDJ-H4NKW-3GKH7-YHKJ7-4C2JR

# Windows 8.1 专业版
KMS密钥:GCRJD-8NW9H-F2CDX-CCM8D-9D6T9

# Windows 10 LTSC 2019 企业版
KMS密钥:M7XTQ-FN8P6-TTKYV-9D4CC-J462D

# Windows Server 2019 数据中心版
KMS密钥:WMDGN-G9PQG-XVVXX-R3X43-63DFG

右键以管理员身份运行CMD(命令提示符),依次执行下面的命令;

slmgr.vbs -upk
slmgr.vbs -ipk KMS密钥
slmgr.vbs -ato
slmgr.vbs -dlv

Windows 7 旗舰版可能无法使用KMS进行激活,可以使用以下工具永久激活
激活工具:https://sunpma.lanzoux.com/i0ohrjljzwb

Windows服务器开启Ping功能,打开系统运行服务 Win+R 输入命令

## 开启Ping ##
netsh firewall set icmpsetting 8
## 关闭Ping ##
netsh firewall set icmpsetting 8 disable

发表评论 取消回复

253 条评论

  1. 淹死的鱼

    Goole 云HK wget --no-check-certificate -qO InstallNET.sh 'https://sunpma.com/other/oss/InstallNET.sh' && bash InstallNET.sh --ip-addr 10.170.0.3 --ip-mask 255.255.255.0 --ip-gate 10.170.0.1 -dd 'https://oss.sunpma.com/Windows/Win7_sp1_64_Administrator_nat.ee.gz'
    测试了不下20次 各种镜像,每次都是能远程,密码不对。不输入密码,显示账号禁用。请问什么原因呢?

    1. SunPma.com
      @淹死的鱼

      是那个版本有问题,你要换个版本,以前我遇到过

  2. 淹死的鱼

    wget --no-check-certificate -qO InstallNET.sh 'https://sunpma.com/other/oss/InstallNET.sh' && bash InstallNET.sh --ip-addr 10.170.0.3 --ip-mask 255.255.255.0 --ip-gate 10.170.0.1 -dd 'https://oss.sunpma.com/Windows/Win7_sp1_64_Administrator_nat.ee.gz'
    测试了不下20次 各种镜像,每次都是能远程,密码不对。不输入密码,显示账号禁用。请问什么原因呢?

  3. Dov

    腾讯云轻量DD Win7精简版和完整版都成功,大佬牛逼

  4. newbbq

    wget --no-check-certificate -qO InstallNET.sh 'https://sunpma.com/other/oss/InstallNET.sh' && bash InstallNET.sh --ip-addr X.X.X.X --ip-mask 255.255.255.0 --ip-gate 10.170.0.1 -dd 'https://oss.sunpma.com/Windows/Win7_sp1_64_Administrator_nat.ee.gz'

    老大,这个密码不对

  5. Zzy

    请问一下甲骨文可以dd那个win10完整包吗?谢谢不想要甲骨文的精简版

    1. sunpma
      @Zzy

      不能

  6. peter

    # DD Windows10 2021LTSC 64位 [账户administrator密码Teddysun.com]
    wget --no-check-certificate -qO InstallNET.sh 'https://sunpma.com/other/oss/InstallNET.sh' && bash InstallNET.sh -dd 'https://oss.sunpma.com/Windows/Whole/Win10_2021LTSC_64_administrator_Teddysun.com.gz'
    ===========================
    安装这个包后,C盘只有15G,有什么办法能在安装的时候自定义C盘大小。或者怎么修改DD包。
    谢谢

  7. Aj

    Hi thanks for this great information, iam not a professional nor practised using cloud platforms i tried to follow the steps but nothing worked me.
    PLEASE CAN YOU MAKE A VIDEO WITH EVEY STEPS DETAILED, IF YOU CAN MAKE 1 URGENT VIDEO OF DD 2016 IT'S AWESOME, I JUST MAKE UBUNTU INSTANE FOR ORACLE CLOUD ALWAYS FREE E2 ISTANCE, CAN YOU SHOW THE WAY THE SSH PUPLIC KEY WAS GENERATED / CONECTION OF THE INSTANCE USING SSH & THE TERMINAL, THANkS AGAIN PLEASE MAKE A VIDEO OF WELL EXPLAINED. CONFUSED TO FOLLOW THE STEPS AND SPENT HOURS.

    MAIN POINTS IS, THE WAY TO SSH THE NSTANCE & TO LOG IN VIA TERMINAL, PUBLIC KEY GENERATION. TNX AGAIN,

  8. OracleWithLove

    How to create DD image like you? I tried to create Win10.vdh with custom settings but then DD to oracle, it's not working like your images. Hope there is a tutorial video to create image

  9. Lau

    windows11和10好像都出官方的arm版了,msdn上看到都有,弱弱的问一句这个有可能装到oracle arm上吗(如果可以那就好玩了)

    1. sunpma
      @Lau

      并不能,因为没有适用于Oracle的驱动;

  10. kkk

    我用GCP DD了【https://oss.sunpma.com/Windows/Win7_sp1_64_Administrator_nat.ee.gz】这个包,现在不输入密码可以进入登录界面,但是我输入DD包的登陆密码显示密码错误,这个是账号【Administrator】,【nat.ee】这个是密码没问题吧...我都试过了,数字键盘也打开了,确定没有大小写问题和输入不全..就是显示密码错误,不能登陆进去,不输入密码您显示的账号已被 停用

    1. 磊磊
      @kkk

      对这个镜像密码是错误的,可作者却说是可以登录的也不知道自己试过没。我看留言也好几个说是错误的,最后老哥怎么弄的?

      1. 小小苏
        @磊磊

        第一次正确,然后第二次莫名其妙就错误,还多出了一个admin1的账号。不知道啥情况

        1. zhouyu
          @小小苏

          应该是有人扫到你机子改密码了,进入后一定要改密码,有些人真的是闲的,如果能出个改密码就好了

  11. YY

    [! !] Download installer components
    The installer failed to download a file from the mirror. This may be
    a problem with your network, or with the mirror. You can choose to
    retry the download, select a different mirror, or cancel and choose
    another installat ion method .
    Downloading a file failed:
    Retry
    Change mirror
    Cancel
    大佬我该怎么办,retry也一样

    1. sunpma
      @YY

      明天再试吧,CF的IP出现问题,无法下载镜像~~

      1. YY
        @sunpma

        感谢大佬,已经没问题了,都是一次成功

      2. YY
        @sunpma

        如果有办法了,请联系我,谢谢

      3. YY
        @sunpma

        好的,谢谢大佬

    2. YY
      @YY

      debian10 , dd的win2008

      1. YY
        @YY

        可以了,感谢大佬,果然是IP问题

  12. 小猪

    dd azure之后,一个小时了还连不上,用的win server2022

  13. 木木

    阿里云卡启动logo可以解决吗?

  14. frazer

    Hello, I am unable to connect to Google Cloud VM via RDP using Ubuntu 18.04 and Win7_sp1_64, could you please check you're packages - I've tried each one and they all do not work.

    Thank you - I will update here if I work around this issue

  15. 交流

    博主方便留个联系方式交流一下吗,有问题

  16. GCP

    GCP dd 失败,因为不会去 -dd 指定的地址下载镜像(把镜像和InstallNET.sh都放在了自己的服务器上测试的,服务器是同一个谷歌云账号开的内网机器)

    1. GCP
      @GCP

      broken mirror: invalib suite in release file for jessie
      info: menu item 'choose-mirror' succeeded but requested to be left unconfigured

    2. GCP
      @GCP

      错误的可能原因是:镜像规格不正确;镜像不可用(可能是由于网络连接不可靠);镜像已损坏(例如,因为找到无效的发布文件);镜像不支持正确的Debian版本。

  17. enjoy好丑的屁

    甲骨文dd之后失联了咋办啊

  18. dd

    Oracle BSOD on ubuntu 20, 18 works good
    is there any latest image for oracle? 2019 LTSC / newer server?

  19. BHM

    is it possible to have a Windows Server 2019 in English Language for Oracle Cloud?

    Many thanks in advance from Brasil!!!

    Your hard work is appreciated!

  20. KururuCZ

    更新下,6月27日。装完系统我倒头就睡 睡醒发现装好了 debian和ubuntu都成功了,win10完整版。 先前尝试过debian10 debian9 ubuntu16以及18 全都尝试失败,无一例外是使用的精简版 而使用完整版则一次成功 并不知道其中的关系但提供给各位一个思路

    1. sunpma
      @KururuCZ

      完整版没有精简系统依赖,多数商家的机器都支持,但低配的机器用完整版比较难受~~