|
| How to run PS script from Windows 2008 to Windows 2003 |
 |
Tue, 15 Apr 2008 20:41:00 -070 |
Hi,
I have a situation where I need to run a PS script that resides on Windows
2003 from Windows 2008. I've tried psexec but it never seems to come back.
I used:
psexec \\testserver cmd.exe /c "powershell -NoProfile -nologo
-noninteractive -command c:\t.ps1"
but it never comes back. Can someone help?
Thanks in advance,
|
| Post Reply
|
| RE: How to run PS script from Windows 2008 to Windows 2003 |
 |
Wed, 16 Apr 2008 00:35:00 -070 |
Either use the remoting facilities in the PowerShell V2 CTP (not recommended
for production use) or look at /n softwares remoting capabilities
--
Richard Siddaway
All scripts are supplied "as is" and with no warranty
PowerShell MVP
Blog: http://richardsiddaway.spaces.live.com/
PowerShell User Group: http://www.get-psuguk.org.uk
"Frank" wrote:
> Hi,
>
> I have a situation where I need to run a PS script that resides on Windows
> 2003 from Windows 2008. I've tried psexec but it never seems to come back.
> I used:
>
> psexec \\testserver cmd.exe /c "powershell -NoProfile -nologo
> -noninteractive -command c:\t.ps1"
>
> but it never comes back. Can someone help?
>
> Thanks in advance,
>
|
| Post Reply
|
| Re: How to run PS script from Windows 2008 to Windows 2003 |
 |
Wed, 16 Apr 2008 09:17:42 -030 |
Frank wrote:
> Hi,
>
> I have a situation where I need to run a PS script that resides on Windows
> 2003 from Windows 2008. I've tried psexec but it never seems to come back.
> I used:
>
> psexec \\testserver cmd.exe /c "powershell -NoProfile -nologo
> -noninteractive -command c:\t.ps1"
>
> but it never comes back. Can someone help?
>
> Thanks in advance,
>
>
This could help you:
http://blogs.msdn.com/powershell/archive/2008/02/29/remoting-using-powershell-v1
.aspx
--
Microsoft MVP - Windows PowerShell
http://www.microsoft.com/mvp
PowerGadgets MVP
http://www.powergadgets.com/mvp
Blog:
|
| Post Reply
|
|
|
|
|
|
|
|
|
|