#Get the Current Environment Variable PSModulePath Path $current = [Environment]::GetEnvironmentVariable("PSModulePath", "Machine") $current #Set the Missing Paths **Note** This may be a different drive or location depending on where you installed SCOM $path1 = "C:\Program Files\Microsoft System Center 2012 R2\Operations Manager\Powershell\;" $path2 = "C:\Program Files\Microsoft System Center 2012 R2\Operations Manager\Server\PowerShell\;" $path3 = "C:\Program Files\Microsoft System Center 2012 R2\Operations Manager\Powershell\" #Combine the Missing Paths with the Current PSModulePath Path $FixedPath = $current + ";" + $path1 + $path2 + $path3 $FixedPath #Set the new Environment Variable Path for PSModulePath [Environment]::SetEnvironmentVariable("PSModulePath", $FixedPath, "Machine") #Set the current running PSModulePath to the stored path **Note** You can also just reboot $env:PSModulePath = [Environment]::GetEnvironmentVariable("PSModulePath", "Machine")