PowerShell_Scripts/profile.d/test-modules.ps1

2 lines
220 B
PowerShell
Raw Normal View History

2020-11-05 00:08:59 -05:00
$(Get-Content $MyPSScriptRoot/src/modules.json | ConvertFrom-Json).Modules | Where-Object { try{-not (Get-Module -ListAvailable $_aaa -ErrorAction stop) }catch{} } | ForEach-Object { Write-Warning "Missing module: $_" }