Quantcast
Channel: Recent Edits
Viewing all articles
Browse latest Browse all 12198

Error in the above script

$
0
0
if (Get-ChildItem $sqlpsreg -ErrorAction "SilentlyContinue") $0$0 $0 $0should be$0 $0$0 $0 $0if (-not (Get-ChildItem $sqlpsreg -ErrorAction "SilentlyContinue") )$0 $0$0 $0 $0otherwise you're always skipping the check. Also, since you're throwing an error there is no need for an else block.$0

Viewing all articles
Browse latest Browse all 12198

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>