public void Design(IActivityDesigner designer) { designer.AddInput("Mailbox Email Address").WithDefaultValue("*****@*****.**"); designer.AddCorellatedData(typeof(OutOfOffice)); }
public void Design(IActivityDesigner designer) { designer.AddInput("appointment ID"); designer.AddInput("Alternate Mailbox").NotRequired(); designer.AddOutput("appointment ID"); }
public void Design(IActivityDesigner designer) { designer.AddInput("Filter").WithDefaultValue("PackageID LIKE '%' AND ProgramName LIKE '%'"); designer.AddCorellatedData(typeof(program)); designer.AddOutput("Number of Programs"); }
public void Design(IActivityDesigner designer) { designer.AddInput("Package ID").WithDefaultValue("ABC00000"); designer.AddCorellatedData(typeof(package)); designer.AddOutput("Number of Packages"); }
public void Design(IActivityDesigner designer) { designer.AddInput("Source Container ID").WithDefaultValue(1); designer.AddInput("Destination Container ID").WithDefaultValue(2); designer.AddOutput("Number of Object Container Nodes"); }
public void Design(IActivityDesigner designer) { designer.AddInput("Clear History Before Date").WithDateTimeBrowser().ToString(); designer.AddOutput("Action Result").AsNumber().WithDescription("Result of Clearing Request"); designer.AddCorellatedData(typeof(FIMSyncManagementAgents)); }
private void AddInput(IActivityDesigner designer, PSObject parameter) { if ((parameter == null) || (parameter.Properties["Name"] == null) || (parameter.Properties["ParameterType"] == null)) { return; } string propertyName = parameter.Properties["Name"].Value.ToString(); string propertyType = parameter.Properties["ParameterType"].Value.ToString(); bool isMandatory = Boolean.Parse(parameter.Properties["IsMandatory"].Value.ToString()); switch (propertyType) { case ("System.String"): if (isMandatory) { designer.AddInput(CreateInputFieldName(propertyName, propertyType)); } else { designer.AddInput(CreateInputFieldName(propertyName, propertyType)).NotRequired(); } // designer.AddOutput(propertyName).WithDescription(propertyType).AsString(); break; case ("System.Int32"): case ("System.UInt32"): if (isMandatory) { designer.AddInput(CreateInputFieldName(propertyName, propertyType)); } else { designer.AddInput(CreateInputFieldName(propertyName, propertyType)).NotRequired(); } // designer.AddOutput(propertyName).WithDescription(propertyType).AsNumber(); break; case ("System.Management.Automation.SwitchParameter"): if (isMandatory) { designer.AddInput(CreateInputFieldName(propertyName, propertyType)).WithBooleanBrowser(); } else { designer.AddInput(CreateInputFieldName(propertyName, propertyType)).WithBooleanBrowser().NotRequired(); } // designer.AddOutput(propertyName).WithDescription(propertyType).AsString(); break; case ("System.Management.Automation.ActionPreference"): string[] options = SetListValuesFromEnum(propertyType); if (options == null) { if (isMandatory) { designer.AddInput(CreateInputFieldName(propertyName, propertyType)); } else { designer.AddInput(CreateInputFieldName(propertyName, propertyType)).NotRequired(); } } else { if (isMandatory) { designer.AddInput(CreateInputFieldName(propertyName, propertyType)).WithListBrowser(options); } else { designer.AddInput(CreateInputFieldName(propertyName, propertyType)).WithListBrowser(options).NotRequired(); } } designer.AddOutput(propertyName).WithDescription(propertyType).AsString(); break; default: if (isMandatory) { designer.AddInput(CreateInputFieldName(propertyName, propertyType)); } else { designer.AddInput(CreateInputFieldName(propertyName, propertyType)).NotRequired(); } designer.AddOutput(propertyName).WithDescription(propertyType).AsString(); break; } }
public void Design(IActivityDesigner designer) { designer.AddInput("Object LDAP Path").WithDefaultValue("LDAP://Contoso.com/CN=ObjectName,OU=Container,DC=Contoso,DC=Com"); designer.AddOutput("Disabled Object LDAP Path").AsString(); }
public void Design(IActivityDesigner designer) { designer.AddInput("Target Zip"); designer.AddOutput("Number of Files"); }
public void Design(IActivityDesigner designer) { designer.AddInput(PATH).WithFileBrowser(); designer.AddCorellatedData(typeof(ACLEntry)); }
public void Design(IActivityDesigner designer) { string[] PriorityOptions = new string[6]; PriorityOptions[0] = "AboveNormal"; PriorityOptions[1] = "BelowNormal"; PriorityOptions[2] = "High"; PriorityOptions[3] = "Idle"; PriorityOptions[4] = "Normal"; PriorityOptions[5] = "Realtime"; string[] hiddenOptions = { "True", "False" }; designer.AddInput("Computer Name"); designer.AddInput("Task Name"); designer.AddInput("Application Name").NotRequired(); designer.AddInput("Parameters").NotRequired(); designer.AddInput("Comment").NotRequired(); designer.AddInput("Creator").NotRequired(); designer.AddInput("Working Directory").NotRequired(); designer.AddInput("Account Name").NotRequired(); designer.AddInput("Password").PasswordProtect().NotRequired(); designer.AddInput("Hidden").NotRequired().WithListBrowser(hiddenOptions); designer.AddInput("IdleWaitDeadlineMinutes").NotRequired(); designer.AddInput("IdleWaitMinutes").NotRequired(); designer.AddInput("Max Runtime (Seconds)").NotRequired(); designer.AddInput("Priority").NotRequired().WithListBrowser(PriorityOptions); designer.AddCorellatedData(typeof(opalisTask)); }
public void Design(IActivityDesigner designer) { WqlConnectionManager connection = CM2012Interop.connectSCCMServer(settings.SCCMSERVER, settings.UserName, settings.Password); designer.AddInput("Advertisement ID").WithDefaultValue("ABC00000"); designer.AddInput("BATTERY_POWER").WithDefaultValue(false).WithBooleanBrowser(); designer.AddInput("RUN_FROM_CD").WithDefaultValue(false).WithBooleanBrowser(); designer.AddInput("DOWNLOAD_FROM_CD").WithDefaultValue(false).WithBooleanBrowser(); designer.AddInput("RUN_FROM_LOCAL_DISPPOINT").WithDefaultValue(false).WithBooleanBrowser(); designer.AddInput("DOWNLOAD_FROM_LOCAL_DISPPOINT").WithDefaultValue(false).WithBooleanBrowser(); designer.AddInput("DONT_RUN_NO_LOCAL_DISPPOINT").WithDefaultValue(false).WithBooleanBrowser(); designer.AddInput("DOWNLOAD_FROM_REMOTE_DISPPOINT").WithDefaultValue(false).WithBooleanBrowser(); designer.AddInput("RUN_FROM_REMOTE_DISPPOINT").WithDefaultValue(false).WithBooleanBrowser(); designer.AddInput("DOWNLOAD_ON_DEMAND_FROM_LOCAL_DP").WithDefaultValue(false).WithBooleanBrowser(); designer.AddInput("DOWNLOAD_ON_DEMAND_FROM_REMOTE_DP").WithDefaultValue(false).WithBooleanBrowser(); designer.AddInput("BALLOON_REMINDERS_REQUIRED").WithDefaultValue(false).WithBooleanBrowser(); designer.AddInput("RERUN_ALWAYS").WithDefaultValue(false).WithBooleanBrowser(); designer.AddInput("RERUN_NEVER").WithDefaultValue(false).WithBooleanBrowser(); designer.AddInput("RERUN_IF_FAILED").WithDefaultValue(false).WithBooleanBrowser(); designer.AddInput("RERUN_IF_SUCCEEDED").WithDefaultValue(false).WithBooleanBrowser(); designer.AddCorellatedData(typeof(advertisement)); designer.AddOutput("Number of Advertisements"); }
public void Design(IActivityDesigner designer) { designer.AddInput("Computer Name"); designer.AddInput("Task Name"); designer.AddOutput("Task Status").AsString(); }
public void Design(IActivityDesigner designer) { designer.AddInput("Folder ID").WithDefaultValue(1); designer.AddOutput("Number of Object Container Nodes"); }
public void Design(IActivityDesigner designer) { designer.AddInput("Folder Path"); designer.AddCorellatedData(typeof(RunbookInst)); }
public void Design(IActivityDesigner designer) { designer.AddInput("Filter").WithDefaultValue("CI_ID LIKE '%'"); designer.AddCorellatedData(typeof(driver)); designer.AddOutput("Number of Drivers"); }
public void Design(IActivityDesigner designer) { designer.AddInput("appointment ID"); designer.AddOutput("appointment ID"); }
public void Design(IActivityDesigner designer) { designer.AddInput("VM"); designer.AddInput("Name").NotRequired(); designer.AddCorellatedData(typeof(snapshot)); }
public void Design(IActivityDesigner designer) { designer.AddInput("Source File Path"); designer.AddInput("Destination File Path").WithFileBrowser().WithDefaultValue("\\myfileserver\fileShare"); designer.AddInput("Overwrite Local File").WithListBrowser(new string[] { "True", "False" }).WithDefaultValue("True"); }
public void Design(IActivityDesigner designer) { designer.AddInput("Parent Collection ID").WithDefaultValue("AAA00000"); designer.AddCorellatedData(typeof(collection)); designer.AddOutput("Number of Collections"); }
public void Design(IActivityDesigner designer) { designer.AddInput("Computer Name"); designer.AddInput("Task Name"); designer.AddCorellatedData(typeof(OpalisTaskTrigger)); }
public void Design(IActivityDesigner designer) { designer.AddInput("Input String"); designer.AddCorellatedData(typeof(Line)); }
public void Design(IActivityDesigner designer) { designer.AddInput("Key Path: HKLM:\\"); designer.AddInput("Server Name").WithComputerBrowser(); designer.AddOutput("Results").AsString(); }
public void Design(IActivityDesigner designer) { designer.AddInput("Package ID").WithDefaultValue("ABC00000"); designer.AddInput("Program Name").WithDefaultValue("PROGRAM NAME"); designer.AddInput("UNATTENDED").WithDefaultValue(true).WithBooleanBrowser(); designer.AddInput("USER CONTEXT").WithDefaultValue(true).WithBooleanBrowser(); designer.AddInput("EVERY USER").WithDefaultValue(true).WithBooleanBrowser(); designer.AddInput("USE UNC PATH").WithDefaultValue(true).WithBooleanBrowser(); designer.AddInput("Authorized Dynamic Install").WithDefaultValue(false).WithBooleanBrowser(); designer.AddInput("USE CUSTOM PROGRESS MSG").WithDefaultValue(false).WithBooleanBrowser(); designer.AddInput("DEFAULT PROGRAM").WithDefaultValue(false).WithBooleanBrowser(); designer.AddInput("DISABLE MOM ALERT ON RUNNING").WithDefaultValue(false).WithBooleanBrowser(); designer.AddInput("MOM ALERT ON FAIL").WithDefaultValue(false).WithBooleanBrowser(); designer.AddInput("RUN DEPENDANT ALWAYS").WithDefaultValue(false).WithBooleanBrowser(); designer.AddInput("WINDOWS CE").WithDefaultValue(false).WithBooleanBrowser(); designer.AddInput("COUNTDOWN").WithDefaultValue(false).WithBooleanBrowser(); designer.AddInput("FORCE RERUN").WithDefaultValue(false).WithBooleanBrowser(); designer.AddInput("DISABLED").WithDefaultValue(false).WithBooleanBrowser(); designer.AddInput("ADMIN RIGHTS").WithDefaultValue(false).WithBooleanBrowser(); designer.AddInput("USE CUSTOM PROGRESS MSG").WithDefaultValue(false).WithBooleanBrowser(); designer.AddInput("NO USER LOGGED IN").WithDefaultValue(false).WithBooleanBrowser(); designer.AddInput("OK TO QUIT").WithDefaultValue(false).WithBooleanBrowser(); designer.AddInput("OK TO REBOOT").WithDefaultValue(false).WithBooleanBrowser(); designer.AddInput("PERSIST CONNECTION").WithDefaultValue(false).WithBooleanBrowser(); designer.AddInput("RUN MINIMIZED").WithDefaultValue(false).WithBooleanBrowser(); designer.AddInput("RUN MAXIMIZED").WithDefaultValue(false).WithBooleanBrowser(); designer.AddInput("HIDE WINDOW").WithDefaultValue(false).WithBooleanBrowser(); designer.AddInput("OK TO LOGOFF").WithDefaultValue(false).WithBooleanBrowser(); designer.AddInput("RUN ACCOUNT").WithDefaultValue(false).WithBooleanBrowser(); designer.AddInput("ANY PLATFORM").WithDefaultValue(false).WithBooleanBrowser(); designer.AddInput("STILL RUNNING").WithDefaultValue(false).WithBooleanBrowser(); designer.AddInput("SUPPORT UNINSTALL").WithDefaultValue(false).WithBooleanBrowser(); designer.AddInput("Platform Not Supported").WithDefaultValue(false).WithBooleanBrowser(); designer.AddInput("SHOW IN ARP").WithDefaultValue(false).WithBooleanBrowser(); designer.AddCorellatedData(typeof(program)); designer.AddOutput("Number of Programs"); }
public void Design(IActivityDesigner designer) { designer.AddInput("User LDAP Path").WithDefaultValue("LDAP://Contoso.com/CN=UserName,OU=Container,DC=Contoso,DC=Com"); designer.AddCorellatedData(typeof(ADObject)); }
public void Design(IActivityDesigner designer) { designer.AddInput("Input String"); designer.AddInput("Line"); designer.AddOutput("Output Line").AsString(); }
public void Design(IActivityDesigner designer) { designer.AddInput("Filter").WithDefaultValue("AdvertisementID LIKE '%'"); designer.AddCorellatedData(typeof(advertisement)); designer.AddOutput("Number of Advertisements"); }
public void Design(IActivityDesigner designer) { designer.AddInput("Assignment Name").WithDefaultValue("Assignment NAME"); designer.AddInput("Apply To Sub Targets").WithDefaultValue(true).WithBooleanBrowser(); designer.AddInput("Assigned CIs (CSV)").WithDefaultValue("1,2,3"); designer.AddInput("Assignment Description").WithDefaultValue("Description"); designer.AddInput("Assignment Action").WithDefaultValue(2); designer.AddInput("Desired Config Type").WithDefaultValue(1).WithListBrowser(new int[] { 0, 1 }); designer.AddInput("DP Locality").WithDefaultValue(80); designer.AddInput("Locale ID").WithDefaultValue(1033); designer.AddInput("Log Compliace To Windows Event Log").WithDefaultValue(false).WithBooleanBrowser(); designer.AddInput("Notify User").WithDefaultValue(false).WithBooleanBrowser(); designer.AddInput("Raise MOM Alert of Failure").WithDefaultValue(false).WithBooleanBrowser(); designer.AddInput("Read Only").WithDefaultValue(false).WithBooleanBrowser(); designer.AddInput("Send Detailed Non Compliance Status").WithDefaultValue(false).WithBooleanBrowser(); designer.AddInput("Start Time").WithDefaultValue("5/5/2005 5:05PM"); designer.AddInput("Suppress Reboot").WithDefaultValue(1).WithListBrowser(new int[] { 0, 1 }); designer.AddInput("Target Collection ID").WithDefaultValue("AAA00000"); designer.AddInput("Use GMT Times").WithDefaultValue(true).WithBooleanBrowser(); designer.AddCorellatedData(typeof(updatesAssignment)); designer.AddOutput("Number of Updates Assignments"); }
public void Design(IActivityDesigner designer) { designer.AddInput("Filter").WithDefaultValue("PackageID LIKE '%'"); designer.AddCorellatedData(typeof(bootImagePackage)); designer.AddOutput("Number of Packages"); }
public void Design(IActivityDesigner designer) { designer.AddInput("Filter").WithDefaultValue("CI_ID LIKE '%'"); designer.AddCorellatedData(typeof(authorizationList)); designer.AddOutput("Number of Authorization Lists"); }