Video Screencast Help
Search Video Help Close Back
to help
New in the Rewards Catalog: Vouchers for "Symantec Technical Specialist" and "Symantec Certified Specialist" exams.

Run PowerShell Scripts through Deployment Server

Updated: 07 Jul 2009 | 3 comments
CondorMan's picture
+1 1 Vote
Login to vote

PowerShell is the new powerful scripting language created by Microsoft. You can install it to Windows XP and above and it is included in Windows Server 2008.

Here is how to run a PowerShell Script through Deployment Server.

  1. Create a new job.
  2. Add a Copy File task
    • The source path points to MyScript.ps1 on the Deployment Server.
    • The destination path is .\MyScript.ps1
  3. Add a Run Script task as the following:
    powershell -command "& { .\MyScript.ps1; exit $lastexitcode }"
    set ret=%errorlevel%
    del .\MyScript.ps1
    exit %ret%
    
    

Comments

erikw's picture
18
Apr
2008
0 Votes 0
Login to vote

Powershell standard in Windows 2008

Powershell is not standard in Windows 2008 core server. Remember that if you wish to use it you need to install it yourself.

Regards
Erik
www.dvs4sbc.nl

Regards Erik www.DinamiQs.com Dinamiqs is the home of VirtualStorm (www.virtualstorm.org)

*************************************************************
If your issue has been solved, Please mark it as solved
***********

blairthomas's picture
02
Apr
2010
0 Votes 0
Login to vote

great article

great article

Jviv2000's picture
03
Nov
2011
0 Votes 0
Login to vote

Very Good!  Thanks

Very Good!  Thanks