Embed PowerShell in a CMD command

article #1097, updated 18 days ago

We can do this:

powershell "& {set-netfirewallprofile -profile domain,public,private -enabled 1}" -command 

Anything placed after -command is treated as an argument.

Categories:   Command Line