Converse agora com nosso suporte
Chat com o suporte

Foglight for Automation Action Packs 5.6.3.8 - Scripting ActionPack User Guide

COM and Automation Objects

The COM and Automation objects are required to perform remote tasks on Windows machines that are not configured for remote activation. Therefore additional configuring of the DLL surrogate is required.

Make sure that the Administrator user has Full Control access to the following registry keys:

Use the script below to configure DCOM.

1
Create a file named dcom-config.ps1 that contains the script below on the target machine.
2
Run the script on behalf of the Administrator user using the following command:
runas /user:Administrator powershell -File dcom-config.ps1

 

Actions

This section contains descriptions of the actions included in the ActionPack for Scripting.

Executes a PowerShell script on the specified remote Windows host.

The Power Shell interpreter and the script file must exist on the remote host. To enable script file execution, run the following command:

powershell -command “&{set-ExecutionPolicy Unrestricted}”

Host/host

TopologyObject

[ScriptingHost]. The remote host to execute the command on.

Script/script

String

The full path to the script on the remote host, for example: C:\\test.ps1.

Parameters/params

String

Parameters that will be passed to the command. (Optional)

Command/cmd

String

The command that was executed on the remote host.

Output text/stdout

String

System Standard Output Text.

Error text/stderr

String

System Error Output Text. May be empty if no errors occured.

 

Documentos relacionados

The document was helpful.

Selecione a classificação

I easily found the information I needed.

Selecione a classificação