Setting Windows PowerShell environment variables

Changing the actual environment variables can be done by using the env: namespace / drive information. For example, this code will update the path environment variable: There are ways to make environment settings permanent, but if you are only using them from PowerShell, it’s probably a lot better to use your profile to initiate the settings. On … Read more

PowerShell equivalent to grep -f

The -Pattern parameter in Select-String supports an array of patterns. So the one you’re looking for is: This searches through the textfile doc.txt by using every regex(one per line) in regex.txt

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)