Embed PowerShell in a CMD command

article #1097, updated 2636 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: