我正在运行powershell,我想从我的powershell连接到我的Exchange powershell,
这两个文件之间的差异在它们的目标中(右键单击= proproties),
“正常”powershell 目标 = “%SystemRoot%\system32\WindowsPowerShell\v1.0\powershell.exe”
"exchange" powershell 目标 = "C:\WINDOWS\system32\windowspowershell\v1.0\powershell.exe -PSConsoleFile "C:\Program Files\Microsoft\Exchange Server\bin\exshell.psc1" -noexit -command "。'C:\Program Files\Microsoft\Exchange Server\bin\Exchange.ps1'""
有没有办法通过代码连接到exchange powershell??我猜是在目标中添加那两条额外的线......