How to create a log file for your PowerShell scripts

I am a great fan of the KISS method, while KISS stands for Keep It Simple Stupid. Fortunately, there are two built-in cmdlets in PowerShell to make it easy to create log files: Start-Transcript and Stop-Transcript. However, keep in mind that you must use a maximum of your script content with the Verbose parameter. Furthermore, […]

[Solved] A remote session might have ended

You may get the following error while trying to use the New-PSSession or the Enter-PSSession cmdlets with the SSHTransport parameter. This happens because the cmdlet doesn’t find the ssh.exe file. You have two solutions: Install SSH and ensure ssh.exe is accessible through one of the folders from the Path environment variable Copy ssh.exe in one […]

[Solved] The file install.wim is too large

When you try to create a bootable USB key with a FAT32 filesystem, you may encounter the following error message if your install.wim file is larger than 4 Gb. This can easily be solved by splitting the install.wim file into two or more .swm files of maximum 4 Gb with the DISM command. However, you […]

[Solved] The volume size is too big

You may encounter the following message you try to format with DiskPart a FAT32 partition bigger than 32 Gb. This happens typically when you want to create a bootable USB key, and because nowadays most of the USB keys have a capacity greater than 32 Gb. An easy way to fix this is to shrink […]