WF4.0 Base article (28) WF Call PowerShell

Source: Internet
Author: User

PowerShell provides the function of the command line management system, but in general, the operator to complete a business needs a number of sets of PowerShell commands, this will be cumbersome, error rate is also higher. The operator can write PowerShell scripts to organize orders, This article describes how to use WF to organize PowerShell commands, allowing the operator to care only for specific commands, and to organize logical relationships between commands in a visual process designer

WF4.0 does not provide activity to invoke PowerShell, but can be used in Microsoft.Activities.PowerShell.Dll with Invokepowershell and Invokepowershell <T> two activity implementation call PowerShell

Microsoft.Activities.PowerShell.Dll Download

Http://www.bianceng.net/dotnet/201208/260.htm

Project Description:

WF4.0 Call PowerShell

Need to install PowerShell in the system, in this case I am using PowerShell 1.0

Introduction to PowerShell's instructions

Get system process [get-process]

To determine if a directory exists, create a directory [Test-path],[new-item]

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.