Powershell Exit Problem via Batch File
hello,
i'm hoping have simple problem solve. have requirement run a powershell command via java code provision exchange mailboxes accounts. if create batch file run command it leaves process in powershell , need exit dos on completion.
the command :
powershell.exe -psconsolefile "c:\program files\microsoft\exchange server\bin\exshell.psc1" -noexit -command ". enable-mailbox <account id> '<exchange database>'
i'm wondering if else has had deal scenrio such this? if add second line batch file has "exit" in (to exit ps) doesn't work.
many in advance pointers.
jay.
Windows Server > Windows PowerShell
Comments
Post a Comment