Warning: session_start(): open(/tmp/sess_3372dcb4afbcf3d3a86d9fd82ad719de, O_RDWR) failed: No such file or directory (2) in /var/www/html/dokuwiki/inc/init.php on line 273
Warning: session_start(): Failed to read session data: files (path: ) in /var/www/html/dokuwiki/inc/init.php on line 273
Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/dokuwiki/inc/init.php:273) in /var/www/html/dokuwiki/inc/auth.php on line 535
Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/dokuwiki/inc/init.php:273) in /var/www/html/dokuwiki/inc/Action/Export.php on line 109
Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/dokuwiki/inc/init.php:273) in /var/www/html/dokuwiki/inc/Action/Export.php on line 109
Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/dokuwiki/inc/init.php:273) in /var/www/html/dokuwiki/inc/Action/Export.php on line 109
====== Make a Windows USB Installer in Powershell ======
# Define Path to the Windows Server 2019 ISO
$ISOFile = "C:\en_windows_server_2019_x64.iso"
# Get the USB Drive you want to use, copy the friendly name
Get-Disk | Where BusType -eq "USB"
# Get the right USB Drive (You will need to change the FriendlyName)
$USBDrive = Get-Disk | Where FriendlyName -eq "SanDisk Cruzer Glide 3.0"
# Replace the Friendly Name to clean the USB Drive (THIS WILL REMOVE EVERYTHING)
$USBDrive | Clear-Disk -RemoveData -Confirm:$true -PassThru
# Convert Disk to GPT
$USBDrive | Set-Disk -PartitionStyle GPT
# Create partition primary and format to FAT32
$Volume = $USBDrive | New-Partition -UseMaximumSize -AssignDriveLetter | Format-Volume -FileSystem FAT32 -NewFileSystemLabel WS2019
# Mount iso
$ISOMounted = Mount-DiskImage -ImagePath $ISOFile -StorageType ISO -PassThru
# Driver letter
$ISODriveLetter = ($ISOMounted | Get-Volume).DriveLetter
# Copy Files to USB
Copy-Item -Path ($ISODriveLetter +":\*") -Destination ($Volume.DriveLetter + ":\") -Recurse
# Dismount ISO
Dismount-DiskImage -ImagePath $ISOFile