View Single Post
Old 11-07-2007   #1 (permalink)
maquinaloca


 
 

Running powershell via exchange 2007

I am trying to run a powershell script and I get the following error.

[MSH] C:\Documents and Settings\admin>ls


Directory: Microsoft.Msh.Core\FileSystem::C:\Documents and Settings\admi
n


Mode LastWriteTime Length Name
---- ------------- ------ ----
-a--- 2/27/2006 10:35 PM 0 Sti_Trace.log
-a--- 11/6/2007 2:10 PM 453 test.ps1
d---- 2/27/2006 10:33 PM Desktop
d-r-- 3/16/2006 2:11 AM Favorites
d-r-- 3/21/2006 2:59 AM My Documents
d-r-- 2/27/2006 10:33 PM Start Menu


[MSH] C:\Documents and Settings\admin>$pwd\test.ps1
Unexpected token '\test.ps1' in expression or statement.
At line:1 char:13
+ $pwd\test.ps1 <<<<


Can anyone tell me why this is not working.
My System SpecsSystem Spec