Run PowerShell command from command prompt (no ps1 script)

前端 未结 4 1556
花落未央
花落未央 2020-12-12 22:17

I\'m looking for a way to run just a couple PowerShell commands from the command prompt. I don\'t want to create a script for this since it\'s just a couple commands I need

4条回答
  •  忘掉有多难
    2020-12-12 23:12

    Maybe powershell -Command "Get-AppLockerFileInformation....."

    Take a look at powershell /?

提交回复
热议问题