如何在批处理文件中运行powershell CheckNetIsolation命令
我需要从命令行运行中提到的以下Powershell命令:如何在批处理文件中运行powershell CheckNetIsolation命令,powershell,command-line,Powershell,Command Line,我需要从命令行运行中提到的以下Powershell命令: CheckNetIsolation LoopbackExempt -a -n="microsoft.win32webviewhost_cw5n1h2txyewy" 虽然它在PowerShell上工作,但在命令行上不工作。这是我尝试过的命令: powershell.exe -command "& {CheckNetIsolation LoopbackExempt -a -n=microsoft.win32webviewhost_c
CheckNetIsolation LoopbackExempt -a -n="microsoft.win32webviewhost_cw5n1h2txyewy"
虽然它在PowerShell上工作,但在命令行上不工作。这是我尝试过的命令:
powershell.exe -command "& {CheckNetIsolation LoopbackExempt -a -n=microsoft.win32webviewhost_cw5n1h2txyewy}"
有人能帮忙吗?链接中提到的powershell命令不是特定于powershell的命令。只要DOS box以管理员身份运行,它就可以在常规DOS命令行上运行