MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/PowerShell/comments/b9ugma/powershell_tricks_splatting/ek83irm/?context=3
r/PowerShell • u/destruktive • Apr 05 '19
58 comments sorted by
View all comments
1
What they don't tell you: splitting does not work with switches
6 u/halbaradkenafin Apr 06 '19 Yes it does, just pass it in as SwitchName = $true or $false and it'll pass in the switch correctly. 2 u/TheRealMisterd Apr 06 '19 This is new. Windows 7 with ps4 would give an error regardless of what you did. 1 u/PMental Apr 08 '19 Powershell 5+ works fine on Windows 7 though and was released 3 years ago so not exactly "new" :-)
6
Yes it does, just pass it in as SwitchName = $true or $false and it'll pass in the switch correctly.
SwitchName = $true
$false
2 u/TheRealMisterd Apr 06 '19 This is new. Windows 7 with ps4 would give an error regardless of what you did. 1 u/PMental Apr 08 '19 Powershell 5+ works fine on Windows 7 though and was released 3 years ago so not exactly "new" :-)
2
This is new. Windows 7 with ps4 would give an error regardless of what you did.
1 u/PMental Apr 08 '19 Powershell 5+ works fine on Windows 7 though and was released 3 years ago so not exactly "new" :-)
Powershell 5+ works fine on Windows 7 though and was released 3 years ago so not exactly "new" :-)
1
u/TheRealMisterd Apr 06 '19
What they don't tell you: splitting does not work with switches