Quantcast
Channel: Hey, Scripting Guy! Blog
Viewing all articles
Browse latest Browse all 3333

PowerTip: Use PowerShell to Automate Commands with DiskPart

$
0
0

Summary: Learn how to easily automate commands by using DiskPart.exe.

Hey, Scripting Guy! Question How can I use Windows PowerShell to automatically run DiskPart.exe commands that I use to make bootable keys?

Hey, Scripting Guy! Answer Store the commands you use in DiskPart.exe in a text file (runme.txt in this example), and run them automatically by adding the /s parameter:

DISKPART.EXE /s runme.txt

Note   You must run DiskPart.exe as Administrator.


Viewing all articles
Browse latest Browse all 3333

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>