Powershell - Checking the Language Mode

For security purposes, it is possible to control the language mode in a given Powershell session. These language modes can constrict which modules can be loaded during the life of a powershell session. Learn mode about Powershell langeuage modes: About Language Modes – Microsoft Detect the Current Language Mode $sLangMode: $ExecutionContext.SessionState.LanguageMode If ($sLangMode -ne “FullLanguage”){ Write-Host ” !! Unable to run scrit – Powershell Using Wrong Language Mode !! ” } Else{ ...

February 5, 2019 · 1 min · Tom

'Copy, Paste' With Powershell Sendkeys

This is really quick nugget of Powershell for anyone who is struggling to copy and paste into a particular window or dialog box. Perhaps it is a case of a website which prevents text form being sent to a field from the clipboard, or in my case, a windows UAC prompt. If you are following password best practices, your passwords should be long, complex and contain zero dictionary words. Furthermore, you should have a different password for every site and service. So, when a user interface doesn’t allow you to paste a password, life gets that little bit more difficult. ...

February 2, 2019 · 2 min · Tom