Run PowerShell Scripts through Deployment Server
Filed under:
Deployment Solution, Deployment Solution for Dell Servers
Scripting, Command Line, Sample, .Net Support
Submitted by CondorMan on Fri, 2008-04-18 09:34.
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.
- Create a new job.
- Add a Copy File task
- The source path points to MyScript.ps1 on the Deployment Server.
- The destination path is .\MyScript.ps1
- Add a Run Script task as the following:
powershell -command "& { .\MyScript.ps1; exit $lastexitcode }" set ret=%errorlevel% del .\MyScript.ps1 exit %ret%
(46 votes)
- Login or register to post comments
- 1074 reads
- Printer-friendly version















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