Created on 07 January 2017
icon_unfollowing
Login to follow
powershell-commander

Powershell Commander

Stable version 1.0.0 (Compatible with OutSystems 11)
Also available for 10
Uploaded on 07 January 2017 by 
powershell-commander

Powershell Commander

Details
Lets you run PowerShell commands directly from your logic making it possible to have all the PowerShell functionality at your fingertip, when PowerShell is installed on your server of course. You can run it in Outsystems Cloud as well with limited functions since you probably do not have a server Administrator account in the Outsystems cloud. This being said, This tool includes impersonation to run the PowerShell commands under a different User.
Read more

Usage examples:

  • Perform your favourite CMD tasks in PowerShell
  • Kill a process in PowerShell instead of Task Manager
  • Use PSDrive to view more than just drives
  • Export NTFS folder permissions — recursive or not
  • And so much more…

Implementation

Command (Type: String)

The literal command text that will be executed in the PowerShell command prompt

Result (Type: String)

The PowerShell output. This output can be more than one row and there is no limit in size.


Optional parameters for Impersonation.

Note: If impersonation is not required leave the parameters empty. If LogonType is left empty impersonation will not be applied. For default Active Directory use LogonType Stringvalue "NewCredentials”

Username (Type: String)

The username you wish to run the PowerShell Command under.


Password (Type: String)

The password associated with the username.


Domain (Type: String)

The domain name in which the server is located.


LogonType

Stringvalue “Interactive”

This logon type is intended for users who will be interactively using the computer, such as a user being logged on by a terminal server, remote shell, or similar process. This logon type has the additional expense of caching logon information for disconnected operations; therefore, it is inappropriate for some client/server applications, such as a mail server.

Stringvalue “Network”

This logon type is intended for high performance servers to authenticate plaintext passwords. The LogonUser function does not cache credentials for this logon type.


Stringvalue “Batch”

This logon type is intended for batch servers, where processes may be executing on behalf of a user without their direct intervention. This type is also for higher performance servers that process many plaintext authentication attempts at a time, such as mail or web servers.

Stringvalue “Service”

Indicates a service-type logon. The account provided must have the service privilege enabled.

Stringvalue “Unlock”

GINAs are no longer supported. Windows Server 2003 and Windows XP: This logon type is for GINA DLLs that log on users who will be interactively using the computer. This logon type can generate a unique audit record that shows when the workstation was unlocked.

Stringvalue “NetworkCleartext”

This logon type preserves the name and password in the authentication package, which allows the server to make connections to other network servers while impersonating the client. A server can accept plaintext credentials from a client, call LogonUser, verify that the user can access the system across the network, and still communicate with other servers.

Stringvalue “NewCredentials”

This logon type allows the caller to clone its current token and specify new credentials for outbound connections. The new logon session has the same local identifier but uses different credentials for other network connections. This logon type is supported only by the LOGON32_PROVIDER_WINNT50 logon provider.

Release notes (1.0.0)
Reviews (0)
Category
Functional libraries & utilities, Other functions & libraries
Tags
Support options
This asset is not supported by OutSystems. You may use the discussion forums to leave suggestions or obtain best-effort support from the community, including from  who created this asset.
Dependencies
Powershell Commander has no dependencies.
Application Objects
Powershell Commander has 0 AOs.
Team
Compatible with
Version 11
Version 10
Stack:
.NET
Database:
All
Asset consumers
No consumers yet.
Weekly downloads