PowerShell Platform Compatibility
Maps which PowerShell commands work on Windows only vs cross-platform with PowerShell 7 on Linux. Essential for knowing when to reach for PowerShell vs bash on Linux hosts.
Platform Compatibility
Cross-Platform (Windows + PowerShell 7 on Linux)
These work identically on both platforms:
| Domain | Key Commands |
|---|---|
Pipelines |
|
Strings & Regex |
|
Here-Strings |
|
Error Handling |
|
Jobs |
|
Modules |
|
PSObjects |
|
JSON/CSV |
|
SSH Remoting |
|
File I/O |
|
Windows Only
These require Windows or RSAT — they will not work on PowerShell 7 Linux:
| Domain | Key Commands |
|---|---|
Active Directory |
|
Group Policy |
|
WMI/CIM |
|
Certificate Store |
|
802.1X / WiFi |
|
Registry |
|
WinRM Remoting |
|
Windows Events |
|
Firewall (Windows) |
|
The Crossover Pattern
When you know the Windows command, here’s the Linux equivalent approach:
| Task | Windows PowerShell | PowerShell 7 on Linux |
|---|---|---|
Remote session |
|
|
System info |
|
|
Service status |
|
|
Certificate check |
|
|
Event logs |
|
|
Network config |
|
|
See Also
-
Network — includes 802.1X (Windows only)
-
Remoting — WinRM (Windows) vs SSH (cross-platform)
-
Active Directory — Windows only (RSAT required)