BAT file Exchange 2007
Hello,I was wondering whether it is possible to create a sort of *.bat file for shell ??Thanks,Graig
May 15th, 2009 6:49pm

They are .ps1 files in the shellAnything you can do interactivly can be saved in a text file with a .ps1 extension.You then can run them from the shell via \path\filename.ps1You can schedule them too.Karl
Free Windows Admin Tool Kit Click here and download it now
May 15th, 2009 7:18pm

You can create a ps1 file for powershell script (set of powershell cmdlets) which you can call from a bat file. Check below article for setting up Exchange Management Shell to run script (step-1), creating PS1 file, command to call ps1 file through bat file and for scheduling bat file for regular Exchange tasks.... How To: Schedule PowerShell Script for an Exchange Task http://exchangeshare.wordpress.com/2008/12/08/how-to-schedule-powershell-script-for-an-exchange-task/ Let me know if you have any doubt...Amit Tank | MVP - Exchange Server | MCITP:EMA MCSA:M | http://ExchangeShare.WordPress.com
May 15th, 2009 10:29pm

hi,powershell.exe -noexit .\batchfile.batregards,Mumin CICEK | Exchange - MVP | www.cozumpark.com | www.mumincicek.com
Free Windows Admin Tool Kit Click here and download it now
May 15th, 2009 10:30pm

Hello,Adding to Mumin and Amit, here is a something which you would like to read.Scripting with the Exchange Management Shellhttp://technet.microsoft.com/en-us/library/bb123798.aspxArun Kumar | MCSE - 2K3 + Messaging | ITIL-F V3
May 15th, 2009 10:40pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics