I had a strange issue today when I was doing some development where suddenly my scripts would report inability to find some of my modules. Upon short investigation I found out $Env:PSModulePath is missing “C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules”
As I've done only one thing – installing an update to AutoIt v3, it must have been during the install process that this value gets overwritten by AutoIt v3 installer. Seeing how C:\Program Files (x86)\AutoIt3\AutoItX is the only path displayed when checking [Environment]::GetEnvironmentVariable(“PSModulePath”, “Machine”) variable I'm reasonably sure AutoIt is at fault here. That means there are only two things to do. One is to report an issue to AutoIt to fix their Installer. Second is to set my $Env:PSModulePath to a proper value.