diff --git a/src/Microsoft.PowerShell.Security.Activities/AssemblyInfo.cs b/src/Microsoft.PowerShell.Security.Activities/AssemblyInfo.cs
new file mode 100644
index 000000000..55b23b369
--- /dev/null
+++ b/src/Microsoft.PowerShell.Security.Activities/AssemblyInfo.cs
@@ -0,0 +1,18 @@
+using System.Reflection;
+using System.Security.Permissions;
+using System.Runtime.CompilerServices;
+using System.Runtime.ConstrainedExecution;
+using System.Diagnostics.CodeAnalysis;
+
+
+[assembly: AssemblyVersion("3.0.0.0")]
+[assembly: AssemblyFileVersionAttribute("3.0.0.0")]
+[assembly: System.Runtime.InteropServices.ComVisible(false)]
+
+[assembly: AssemblyConfiguration("")]
+[assembly: ReliabilityContractAttribute(Consistency.MayCorruptAppDomain, Cer.MayFail)]
+[assembly: AssemblyTitle("Microsoft.PowerShell.Security.Activities")]
+[assembly: AssemblyDescription("Microsoft.PowerShell.Security.Activities")]
+
+[module: SuppressMessage("Microsoft.Design", "CA1014:MarkAssembliesWithClsCompliant")]
+
diff --git a/src/Microsoft.PowerShell.Security.Activities/Generated/ConvertFromSecureStringActivity.cs b/src/Microsoft.PowerShell.Security.Activities/Generated/ConvertFromSecureStringActivity.cs
new file mode 100644
index 000000000..122347504
--- /dev/null
+++ b/src/Microsoft.PowerShell.Security.Activities/Generated/ConvertFromSecureStringActivity.cs
@@ -0,0 +1,94 @@
+//
+// Copyright (C) Microsoft. All rights reserved.
+//
+using Microsoft.PowerShell.Activities;
+using System.Management.Automation;
+using System.Activities;
+using System.Collections.Generic;
+using System.ComponentModel;
+
+
+namespace Microsoft.PowerShell.Security.Activities
+{
+ ///
+ /// Activity to invoke the Microsoft.PowerShell.Security\ConvertFrom-SecureString command in a Workflow.
+ ///
+ [System.CodeDom.Compiler.GeneratedCode("Microsoft.PowerShell.Activities.ActivityGenerator.GenerateFromName", "3.0")]
+ public sealed class ConvertFromSecureString : PSRemotingActivity
+ {
+ ///
+ /// Gets the display name of the command invoked by this activity.
+ ///
+ public ConvertFromSecureString()
+ {
+ this.DisplayName = "ConvertFrom-SecureString";
+ }
+
+ ///
+ /// Gets the fully qualified name of the command invoked by this activity.
+ ///
+ public override string PSCommandName { get { return "Microsoft.PowerShell.Security\\ConvertFrom-SecureString"; } }
+
+ // Arguments
+
+ ///
+ /// Provides access to the SecureString parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument SecureString { get; set; }
+
+ ///
+ /// Provides access to the SecureKey parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument SecureKey { get; set; }
+
+ ///
+ /// Provides access to the Key parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Key { get; set; }
+
+
+ // Module defining this command
+
+
+ // Optional custom code for this activity
+
+
+ ///
+ /// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run.
+ ///
+ /// The NativeActivityContext for the currently running activity.
+ /// A populated instance of Sytem.Management.Automation.PowerShell
+ /// The infrastructure takes responsibility for closing and disposing the PowerShell instance returned.
+ protected override ActivityImplementationContext GetPowerShell(NativeActivityContext context)
+ {
+ System.Management.Automation.PowerShell invoker = global::System.Management.Automation.PowerShell.Create();
+ System.Management.Automation.PowerShell targetCommand = invoker.AddCommand(PSCommandName);
+
+ // Initialize the arguments
+
+ if(SecureString.Expression != null)
+ {
+ targetCommand.AddParameter("SecureString", SecureString.Get(context));
+ }
+
+ if(SecureKey.Expression != null)
+ {
+ targetCommand.AddParameter("SecureKey", SecureKey.Get(context));
+ }
+
+ if(Key.Expression != null)
+ {
+ targetCommand.AddParameter("Key", Key.Get(context));
+ }
+
+
+ return new ActivityImplementationContext() { PowerShellInstance = invoker };
+ }
+ }
+}
diff --git a/src/Microsoft.PowerShell.Security.Activities/Generated/ConvertToSecureStringActivity.cs b/src/Microsoft.PowerShell.Security.Activities/Generated/ConvertToSecureStringActivity.cs
new file mode 100644
index 000000000..f813194b6
--- /dev/null
+++ b/src/Microsoft.PowerShell.Security.Activities/Generated/ConvertToSecureStringActivity.cs
@@ -0,0 +1,118 @@
+//
+// Copyright (C) Microsoft. All rights reserved.
+//
+using Microsoft.PowerShell.Activities;
+using System.Management.Automation;
+using System.Activities;
+using System.Collections.Generic;
+using System.ComponentModel;
+
+
+namespace Microsoft.PowerShell.Security.Activities
+{
+ ///
+ /// Activity to invoke the Microsoft.PowerShell.Security\ConvertTo-SecureString command in a Workflow.
+ ///
+ [System.CodeDom.Compiler.GeneratedCode("Microsoft.PowerShell.Activities.ActivityGenerator.GenerateFromName", "3.0")]
+ public sealed class ConvertToSecureString : PSRemotingActivity
+ {
+ ///
+ /// Gets the display name of the command invoked by this activity.
+ ///
+ public ConvertToSecureString()
+ {
+ this.DisplayName = "ConvertTo-SecureString";
+ }
+
+ ///
+ /// Gets the fully qualified name of the command invoked by this activity.
+ ///
+ public override string PSCommandName { get { return "Microsoft.PowerShell.Security\\ConvertTo-SecureString"; } }
+
+ // Arguments
+
+ ///
+ /// Provides access to the String parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument String { get; set; }
+
+ ///
+ /// Provides access to the AsPlainText parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument AsPlainText { get; set; }
+
+ ///
+ /// Provides access to the Force parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Force { get; set; }
+
+ ///
+ /// Provides access to the SecureKey parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument SecureKey { get; set; }
+
+ ///
+ /// Provides access to the Key parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Key { get; set; }
+
+
+ // Module defining this command
+
+
+ // Optional custom code for this activity
+
+
+ ///
+ /// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run.
+ ///
+ /// The NativeActivityContext for the currently running activity.
+ /// A populated instance of Sytem.Management.Automation.PowerShell
+ /// The infrastructure takes responsibility for closing and disposing the PowerShell instance returned.
+ protected override ActivityImplementationContext GetPowerShell(NativeActivityContext context)
+ {
+ System.Management.Automation.PowerShell invoker = global::System.Management.Automation.PowerShell.Create();
+ System.Management.Automation.PowerShell targetCommand = invoker.AddCommand(PSCommandName);
+
+ // Initialize the arguments
+
+ if(String.Expression != null)
+ {
+ targetCommand.AddParameter("String", String.Get(context));
+ }
+
+ if(AsPlainText.Expression != null)
+ {
+ targetCommand.AddParameter("AsPlainText", AsPlainText.Get(context));
+ }
+
+ if(Force.Expression != null)
+ {
+ targetCommand.AddParameter("Force", Force.Get(context));
+ }
+
+ if(SecureKey.Expression != null)
+ {
+ targetCommand.AddParameter("SecureKey", SecureKey.Get(context));
+ }
+
+ if(Key.Expression != null)
+ {
+ targetCommand.AddParameter("Key", Key.Get(context));
+ }
+
+
+ return new ActivityImplementationContext() { PowerShellInstance = invoker };
+ }
+ }
+}
diff --git a/src/Microsoft.PowerShell.Security.Activities/Generated/GetAclActivity.cs b/src/Microsoft.PowerShell.Security.Activities/Generated/GetAclActivity.cs
new file mode 100644
index 000000000..379797019
--- /dev/null
+++ b/src/Microsoft.PowerShell.Security.Activities/Generated/GetAclActivity.cs
@@ -0,0 +1,154 @@
+//
+// Copyright (C) Microsoft. All rights reserved.
+//
+using Microsoft.PowerShell.Activities;
+using System.Management.Automation;
+using System.Activities;
+using System.Collections.Generic;
+using System.ComponentModel;
+
+
+namespace Microsoft.PowerShell.Security.Activities
+{
+ ///
+ /// Activity to invoke the Microsoft.PowerShell.Security\Get-Acl command in a Workflow.
+ ///
+ [System.CodeDom.Compiler.GeneratedCode("Microsoft.PowerShell.Activities.ActivityGenerator.GenerateFromName", "3.0")]
+ public sealed class GetAcl : PSRemotingActivity
+ {
+ ///
+ /// Gets the display name of the command invoked by this activity.
+ ///
+ public GetAcl()
+ {
+ this.DisplayName = "Get-Acl";
+ }
+
+ ///
+ /// Gets the fully qualified name of the command invoked by this activity.
+ ///
+ public override string PSCommandName { get { return "Microsoft.PowerShell.Security\\Get-Acl"; } }
+
+ // Arguments
+
+ ///
+ /// Provides access to the Path parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Path { get; set; }
+
+ ///
+ /// Provides access to the InputObject parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument InputObject { get; set; }
+
+ ///
+ /// Provides access to the LiteralPath parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument LiteralPath { get; set; }
+
+ ///
+ /// Provides access to the Audit parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Audit { get; set; }
+
+ ///
+ /// Provides access to the AllCentralAccessPolicies parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument AllCentralAccessPolicies { get; set; }
+
+ ///
+ /// Provides access to the Filter parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Filter { get; set; }
+
+ ///
+ /// Provides access to the Include parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Include { get; set; }
+
+ ///
+ /// Provides access to the Exclude parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Exclude { get; set; }
+
+
+ // Module defining this command
+
+
+ // Optional custom code for this activity
+
+
+ ///
+ /// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run.
+ ///
+ /// The NativeActivityContext for the currently running activity.
+ /// A populated instance of Sytem.Management.Automation.PowerShell
+ /// The infrastructure takes responsibility for closing and disposing the PowerShell instance returned.
+ protected override ActivityImplementationContext GetPowerShell(NativeActivityContext context)
+ {
+ System.Management.Automation.PowerShell invoker = global::System.Management.Automation.PowerShell.Create();
+ System.Management.Automation.PowerShell targetCommand = invoker.AddCommand(PSCommandName);
+
+ // Initialize the arguments
+
+ if(Path.Expression != null)
+ {
+ targetCommand.AddParameter("Path", Path.Get(context));
+ }
+
+ if(InputObject.Expression != null)
+ {
+ targetCommand.AddParameter("InputObject", InputObject.Get(context));
+ }
+
+ if(LiteralPath.Expression != null)
+ {
+ targetCommand.AddParameter("LiteralPath", LiteralPath.Get(context));
+ }
+
+ if(Audit.Expression != null)
+ {
+ targetCommand.AddParameter("Audit", Audit.Get(context));
+ }
+
+ if(AllCentralAccessPolicies.Expression != null)
+ {
+ targetCommand.AddParameter("AllCentralAccessPolicies", AllCentralAccessPolicies.Get(context));
+ }
+
+ if(Filter.Expression != null)
+ {
+ targetCommand.AddParameter("Filter", Filter.Get(context));
+ }
+
+ if(Include.Expression != null)
+ {
+ targetCommand.AddParameter("Include", Include.Get(context));
+ }
+
+ if(Exclude.Expression != null)
+ {
+ targetCommand.AddParameter("Exclude", Exclude.Get(context));
+ }
+
+
+ return new ActivityImplementationContext() { PowerShellInstance = invoker };
+ }
+ }
+}
diff --git a/src/Microsoft.PowerShell.Security.Activities/Generated/GetAuthenticodeSignatureActivity.cs b/src/Microsoft.PowerShell.Security.Activities/Generated/GetAuthenticodeSignatureActivity.cs
new file mode 100644
index 000000000..0796389c5
--- /dev/null
+++ b/src/Microsoft.PowerShell.Security.Activities/Generated/GetAuthenticodeSignatureActivity.cs
@@ -0,0 +1,82 @@
+//
+// Copyright (C) Microsoft. All rights reserved.
+//
+using Microsoft.PowerShell.Activities;
+using System.Management.Automation;
+using System.Activities;
+using System.Collections.Generic;
+using System.ComponentModel;
+
+
+namespace Microsoft.PowerShell.Security.Activities
+{
+ ///
+ /// Activity to invoke the Microsoft.PowerShell.Security\Get-AuthenticodeSignature command in a Workflow.
+ ///
+ [System.CodeDom.Compiler.GeneratedCode("Microsoft.PowerShell.Activities.ActivityGenerator.GenerateFromName", "3.0")]
+ public sealed class GetAuthenticodeSignature : PSRemotingActivity
+ {
+ ///
+ /// Gets the display name of the command invoked by this activity.
+ ///
+ public GetAuthenticodeSignature()
+ {
+ this.DisplayName = "Get-AuthenticodeSignature";
+ }
+
+ ///
+ /// Gets the fully qualified name of the command invoked by this activity.
+ ///
+ public override string PSCommandName { get { return "Microsoft.PowerShell.Security\\Get-AuthenticodeSignature"; } }
+
+ // Arguments
+
+ ///
+ /// Provides access to the FilePath parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument FilePath { get; set; }
+
+ ///
+ /// Provides access to the LiteralPath parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument LiteralPath { get; set; }
+
+
+ // Module defining this command
+
+
+ // Optional custom code for this activity
+
+
+ ///
+ /// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run.
+ ///
+ /// The NativeActivityContext for the currently running activity.
+ /// A populated instance of Sytem.Management.Automation.PowerShell
+ /// The infrastructure takes responsibility for closing and disposing the PowerShell instance returned.
+ protected override ActivityImplementationContext GetPowerShell(NativeActivityContext context)
+ {
+ System.Management.Automation.PowerShell invoker = global::System.Management.Automation.PowerShell.Create();
+ System.Management.Automation.PowerShell targetCommand = invoker.AddCommand(PSCommandName);
+
+ // Initialize the arguments
+
+ if(FilePath.Expression != null)
+ {
+ targetCommand.AddParameter("FilePath", FilePath.Get(context));
+ }
+
+ if(LiteralPath.Expression != null)
+ {
+ targetCommand.AddParameter("LiteralPath", LiteralPath.Get(context));
+ }
+
+
+ return new ActivityImplementationContext() { PowerShellInstance = invoker };
+ }
+ }
+}
diff --git a/src/Microsoft.PowerShell.Security.Activities/Generated/GetCmsMessageActivity.cs b/src/Microsoft.PowerShell.Security.Activities/Generated/GetCmsMessageActivity.cs
new file mode 100644
index 000000000..8a8fe2c8e
--- /dev/null
+++ b/src/Microsoft.PowerShell.Security.Activities/Generated/GetCmsMessageActivity.cs
@@ -0,0 +1,94 @@
+//
+// Copyright (C) Microsoft. All rights reserved.
+//
+using Microsoft.PowerShell.Activities;
+using System.Management.Automation;
+using System.Activities;
+using System.Collections.Generic;
+using System.ComponentModel;
+
+
+namespace Microsoft.PowerShell.Security.Activities
+{
+ ///
+ /// Activity to invoke the Microsoft.PowerShell.Security\Get-CmsMessage command in a Workflow.
+ ///
+ [System.CodeDom.Compiler.GeneratedCode("Microsoft.PowerShell.Activities.ActivityGenerator.GenerateFromName", "3.0")]
+ public sealed class GetCmsMessage : PSRemotingActivity
+ {
+ ///
+ /// Gets the display name of the command invoked by this activity.
+ ///
+ public GetCmsMessage()
+ {
+ this.DisplayName = "Get-CmsMessage";
+ }
+
+ ///
+ /// Gets the fully qualified name of the command invoked by this activity.
+ ///
+ public override string PSCommandName { get { return "Microsoft.PowerShell.Security\\Get-CmsMessage"; } }
+
+ // Arguments
+
+ ///
+ /// Provides access to the Content parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Content { get; set; }
+
+ ///
+ /// Provides access to the Path parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Path { get; set; }
+
+ ///
+ /// Provides access to the LiteralPath parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument LiteralPath { get; set; }
+
+
+ // Module defining this command
+
+
+ // Optional custom code for this activity
+
+
+ ///
+ /// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run.
+ ///
+ /// The NativeActivityContext for the currently running activity.
+ /// A populated instance of Sytem.Management.Automation.PowerShell
+ /// The infrastructure takes responsibility for closing and disposing the PowerShell instance returned.
+ protected override ActivityImplementationContext GetPowerShell(NativeActivityContext context)
+ {
+ System.Management.Automation.PowerShell invoker = global::System.Management.Automation.PowerShell.Create();
+ System.Management.Automation.PowerShell targetCommand = invoker.AddCommand(PSCommandName);
+
+ // Initialize the arguments
+
+ if(Content.Expression != null)
+ {
+ targetCommand.AddParameter("Content", Content.Get(context));
+ }
+
+ if(Path.Expression != null)
+ {
+ targetCommand.AddParameter("Path", Path.Get(context));
+ }
+
+ if(LiteralPath.Expression != null)
+ {
+ targetCommand.AddParameter("LiteralPath", LiteralPath.Get(context));
+ }
+
+
+ return new ActivityImplementationContext() { PowerShellInstance = invoker };
+ }
+ }
+}
diff --git a/src/Microsoft.PowerShell.Security.Activities/Generated/GetExecutionPolicyActivity.cs b/src/Microsoft.PowerShell.Security.Activities/Generated/GetExecutionPolicyActivity.cs
new file mode 100644
index 000000000..2228cbe27
--- /dev/null
+++ b/src/Microsoft.PowerShell.Security.Activities/Generated/GetExecutionPolicyActivity.cs
@@ -0,0 +1,82 @@
+//
+// Copyright (C) Microsoft. All rights reserved.
+//
+using Microsoft.PowerShell.Activities;
+using System.Management.Automation;
+using System.Activities;
+using System.Collections.Generic;
+using System.ComponentModel;
+
+
+namespace Microsoft.PowerShell.Security.Activities
+{
+ ///
+ /// Activity to invoke the Microsoft.PowerShell.Security\Get-ExecutionPolicy command in a Workflow.
+ ///
+ [System.CodeDom.Compiler.GeneratedCode("Microsoft.PowerShell.Activities.ActivityGenerator.GenerateFromName", "3.0")]
+ public sealed class GetExecutionPolicy : PSRemotingActivity
+ {
+ ///
+ /// Gets the display name of the command invoked by this activity.
+ ///
+ public GetExecutionPolicy()
+ {
+ this.DisplayName = "Get-ExecutionPolicy";
+ }
+
+ ///
+ /// Gets the fully qualified name of the command invoked by this activity.
+ ///
+ public override string PSCommandName { get { return "Microsoft.PowerShell.Security\\Get-ExecutionPolicy"; } }
+
+ // Arguments
+
+ ///
+ /// Provides access to the Scope parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Scope { get; set; }
+
+ ///
+ /// Provides access to the List parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument List { get; set; }
+
+
+ // Module defining this command
+
+
+ // Optional custom code for this activity
+
+
+ ///
+ /// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run.
+ ///
+ /// The NativeActivityContext for the currently running activity.
+ /// A populated instance of Sytem.Management.Automation.PowerShell
+ /// The infrastructure takes responsibility for closing and disposing the PowerShell instance returned.
+ protected override ActivityImplementationContext GetPowerShell(NativeActivityContext context)
+ {
+ System.Management.Automation.PowerShell invoker = global::System.Management.Automation.PowerShell.Create();
+ System.Management.Automation.PowerShell targetCommand = invoker.AddCommand(PSCommandName);
+
+ // Initialize the arguments
+
+ if(Scope.Expression != null)
+ {
+ targetCommand.AddParameter("Scope", Scope.Get(context));
+ }
+
+ if(List.Expression != null)
+ {
+ targetCommand.AddParameter("List", List.Get(context));
+ }
+
+
+ return new ActivityImplementationContext() { PowerShellInstance = invoker };
+ }
+ }
+}
diff --git a/src/Microsoft.PowerShell.Security.Activities/Generated/GetPfxCertificateActivity.cs b/src/Microsoft.PowerShell.Security.Activities/Generated/GetPfxCertificateActivity.cs
new file mode 100644
index 000000000..032c9ba1c
--- /dev/null
+++ b/src/Microsoft.PowerShell.Security.Activities/Generated/GetPfxCertificateActivity.cs
@@ -0,0 +1,82 @@
+//
+// Copyright (C) Microsoft. All rights reserved.
+//
+using Microsoft.PowerShell.Activities;
+using System.Management.Automation;
+using System.Activities;
+using System.Collections.Generic;
+using System.ComponentModel;
+
+
+namespace Microsoft.PowerShell.Security.Activities
+{
+ ///
+ /// Activity to invoke the Microsoft.PowerShell.Security\Get-PfxCertificate command in a Workflow.
+ ///
+ [System.CodeDom.Compiler.GeneratedCode("Microsoft.PowerShell.Activities.ActivityGenerator.GenerateFromName", "3.0")]
+ public sealed class GetPfxCertificate : PSRemotingActivity
+ {
+ ///
+ /// Gets the display name of the command invoked by this activity.
+ ///
+ public GetPfxCertificate()
+ {
+ this.DisplayName = "Get-PfxCertificate";
+ }
+
+ ///
+ /// Gets the fully qualified name of the command invoked by this activity.
+ ///
+ public override string PSCommandName { get { return "Microsoft.PowerShell.Security\\Get-PfxCertificate"; } }
+
+ // Arguments
+
+ ///
+ /// Provides access to the FilePath parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument FilePath { get; set; }
+
+ ///
+ /// Provides access to the LiteralPath parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument LiteralPath { get; set; }
+
+
+ // Module defining this command
+
+
+ // Optional custom code for this activity
+
+
+ ///
+ /// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run.
+ ///
+ /// The NativeActivityContext for the currently running activity.
+ /// A populated instance of Sytem.Management.Automation.PowerShell
+ /// The infrastructure takes responsibility for closing and disposing the PowerShell instance returned.
+ protected override ActivityImplementationContext GetPowerShell(NativeActivityContext context)
+ {
+ System.Management.Automation.PowerShell invoker = global::System.Management.Automation.PowerShell.Create();
+ System.Management.Automation.PowerShell targetCommand = invoker.AddCommand(PSCommandName);
+
+ // Initialize the arguments
+
+ if(FilePath.Expression != null)
+ {
+ targetCommand.AddParameter("FilePath", FilePath.Get(context));
+ }
+
+ if(LiteralPath.Expression != null)
+ {
+ targetCommand.AddParameter("LiteralPath", LiteralPath.Get(context));
+ }
+
+
+ return new ActivityImplementationContext() { PowerShellInstance = invoker };
+ }
+ }
+}
diff --git a/src/Microsoft.PowerShell.Security.Activities/Generated/ProtectCmsMessageActivity.cs b/src/Microsoft.PowerShell.Security.Activities/Generated/ProtectCmsMessageActivity.cs
new file mode 100644
index 000000000..d1371a227
--- /dev/null
+++ b/src/Microsoft.PowerShell.Security.Activities/Generated/ProtectCmsMessageActivity.cs
@@ -0,0 +1,118 @@
+//
+// Copyright (C) Microsoft. All rights reserved.
+//
+using Microsoft.PowerShell.Activities;
+using System.Management.Automation;
+using System.Activities;
+using System.Collections.Generic;
+using System.ComponentModel;
+
+
+namespace Microsoft.PowerShell.Security.Activities
+{
+ ///
+ /// Activity to invoke the Microsoft.PowerShell.Security\Protect-CmsMessage command in a Workflow.
+ ///
+ [System.CodeDom.Compiler.GeneratedCode("Microsoft.PowerShell.Activities.ActivityGenerator.GenerateFromName", "3.0")]
+ public sealed class ProtectCmsMessage : PSRemotingActivity
+ {
+ ///
+ /// Gets the display name of the command invoked by this activity.
+ ///
+ public ProtectCmsMessage()
+ {
+ this.DisplayName = "Protect-CmsMessage";
+ }
+
+ ///
+ /// Gets the fully qualified name of the command invoked by this activity.
+ ///
+ public override string PSCommandName { get { return "Microsoft.PowerShell.Security\\Protect-CmsMessage"; } }
+
+ // Arguments
+
+ ///
+ /// Provides access to the To parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument To { get; set; }
+
+ ///
+ /// Provides access to the Content parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Content { get; set; }
+
+ ///
+ /// Provides access to the Path parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Path { get; set; }
+
+ ///
+ /// Provides access to the LiteralPath parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument LiteralPath { get; set; }
+
+ ///
+ /// Provides access to the OutFile parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument OutFile { get; set; }
+
+
+ // Module defining this command
+
+
+ // Optional custom code for this activity
+
+
+ ///
+ /// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run.
+ ///
+ /// The NativeActivityContext for the currently running activity.
+ /// A populated instance of Sytem.Management.Automation.PowerShell
+ /// The infrastructure takes responsibility for closing and disposing the PowerShell instance returned.
+ protected override ActivityImplementationContext GetPowerShell(NativeActivityContext context)
+ {
+ System.Management.Automation.PowerShell invoker = global::System.Management.Automation.PowerShell.Create();
+ System.Management.Automation.PowerShell targetCommand = invoker.AddCommand(PSCommandName);
+
+ // Initialize the arguments
+
+ if(To.Expression != null)
+ {
+ targetCommand.AddParameter("To", To.Get(context));
+ }
+
+ if(Content.Expression != null)
+ {
+ targetCommand.AddParameter("Content", Content.Get(context));
+ }
+
+ if(Path.Expression != null)
+ {
+ targetCommand.AddParameter("Path", Path.Get(context));
+ }
+
+ if(LiteralPath.Expression != null)
+ {
+ targetCommand.AddParameter("LiteralPath", LiteralPath.Get(context));
+ }
+
+ if(OutFile.Expression != null)
+ {
+ targetCommand.AddParameter("OutFile", OutFile.Get(context));
+ }
+
+
+ return new ActivityImplementationContext() { PowerShellInstance = invoker };
+ }
+ }
+}
diff --git a/src/Microsoft.PowerShell.Security.Activities/Generated/SetAclActivity.cs b/src/Microsoft.PowerShell.Security.Activities/Generated/SetAclActivity.cs
new file mode 100644
index 000000000..dcacc23c5
--- /dev/null
+++ b/src/Microsoft.PowerShell.Security.Activities/Generated/SetAclActivity.cs
@@ -0,0 +1,190 @@
+//
+// Copyright (C) Microsoft. All rights reserved.
+//
+using Microsoft.PowerShell.Activities;
+using System.Management.Automation;
+using System.Activities;
+using System.Collections.Generic;
+using System.ComponentModel;
+
+
+namespace Microsoft.PowerShell.Security.Activities
+{
+ ///
+ /// Activity to invoke the Microsoft.PowerShell.Security\Set-Acl command in a Workflow.
+ ///
+ [System.CodeDom.Compiler.GeneratedCode("Microsoft.PowerShell.Activities.ActivityGenerator.GenerateFromName", "3.0")]
+ public sealed class SetAcl : PSRemotingActivity
+ {
+ ///
+ /// Gets the display name of the command invoked by this activity.
+ ///
+ public SetAcl()
+ {
+ this.DisplayName = "Set-Acl";
+ }
+
+ ///
+ /// Gets the fully qualified name of the command invoked by this activity.
+ ///
+ public override string PSCommandName { get { return "Microsoft.PowerShell.Security\\Set-Acl"; } }
+
+ // Arguments
+
+ ///
+ /// Provides access to the Path parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Path { get; set; }
+
+ ///
+ /// Provides access to the InputObject parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument InputObject { get; set; }
+
+ ///
+ /// Provides access to the LiteralPath parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument LiteralPath { get; set; }
+
+ ///
+ /// Provides access to the AclObject parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument AclObject { get; set; }
+
+ ///
+ /// Provides access to the SecurityDescriptor parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument SecurityDescriptor { get; set; }
+
+ ///
+ /// Provides access to the CentralAccessPolicy parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument CentralAccessPolicy { get; set; }
+
+ ///
+ /// Provides access to the ClearCentralAccessPolicy parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument ClearCentralAccessPolicy { get; set; }
+
+ ///
+ /// Provides access to the Passthru parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Passthru { get; set; }
+
+ ///
+ /// Provides access to the Filter parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Filter { get; set; }
+
+ ///
+ /// Provides access to the Include parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Include { get; set; }
+
+ ///
+ /// Provides access to the Exclude parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Exclude { get; set; }
+
+
+ // Module defining this command
+
+
+ // Optional custom code for this activity
+
+
+ ///
+ /// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run.
+ ///
+ /// The NativeActivityContext for the currently running activity.
+ /// A populated instance of Sytem.Management.Automation.PowerShell
+ /// The infrastructure takes responsibility for closing and disposing the PowerShell instance returned.
+ protected override ActivityImplementationContext GetPowerShell(NativeActivityContext context)
+ {
+ System.Management.Automation.PowerShell invoker = global::System.Management.Automation.PowerShell.Create();
+ System.Management.Automation.PowerShell targetCommand = invoker.AddCommand(PSCommandName);
+
+ // Initialize the arguments
+
+ if(Path.Expression != null)
+ {
+ targetCommand.AddParameter("Path", Path.Get(context));
+ }
+
+ if(InputObject.Expression != null)
+ {
+ targetCommand.AddParameter("InputObject", InputObject.Get(context));
+ }
+
+ if(LiteralPath.Expression != null)
+ {
+ targetCommand.AddParameter("LiteralPath", LiteralPath.Get(context));
+ }
+
+ if(AclObject.Expression != null)
+ {
+ targetCommand.AddParameter("AclObject", AclObject.Get(context));
+ }
+
+ if(SecurityDescriptor.Expression != null)
+ {
+ targetCommand.AddParameter("SecurityDescriptor", SecurityDescriptor.Get(context));
+ }
+
+ if(CentralAccessPolicy.Expression != null)
+ {
+ targetCommand.AddParameter("CentralAccessPolicy", CentralAccessPolicy.Get(context));
+ }
+
+ if(ClearCentralAccessPolicy.Expression != null)
+ {
+ targetCommand.AddParameter("ClearCentralAccessPolicy", ClearCentralAccessPolicy.Get(context));
+ }
+
+ if(Passthru.Expression != null)
+ {
+ targetCommand.AddParameter("Passthru", Passthru.Get(context));
+ }
+
+ if(Filter.Expression != null)
+ {
+ targetCommand.AddParameter("Filter", Filter.Get(context));
+ }
+
+ if(Include.Expression != null)
+ {
+ targetCommand.AddParameter("Include", Include.Get(context));
+ }
+
+ if(Exclude.Expression != null)
+ {
+ targetCommand.AddParameter("Exclude", Exclude.Get(context));
+ }
+
+
+ return new ActivityImplementationContext() { PowerShellInstance = invoker };
+ }
+ }
+}
diff --git a/src/Microsoft.PowerShell.Security.Activities/Generated/SetAuthenticodeSignatureActivity.cs b/src/Microsoft.PowerShell.Security.Activities/Generated/SetAuthenticodeSignatureActivity.cs
new file mode 100644
index 000000000..6659f6709
--- /dev/null
+++ b/src/Microsoft.PowerShell.Security.Activities/Generated/SetAuthenticodeSignatureActivity.cs
@@ -0,0 +1,142 @@
+//
+// Copyright (C) Microsoft. All rights reserved.
+//
+using Microsoft.PowerShell.Activities;
+using System.Management.Automation;
+using System.Activities;
+using System.Collections.Generic;
+using System.ComponentModel;
+
+
+namespace Microsoft.PowerShell.Security.Activities
+{
+ ///
+ /// Activity to invoke the Microsoft.PowerShell.Security\Set-AuthenticodeSignature command in a Workflow.
+ ///
+ [System.CodeDom.Compiler.GeneratedCode("Microsoft.PowerShell.Activities.ActivityGenerator.GenerateFromName", "3.0")]
+ public sealed class SetAuthenticodeSignature : PSRemotingActivity
+ {
+ ///
+ /// Gets the display name of the command invoked by this activity.
+ ///
+ public SetAuthenticodeSignature()
+ {
+ this.DisplayName = "Set-AuthenticodeSignature";
+ }
+
+ ///
+ /// Gets the fully qualified name of the command invoked by this activity.
+ ///
+ public override string PSCommandName { get { return "Microsoft.PowerShell.Security\\Set-AuthenticodeSignature"; } }
+
+ // Arguments
+
+ ///
+ /// Provides access to the Certificate parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Certificate { get; set; }
+
+ ///
+ /// Provides access to the IncludeChain parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument IncludeChain { get; set; }
+
+ ///
+ /// Provides access to the TimestampServer parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument TimestampServer { get; set; }
+
+ ///
+ /// Provides access to the HashAlgorithm parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument HashAlgorithm { get; set; }
+
+ ///
+ /// Provides access to the Force parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Force { get; set; }
+
+ ///
+ /// Provides access to the FilePath parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument FilePath { get; set; }
+
+ ///
+ /// Provides access to the LiteralPath parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument LiteralPath { get; set; }
+
+
+ // Module defining this command
+
+
+ // Optional custom code for this activity
+
+
+ ///
+ /// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run.
+ ///
+ /// The NativeActivityContext for the currently running activity.
+ /// A populated instance of Sytem.Management.Automation.PowerShell
+ /// The infrastructure takes responsibility for closing and disposing the PowerShell instance returned.
+ protected override ActivityImplementationContext GetPowerShell(NativeActivityContext context)
+ {
+ System.Management.Automation.PowerShell invoker = global::System.Management.Automation.PowerShell.Create();
+ System.Management.Automation.PowerShell targetCommand = invoker.AddCommand(PSCommandName);
+
+ // Initialize the arguments
+
+ if(Certificate.Expression != null)
+ {
+ targetCommand.AddParameter("Certificate", Certificate.Get(context));
+ }
+
+ if(IncludeChain.Expression != null)
+ {
+ targetCommand.AddParameter("IncludeChain", IncludeChain.Get(context));
+ }
+
+ if(TimestampServer.Expression != null)
+ {
+ targetCommand.AddParameter("TimestampServer", TimestampServer.Get(context));
+ }
+
+ if(HashAlgorithm.Expression != null)
+ {
+ targetCommand.AddParameter("HashAlgorithm", HashAlgorithm.Get(context));
+ }
+
+ if(Force.Expression != null)
+ {
+ targetCommand.AddParameter("Force", Force.Get(context));
+ }
+
+ if(FilePath.Expression != null)
+ {
+ targetCommand.AddParameter("FilePath", FilePath.Get(context));
+ }
+
+ if(LiteralPath.Expression != null)
+ {
+ targetCommand.AddParameter("LiteralPath", LiteralPath.Get(context));
+ }
+
+
+ return new ActivityImplementationContext() { PowerShellInstance = invoker };
+ }
+ }
+}
diff --git a/src/Microsoft.PowerShell.Security.Activities/Generated/SetExecutionPolicyActivity.cs b/src/Microsoft.PowerShell.Security.Activities/Generated/SetExecutionPolicyActivity.cs
new file mode 100644
index 000000000..2a04b30fe
--- /dev/null
+++ b/src/Microsoft.PowerShell.Security.Activities/Generated/SetExecutionPolicyActivity.cs
@@ -0,0 +1,94 @@
+//
+// Copyright (C) Microsoft. All rights reserved.
+//
+using Microsoft.PowerShell.Activities;
+using System.Management.Automation;
+using System.Activities;
+using System.Collections.Generic;
+using System.ComponentModel;
+
+
+namespace Microsoft.PowerShell.Security.Activities
+{
+ ///
+ /// Activity to invoke the Microsoft.PowerShell.Security\Set-ExecutionPolicy command in a Workflow.
+ ///
+ [System.CodeDom.Compiler.GeneratedCode("Microsoft.PowerShell.Activities.ActivityGenerator.GenerateFromName", "3.0")]
+ public sealed class SetExecutionPolicy : PSRemotingActivity
+ {
+ ///
+ /// Gets the display name of the command invoked by this activity.
+ ///
+ public SetExecutionPolicy()
+ {
+ this.DisplayName = "Set-ExecutionPolicy";
+ }
+
+ ///
+ /// Gets the fully qualified name of the command invoked by this activity.
+ ///
+ public override string PSCommandName { get { return "Microsoft.PowerShell.Security\\Set-ExecutionPolicy"; } }
+
+ // Arguments
+
+ ///
+ /// Provides access to the ExecutionPolicy parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument ExecutionPolicy { get; set; }
+
+ ///
+ /// Provides access to the Scope parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Scope { get; set; }
+
+ ///
+ /// Provides access to the Force parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Force { get; set; }
+
+
+ // Module defining this command
+
+
+ // Optional custom code for this activity
+
+
+ ///
+ /// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run.
+ ///
+ /// The NativeActivityContext for the currently running activity.
+ /// A populated instance of Sytem.Management.Automation.PowerShell
+ /// The infrastructure takes responsibility for closing and disposing the PowerShell instance returned.
+ protected override ActivityImplementationContext GetPowerShell(NativeActivityContext context)
+ {
+ System.Management.Automation.PowerShell invoker = global::System.Management.Automation.PowerShell.Create();
+ System.Management.Automation.PowerShell targetCommand = invoker.AddCommand(PSCommandName);
+
+ // Initialize the arguments
+
+ if(ExecutionPolicy.Expression != null)
+ {
+ targetCommand.AddParameter("ExecutionPolicy", ExecutionPolicy.Get(context));
+ }
+
+ if(Scope.Expression != null)
+ {
+ targetCommand.AddParameter("Scope", Scope.Get(context));
+ }
+
+ if(Force.Expression != null)
+ {
+ targetCommand.AddParameter("Force", Force.Get(context));
+ }
+
+
+ return new ActivityImplementationContext() { PowerShellInstance = invoker };
+ }
+ }
+}
diff --git a/src/Microsoft.PowerShell.Security.Activities/Generated/UnprotectCmsMessageActivity.cs b/src/Microsoft.PowerShell.Security.Activities/Generated/UnprotectCmsMessageActivity.cs
new file mode 100644
index 000000000..71452d781
--- /dev/null
+++ b/src/Microsoft.PowerShell.Security.Activities/Generated/UnprotectCmsMessageActivity.cs
@@ -0,0 +1,130 @@
+//
+// Copyright (C) Microsoft. All rights reserved.
+//
+using Microsoft.PowerShell.Activities;
+using System.Management.Automation;
+using System.Activities;
+using System.Collections.Generic;
+using System.ComponentModel;
+
+
+namespace Microsoft.PowerShell.Security.Activities
+{
+ ///
+ /// Activity to invoke the Microsoft.PowerShell.Security\Unprotect-CmsMessage command in a Workflow.
+ ///
+ [System.CodeDom.Compiler.GeneratedCode("Microsoft.PowerShell.Activities.ActivityGenerator.GenerateFromName", "3.0")]
+ public sealed class UnprotectCmsMessage : PSRemotingActivity
+ {
+ ///
+ /// Gets the display name of the command invoked by this activity.
+ ///
+ public UnprotectCmsMessage()
+ {
+ this.DisplayName = "Unprotect-CmsMessage";
+ }
+
+ ///
+ /// Gets the fully qualified name of the command invoked by this activity.
+ ///
+ public override string PSCommandName { get { return "Microsoft.PowerShell.Security\\Unprotect-CmsMessage"; } }
+
+ // Arguments
+
+ ///
+ /// Provides access to the Content parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Content { get; set; }
+
+ ///
+ /// Provides access to the EventLogRecord parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument EventLogRecord { get; set; }
+
+ ///
+ /// Provides access to the Path parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Path { get; set; }
+
+ ///
+ /// Provides access to the LiteralPath parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument LiteralPath { get; set; }
+
+ ///
+ /// Provides access to the IncludeContext parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument IncludeContext { get; set; }
+
+ ///
+ /// Provides access to the To parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument To { get; set; }
+
+
+ // Module defining this command
+
+
+ // Optional custom code for this activity
+
+
+ ///
+ /// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run.
+ ///
+ /// The NativeActivityContext for the currently running activity.
+ /// A populated instance of Sytem.Management.Automation.PowerShell
+ /// The infrastructure takes responsibility for closing and disposing the PowerShell instance returned.
+ protected override ActivityImplementationContext GetPowerShell(NativeActivityContext context)
+ {
+ System.Management.Automation.PowerShell invoker = global::System.Management.Automation.PowerShell.Create();
+ System.Management.Automation.PowerShell targetCommand = invoker.AddCommand(PSCommandName);
+
+ // Initialize the arguments
+
+ if(Content.Expression != null)
+ {
+ targetCommand.AddParameter("Content", Content.Get(context));
+ }
+
+ if(EventLogRecord.Expression != null)
+ {
+ targetCommand.AddParameter("EventLogRecord", EventLogRecord.Get(context));
+ }
+
+ if(Path.Expression != null)
+ {
+ targetCommand.AddParameter("Path", Path.Get(context));
+ }
+
+ if(LiteralPath.Expression != null)
+ {
+ targetCommand.AddParameter("LiteralPath", LiteralPath.Get(context));
+ }
+
+ if(IncludeContext.Expression != null)
+ {
+ targetCommand.AddParameter("IncludeContext", IncludeContext.Get(context));
+ }
+
+ if(To.Expression != null)
+ {
+ targetCommand.AddParameter("To", To.Get(context));
+ }
+
+
+ return new ActivityImplementationContext() { PowerShellInstance = invoker };
+ }
+ }
+}