PowerShell – Command Line – Differences between double-quote and single-quote

Background Want to quickly touch on one of the differences between how PowerShell processes double and single quotes.   Scenario Command Line Double-Quotes Versus Single Quotes Syntax Sample Double Quotes Sample Output Output - Image Output - Text Explanation Issuing the command " pwsh -Command "$PSVersionTable" " returns an empty output   Single Quotes Sample … Continue reading PowerShell – Command Line – Differences between double-quote and single-quote

Powershell Core – Update – Linux – CentOS

Background Recent disclosure from Microsoft shares news of Powershell Core security vulnerabilities. Let us quickly review whether we need to apply the patch to our Linux/CentOS box.   Scope Please keep in mind that the vulnerability does not affect Windows Powershell, but Powershell Core. Windows PowerShell runs only on MS Windows. Powershell Core is multi-OS. … Continue reading Powershell Core – Update – Linux – CentOS

Powershell – Linux – Invoke Using Command Argument

Background There are a couple of ways to invoke Powershell in Linux. Options Here are a couple of Options:- -File -Command Payload - File Syntax Sample Payload - Command Outline To get username Environment::UserName Syntax Sample Hello World Output Output - Image Output - Text Explanation We printed out our username Environment Variables and $PSVersionTable … Continue reading Powershell – Linux – Invoke Using Command Argument