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. 抑郁质

    win2008密码不对啊

  2. vbch

    链接挂了?

    1. sunpma
      @vbch

      谷歌盘的接口可能不太稳定 可以用备用链接

      1. vbch
        @sunpma

        出现 -bash: wget: command not found 这个是什么情况?

        1. sunpma
          @vbch

          你的系统没有安装wget,这里有安装wget的命令:https://sunpma.com/463.html

  3. VIOLA SHAW

    DD包过期了

    1. sunpma
      @VIOLA SHAW

      谷歌盘的接口挂了,等明天再弄个直链的备用地址

  4. 4563

    來源:https://sunpma.com/137.html

  5. ak

    甲骨文可有Windows 10 IOT版?

    1. sunpma
      @ak

      甲骨文只有win7~~

  6. sherman

    博主能留个联系方式吗?

    1. sunpma
      @sherman

      https://t.me/sunpma

  7. sherman

    我这谷歌云上安装不了windows7 ,每次连接ssh都会出现端口22无法连接的情况

    1. walker
      @sherman

      安装WIN7后,本地WIN10远程桌面连不上呢?

    2. sunpma
      @sherman

      换个IP吧,估计IP被阻断了~~

  8. river

    Error, Not found interfaces config.
    甲骨文的提示这个,求助

    1. 网上找到的方法
      @river

      Error, Not found interfaces config.问题解决方法:
      运行:
      1:
      mkdir /etc/network/interfaces.d
      2:
      echo "# This file describes the network interfaces available on your system
      # and how to activate them. For more information, see interfaces(5).

      source /etc/network/interfaces.d/*

      # The loopback network interface
      auto lo
      iface lo inet loopback

      # The primary network interface
      allow-hotplug ens3
      iface ens3 inet dhcp

      " > /etc/network/interfaces

    2. sunpma
      @river

      是不是DD的WIN10精简版?

  9. hhhhh

    C盘最大只有6G吗? 很多东西没法装啊

    1. hhhhh
      @hhhhh

      扩展卷, 已解决

  10. ibex

    您好,我想安装win10企业版的安装不成功。我看了下是dd包的链接‘Not Found’了。可以麻烦您修复一下吗?

    1. sunpma
      @ibex

      完整版的DD包??这个我没有转存,有空我找找吧

      1. ibex
        @sunpma

        您辛苦了。对2016企业完整版。not found了。
        完整版和精简版少的内容平时用不到吧?

        1. sunpma
          @ibex

          精简掉的都是服务器上一般用不到的东西,完整版的占有CPU和内存太多了,一般不适用服务器

          1. ibex
            @sunpma

            好的,谢谢。

  11. 坏鱼炒年糕

    感谢楼主~GCP安装成功 用的Debian 9 ,掩码那里真的有坑简直了。。。ifconfig查出来是255.255.255.255,实际上应该填255.255.255.0

    1. sai
      @坏鱼炒年糕

      我断开后ssh不上 是怎么回事?

      1. sunpma
        @sai

        win不能用ssh连接,用系统自带的远程桌面连接

    2. 坏鱼炒年糕
      @坏鱼炒年糕

      对了,执行到`92851 blocks`断开SSH之后,可以通过ping自己的公网IP来看是否正确设置内网IP,等一分钟内如果能ping上就成功了,等差不多半个小时就OK;如果ping不上就可能是网络设置问题。

      1. ales
        @坏鱼炒年糕

        请问你用的是哪个包?

      2. sunpma
        @坏鱼炒年糕

        只要内网IP填对了,一般都没什么问题,但有些DD包会失败,还是很简单的

    3. sunpma
      @坏鱼炒年糕

      是的,最大的坑就是这里了,哈哈

  12. we

    怎么连接VNC看呢·无论是用谷歌云还是什么都不会··有一个小鸡,直接从下午装到凌晨还在装, 一直看监控流量··

    1. sunpma
      @we

      控制后台有VNC就能看,没有就看不了,一般安装只需40分钟左右

      1. we
        @sunpma

        没有VNC 凉了呀·不会识别网卡的,只能指定网卡ip安装 ··但是又看不到是不是设置对了··我拿了一个玩具鸡安装·从傍晚6点装到凌晨2点还在装(一直在跑流量)。也不知道装完没,装完之后识别不了网卡,又要重来·

        1. sunpma
          @we

          识别不了网卡可以重启或把DNS换成8.8.8.8试试

  13. 雪在烧

    谷歌云能装winXP吗

    1. sunpma
      @雪在烧

      可以的

      1. sherman
        @sunpma

        楼主我这边安装不了windows 7 是什么情况啊,每次连接ssh都出现端口22无法连接的问题

  14. cyl2009

    我等了很长时间,也不知道装的怎么样,有没有装完,没有进度条,我应该怎么看,用VNC看吗,
    用VNC我也连不上,大神,我应该怎么看才能知道,我已经装完了,怎么样启动呢,对我这样的小白,太难了,还请大神多多指点,谢谢了

    1. sunpma
      @cyl2009

      有VNC的话可以进VNC查看进度,如果VNC进不去,有可能安装出错了,有些机器需要指定网络参数安装。安装完成后用电脑自带的远程连接就可以连上了~

  15. YourLi

    没有vnc的话,直接在Xshell在执行脚本可行么?我执行到一半就断掉了

    1. sunpma
      @YourLi

      不需要vnc,脚本跑完后会自动断开,等待30-40分钟后远程链接能连上就成功了

  16. Passerby

    抱歉打擾了,gcp安裝windows 7 64精簡成功
    但安裝windows 2003失敗了,用remote desktop沒法連線
    請問windows 2003的安裝和windows 7的有甚麼不同

    1. sunpma
      @Passerby

      有些DD包不适用,很正常,可以试试其他的~

  17. L大

    gcp 安装不了 试过很多方法都不行 有谁知道的告诉我下 邮箱261307735@qq.com

    1. sunpma
      @L大

      只要参数对了就能装,很简单的,装不上肯定是网络参数不对

  18. 嘤嘤嘤

    GCP 试过很多DD包。

    安装完后 上传速度不到1M

    这是很大的问题

    1. sunpma
      @嘤嘤嘤

      我用win7 64位精简版没有这问题,你改DNS为8.8.8.8试试,实在不行GCP后台停止后再启动

      1. zwb
        @sunpma

        一改dns远程桌面断开,再也连不上了,只能重装,怎么办?

      2. 嘤嘤嘤
        @sunpma

        博主牛逼!(破音)
        win7 64位精简版,DNS8.8.8.8 上传下载一切正常
        博主牛逼!(破音)

        1. sunpma
          @嘤嘤嘤

          能用就好,哈哈

      3. 嘤嘤嘤
        @sunpma

        谢谢回复我现在试试 嘤嘤嘤

  19. 坚定

    GCP DD后网速一直上不去 估计只有2-3M
    不知道是什么问题

    1. sunpma
      @坚定

      你试试上面的win7 64位精简版,我用这版本没问题

      1. 坚定
        @sunpma

        应该没有问题, 用fast.com 测速的时候节点选错了

    2. sunpma
      @坚定

      如果你用浏览器测速,跑不起来很正常,用SS测吧,还不行就重启机器试试,先转成静态IP不然IP会变

  20. x

    已经搞定了,磁盘管理添加就行了