Windows ADK DISM常用命令

合集下载
  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

功能命令

拷贝winpe copype.cmd x86 C:\winpe_86如果你的电脑是32位系统,请用X86字样代替amd64

makewinpemedia /ufd c:\winpe_amd64

创建Iso文件Mekewinpemedia /iso C:\winpe_x86

Winp写入U盘Makewinpemedia /ufd /f c:\winpe_x86 e:

拷贝系统安装文件Robocopy D:\ E:\windows\ /E D:指的是windows 8.1系统盘符,E是指目标盘符

应用问答文件E:\windowssetup\setup.exe /unattend:e:\autounattend.xml

抓取image Dism /capture-image /capturedir:c:\ /imagefile:d:\install.wim /name:”windows”

抓取winboot image Dism /capture-image /capturedir:c:\ /imagefile:d:\wimboot.wim /name:”windows” /wi mboot /scratchdir:d:\scratch

应用image Dism /apply-image /applydir:w:\ /imagefile:d:\install.wim /index:1

应用wimboot image适用于WIN8.1 Dism /apply-image /applydir:w:\ /imagefile:d:\wimboot.wim /index:1 /wimboot /scratchdir:d:\scratch

应用压缩image 适用于WIN10 Dism /apply-image /applydir:w:\ /imagefile:d:\install.wim /index:1 /Compact /scratchdir:d:\scratch

创建启动文件1、Bcdboot w:\windows 2、w:\windows\system32\bcdboot w:\windows /s s:\

装载映像Dism /mount-image /mountdir:d:\image /imagefile:d:\install.wim /index:1

修改winpe登陆脚步Note1pad.exe c:\mountdir\windows\system32\startnet.cmd

查看补丁Dism /image:d:\mountdir /get-packages

添加补丁Dism /image:d:\mountdir /add-package /packagepath:c:\windows8.1-kb2919442.msu /logpath:addpackage.log

添加语言包Dism /image:d:\mountdir /add-package /packagepath:c:\zh-cn\lp.cab /logpath:addpackage.log

删除补丁包Dism /image:d:\mountdir /remove-package /packagename:””补丁包名称

查看语言Dism /image:d:\mountdir /get-intl

设置默认语言Dism /image:d:\mountdir /set-allintl:en-us

设置默认时区Dism /image:d:\mountdir /set-timeione:“Pacific standard time”

查看驱动Dism /image:d:\mountdir /get-drivers

添加驱动Dism /image:d:\mountdir /add-driver /driver:d:\dirvers\xx.inf

添加驱动目录Dism /image:d:\mountdir /add-driver /driver:d:\dirvers /recurse

导出驱动Dism /image:d:\mountdir /export-driver /destination:d:\drivers

删除驱动Dism /image:d:\mountdir /remove-driver /driver:oem0.inf

添加移动版office适用于WIN10 dism /image:e:\mount /add-provisionedAPPxpackage /packagepath:c:\moffice\excel\X.appxbundle /licensepath:c:\moffice\excel\X.xml 清理image Dism /image:d:\mountdir /cleanup-image /startcomponentcleanup /resetbase

检查image Dism /image:d:\mountdir /cleanup-image /scanhealth

Wimboot image Dism /image:d:\mountdir /optimize-image /wimboot

卸载并保存映像Dism /unmount-image /mountdir:d:\image /commit

卸载不保存映像Dism /unmount-image /mountdir:d:\image /discard

清理卸载不完全的mount文件夹Dism /cleanup-mountpoints

Dism /unmounts-image /mountdir:d:\mount /discard

导出iamge Dism /export-image /sourceimagefile:d:\install.wim /sourceindex:1 /destinationimagefile:d:\install1.wim

导出wimboot iamge Dism /export-image /wimboot /sourceimagefile:E:\install.wim /sourceindex:1 /destinationimagefile:new_install.wim 分割image Dism /split-image /imagefile:d:\install.wim /swmfile:d:\split.swm /filesize:2500 /checkintegrity

合并image Dism /export-image /sourceimagefile:d:\split.swm /swmfile:d:\split*.swm /sourceindex:1 /destinationimagefile:d:\install.wim /checkintegrity

查看WIM文件信息Dism /get-wiminfo /wimfile:d:\install.wim /index:1

查看时区Tzutil /?

移除winre.wim系统文件属性attrib -h -a -s C:\mount\windows\Windows\System32\Recovery\winre.wim

开机后直接启动进入传统Desktop reg add HKEY_USERS\default\Software\Microsoft\Windows\CurrentVersion\Explorer\StartPage /v OpenAtLogon /t REG_DWORD /d 0 /f

桌面型应显示在Apps view reg add HKEY_USERS\default\Software\Microsoft\Windows\CurrentVersion\Explorer\StartPage /v DesktopFirst /t REG_DWORD /d 1 /f

“Start Screen”和Desktop使用相同桌面背景Reg add HKEY_USERS\default\Software\Microsoft\Windows\CurrentVersion\Explorer\Accent /v MotionAccentId_v1.00 /t REG_DWORD /d 219 /f

修改蓝牙电源管理reg add "HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Enum\BCMBTBUS\BLUETOOTH\4&30789336&0&4097\Device

Parameters" /v SelectiveSuspendEnabled /t REG_DWORD /d 0 /f

关闭蓝牙[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Enum\BCMBTBUS\BLUETOOTH\4&26b97c55&0&4097\Device Parameters] "RadioState"=dword:00000004

打开蓝牙[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Enum\BCMBTBUS\BLUETOOTH\4&26b97c55&0&4097\Device Parameters] "RadioState"=dword:00000002

控制面板图标显示方式(大图标)[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\ControlPanel]

"StartupPage"=dword:00000001

time GMT [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\TimeZoneInformation]

"realtimeisuniversal"=dword:00000001

time UTC [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\TimeZoneInformation]

"realtimeisuniversal"=dword:00000000

Wifi-off [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Class\{4d36e972-e325-11ce-bfc1-08002be10318}\0000]

"NICPowerState"=dword:00000000

Wifi-on [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Class\{4d36e972-e325-11ce-bfc1-08002be10318}\0000]

"NICPowerState"=dword:00000007

修改显示项目的大小Reg add HKEY_USERS\default\Control Panel\Desktop /v Logpixels /t REG_DWORD /d 90 /f

默认模式@REM First boot set SignInMode #TabletMode is 0x00000001, DesktopMode is 0x00000000

REG ADD HKCU\Software\Microsoft\Windows\CurrentVersion\ImmersiveShell /f /t REG_DWORD TabletMode /d 0x00000000

离线安装.net DISM /Online /Enable-Feature /FeatureName:NetFx3 /All /LimitAccess /Source:G:\sources\sxs

location:/zh-CN/library/dd374073(VS.85).aspx

相关文档
最新文档