lostangel556 Posted October 11, 2008 Share Posted October 11, 2008 Hi everyone, wandering if anyone has been able to figure out this problem. Im trying to open the exchange 2007 powershell from an autoit v3 window (via run or shellexecute) but keep getting the error message: CODEWARNING: The following errors occurred when loading console C:\Program Files\Microsoft\Exchange Server\Bin\ExShell.psc1: Cannot load Windows PowerShell snap-in Microsoft.Exchange.Management.PowerShell.Admin because of the following error: No Windows PowerShell Snap-ins are available for version 1. Command ". 'C:\Program Files\Microsoft\Exchange Server\bin\ExchangeTemp.ps1'" co uld not be executed because some Windows PowerShell snap-ins did not load. C:\Program Files\Microsoft\Exchange Server\bin> Now, the shortcut on my desktop has the below in it and this works when put into the run box CODEC:\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'" I've google'd the top error message and found that it isn't loading the exchange snap ins. I've even tried to run the .lnk file on the desktop and am still getting the above error. Link to comment Share on other sites More sharing options...
lostangel556 Posted October 12, 2008 Author Share Posted October 12, 2008 Found an way around it. Just going to use Send() to open the run dialog and open it that wayHi everyone,wandering if anyone has been able to figure out this problem. Im trying to open the exchange 2007 powershell from an autoit v3 window (via run or shellexecute) but keep getting the error message:CODEWARNING: The following errors occurred when loading console C:\ProgramFiles\Microsoft\Exchange Server\Bin\ExShell.psc1:Cannot load Windows PowerShell snap-inMicrosoft.Exchange.Management.PowerShell.Admin because of the following error:No Windows PowerShell Snap-ins are available for version 1.Command ". 'C:\Program Files\Microsoft\Exchange Server\bin\ExchangeTemp.ps1'" could not be executed because some Windows PowerShell snap-ins did not load.C:\Program Files\Microsoft\Exchange Server\bin>Now, the shortcut on my desktop has the below in it and this works when put into the run boxCODEC:\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'"I've google'd the top error message and found that it isn't loading the exchange snap ins.I've even tried to run the .lnk file on the desktop and am still getting the above error. Link to comment Share on other sites More sharing options...
Kage Posted January 27, 2011 Share Posted January 27, 2011 compile ur script as 64bit and it should work, i have had this error aswell, after i made the exe 64bit it worked. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now