DISM is the Swiss Army Knife of Windows 10 maintenance and with the Windows 10 Creators Update it gained a helpful collection of PowerShell scripts. Here's how to put them to use. Credit: Thinkstock With the release of the Windows 10 Creators Update in early April, Microsoft changed the default command-line environment in Windows 10 from the Command Prompt (aka cmd.exe) to PowerShell. There, the old black-and-white command-line interface gives way to a new, blue-and-white style in the latest version of Windows 10. But the powerful Deployment Image Servicing and Management (DISM) command that I’ve described as the Swiss Army Knife of Windows 10 maintenance got more than a new color; it gained a collection of PowerShell scripts — called “cmdlets” (pronounced “command-lets”) in PowerShell-speak – that go a long way toward simplifying its syntax and usage. Ed Tittel Figure 1: DISM Repair-WindowsImage -CheckHealth remains key to figuring out if image repairs are needed (and feasible). Where to look for DISM-related cmdlets As it happens, there’s a peachy guide to the whole panoply of DISM commands as they map into equivalent PowerShell cmdlets. It’s online at the MSDN Hardware Dev Center, and it’s called “Use DISM in Windows PowerShell.” There are multiple versions of this document around, so grab one that’s been updated on or after January 3, 2017 to be sure you get the most current version for Windows 10 and Windows Server 2016. Basically, this document consists of a table with 45 entries, each of which corresponds to a particular variant of the DISM command. What you won’t find there are the syntax details, so it’s best to turn to the online “get-help” cmdlet via PowerShell. Not only is this handy and convenient, but PowerShell will also download the most current help files for all cmdlets with your permission each time you use it. This takes a while (a couple of minutes on my test Lenovo X220 Tablet PC), but it’s worth the wait. Here’s an example of the output for the get-help cmdlet illustrated in Figure 1. Ed Tittel Figure 2: DISM Repair-WindowsImage get-help output. When you look at get-help output in PowerShell, the text doesn’t wrap nicely as shown above. (I captured the output, took it into Notepad, wrapped the text at 80 columns, then used the “type” command in PowerShell to produce the text in Figure 2.) Instead, it spreads out across more than a full HD display. But you can find lots of great information there, including syntax details (shown), explanations of key parameters (shown), plus links to related commands and information about how to use get-help to produce further information. This is quite valuable to see (and know), so here is that information for the Repair-WindowsImage command along with examples: Ed Tittel Figure 3: DISM Repair-WindowsImage get-help continued, with info on related links, more help and examples. The following table includes all the DISM commands I’ve discussed, with their PowerShell cmdlet equivalents. You can use get-help with those cmdlet names yourself to learn how to use PowerShell with DISM. When you do, you’ll notice that the cmdlets are generally easier to use and understand than the corresponding DISM command syntax. And, of course, that’s why I recommend that you do so the next time you need to use DISM for any of its many capabilities, from obtaining image information to repairing images or adding or removing drivers, packages and features from images, and so on. In working with these cmdlets, those familiar with DISM will find it expeditious to use the PowerShell help command “get-help -examples” to see related syntax, including important switches and parameters. That’s how I worked my way through the items that appear in the preceding table myself. I assume that if this approach worked for me, it will work for others as well. Enjoy! Useful resources Using DISM with Windows 10 Why DISM is the Swiss Army knife of Windows 10 maintenance Your step-by-step guide to repairing Windows 10 DISM references DISM Reference (MSDN) DISM search — lots of good topic-specific articles and how-tos (MSDN) DISM Overview and “What is DISM?” article (TechNet) PowerShell references Microsoft PowerShell (MSDN) Scripting with Windows PowerShell (TechNet) Related content brandpost Sponsored by Freshworks When your AI chatbots mess up AI ‘hallucinations’ present significant business risks, but new types of guardrails can keep them from doing serious damage By Paul Gillin Dec 08, 2023 4 mins Generative AI brandpost Sponsored by Dell New research: How IT leaders drive business benefits by accelerating device refresh strategies Security leaders have particular concerns that older devices are more vulnerable to increasingly sophisticated cyber attacks. By Laura McEwan Dec 08, 2023 3 mins Infrastructure Management case study Toyota transforms IT service desk with gen AI To help promote insourcing and quality control, Toyota Motor North America is leveraging generative AI for HR and IT service desk requests. By Thor Olavsrud Dec 08, 2023 7 mins Employee Experience Generative AI ICT Partners feature CSM certification: Costs, requirements, and all you need to know The Certified ScrumMaster (CSM) certification sets the standard for establishing Scrum theory, developing practical applications and rules, and leading teams and stakeholders through the development process. By Moira Alexander Dec 08, 2023 8 mins Certifications IT Skills Project Management Podcasts Videos Resources Events SUBSCRIBE TO OUR NEWSLETTER From our editors straight to your inbox Get started by entering your email address below. Please enter a valid email address Subscribe