Skip to content

Commit 88633d9

Browse files
authored
Merge pull request #25 from automateps/dev
Version 5.0.0
2 parents bd4f6f1 + e9743af commit 88633d9

File tree

300 files changed

+1441
-1498
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

300 files changed

+1441
-1498
lines changed

AutoMatePS.Format.ps1xml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1034,7 +1034,11 @@
10341034
</TableColumnItem>
10351035
<TableColumnItem>
10361036
<ScriptBlock>
1037-
$_.MatchedProperty.Result
1037+
$output = @()
1038+
foreach ($key in $_.MatchedProperty.Keys) {
1039+
$output += "$key = $($_.MatchedProperty[$key])"
1040+
}
1041+
$output -join ", "
10381042
</ScriptBlock>
10391043
</TableColumnItem>
10401044
<TableColumnItem>

AutoMatePS.psd1

Lines changed: 24 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#
44
# Generated by: AutomatePS
55
#
6-
# Generated on: 7/18/2019
6+
# Generated on: 7/9/2020
77
#
88

99
@{
@@ -12,7 +12,7 @@
1212
RootModule = 'AutomatePS.psm1'
1313

1414
# Version number of this module.
15-
ModuleVersion = '4.1.1'
15+
ModuleVersion = '5.0.0'
1616

1717
# Supported PSEditions
1818
# CompatiblePSEditions = @()
@@ -30,7 +30,7 @@ CompanyName = 'Unknown'
3030
Copyright = '(c) AutomatePS. All rights reserved.'
3131

3232
# Description of the functionality provided by this module
33-
Description = 'AutomatePS provides PowerShell integration with HelpSystems AutoMate Enterprise'
33+
Description = 'AutomatePS provides PowerShell integration with HelpSystems Automate Enterprise'
3434

3535
# Minimum version of the PowerShell engine required by this module
3636
PowerShellVersion = '5.0'
@@ -45,7 +45,7 @@ PowerShellVersion = '5.0'
4545
# DotNetFrameworkVersion = ''
4646

4747
# Minimum version of the common language runtime (CLR) required by this module. This prerequisite is valid for the PowerShell Desktop edition only.
48-
# CLRVersion = ''
48+
# ClrVersion = ''
4949

5050
# Processor architecture (None, X86, Amd64) required by this module
5151
# ProcessorArchitecture = ''
@@ -57,7 +57,8 @@ PowerShellVersion = '5.0'
5757
# RequiredAssemblies = @()
5858

5959
# Script files (.ps1) that are run in the caller's environment prior to importing this module.
60-
ScriptsToProcess = 'Types\custom.ps1', 'Types\enums.ps1', 'Types\v10.ps1', 'Types\v11.ps1'
60+
ScriptsToProcess = 'Types\AutomatePS.classes.ps1', 'Types\Automate.enums.ps1',
61+
'Types\Automate.classes.v10.ps1', 'Types\Automate.classes.v11.ps1'
6162

6263
# Type files (.ps1xml) to be loaded when importing this module
6364
# TypesToProcess = @()
@@ -75,13 +76,14 @@ FunctionsToExport = 'Add-AMAgentGroupMember', 'Add-AMConstant',
7576
'Add-AMUserGroupMember', 'Add-AMWindowConditionControl',
7677
'Add-AMWorkflowItem', 'Add-AMWorkflowLink', 'Add-AMWorkflowVariable',
7778
'Compare-AMCondition', 'Compare-AMProcess', 'Compare-AMTask',
78-
'Compare-AMWorkflow', 'Connect-AMServer', 'Copy-AMCondition',
79-
'Copy-AMProcess', 'Copy-AMTask', 'Copy-AMWorkflow', 'Disable-AMObject',
80-
'Disconnect-AMServer', 'Enable-AMObject', 'Find-AMObject',
81-
'Get-AMAgent', 'Get-AMAgentGroup', 'Get-AMAuditEvent', 'Get-AMCalendar',
82-
'Get-AMCondition', 'Get-AMConnection', 'Get-AMConnectionStoreItem',
83-
'Get-AMConsoleOutput', 'Get-AMExecutionEvent', 'Get-AMFolder',
84-
'Get-AMFolderRoot', 'Get-AMInstance', 'Get-AMMetric', 'Get-AMObject',
79+
'Compare-AMWorkflow', 'Connect-AMServer', 'ConvertTo-AMJson',
80+
'Copy-AMCondition', 'Copy-AMProcess', 'Copy-AMTask', 'Copy-AMWorkflow',
81+
'Disable-AMObject', 'Disconnect-AMServer', 'Enable-AMObject',
82+
'Find-AMObject', 'Get-AMAgent', 'Get-AMAgentGroup', 'Get-AMAuditEvent',
83+
'Get-AMCalendar', 'Get-AMCondition', 'Get-AMConnection',
84+
'Get-AMConnectionStoreItem', 'Get-AMConsoleOutput',
85+
'Get-AMExecutionEvent', 'Get-AMFolder', 'Get-AMFolderRoot',
86+
'Get-AMInstance', 'Get-AMMetric', 'Get-AMObject',
8587
'Get-AMObjectProperty', 'Get-AMPermission', 'Get-AMProcess',
8688
'Get-AMRepositoryMap', 'Get-AMRepositoryMapDetail', 'Get-AMServer',
8789
'Get-AMSession', 'Get-AMSystemAgent', 'Get-AMSystemPermission',
@@ -127,7 +129,7 @@ FunctionsToExport = 'Add-AMAgentGroupMember', 'Add-AMConstant',
127129
'Wait-AMInstance'
128130

129131
# Cmdlets to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no cmdlets to export.
130-
CmdletsToExport = '*'
132+
CmdletsToExport = @()
131133

132134
# Variables to export from this module
133135
VariablesToExport = '*'
@@ -180,6 +182,15 @@ PrivateData = @{
180182
# ReleaseNotes of this module
181183
# ReleaseNotes = ''
182184

185+
# Prerelease string of this module
186+
# Prerelease = ''
187+
188+
# Flag to indicate whether the module requires explicit user acceptance for install/update/save
189+
# RequireLicenseAcceptance = $false
190+
191+
# External dependent modules of this module
192+
# ExternalModuleDependencies = @()
193+
183194
} # End of PSData hashtable
184195

185196
} # End of PrivateData hashtable

AutoMatePS.psm1

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,4 @@ Get-ChildItem -Path "$PSScriptRoot\Functions\Private\*.ps1" | ForEach-Object {
99
}
1010

1111
Set-Variable -Name AMScheduleDateFormat -Value "MM/dd/yyyy HH:mm:ss" -Scope Global
12-
Set-Variable -Name AMGuidRegex -Value "^(\{{0,1}([0-9a-fA-F]){8}-([0-9a-fA-F]){4}-([0-9a-fA-F]){4}-([0-9a-fA-F]){4}-([0-9a-fA-F]){12}\}{0,1})$" -Scope Global
13-
14-
if ($global:PSVersionTable.PSVersion.Major -gt 5) {
15-
Write-Warning "AutomatePS is not fully compatible with PowerShell Core (v6 and greater) due to a JSON conversion issue (see https://github.com/PowerShell/PowerShell/issues/9610 for specifics). 'Get' functions will work. However, most functions that modify objects will not work, or may produce unexpected results. Use at your own risk."
16-
}
12+
Set-Variable -Name AMGuidRegex -Value "^(\{{0,1}([0-9a-fA-F]){8}-([0-9a-fA-F]){4}-([0-9a-fA-F]){4}-([0-9a-fA-F]){4}-([0-9a-fA-F]){12}\}{0,1})$" -Scope Global

Docs/Add-AMAgentGroupMember.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ schema: 2.0.0
88
# Add-AMAgentGroupMember
99

1010
## SYNOPSIS
11-
Adds agents to an AutoMate Enterprise agent group.
11+
Adds agents to an Automate agent group.
1212

1313
## SYNTAX
1414

@@ -68,7 +68,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
6868
6969
## INPUTS
7070
71-
### The following AutoMate object types can be modified by this function:
71+
### The following Automate object types can be modified by this function:
7272
### AgentGroup
7373
## OUTPUTS
7474

Docs/Add-AMConstant.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ schema: 2.0.0
88
# Add-AMConstant
99

1010
## SYNOPSIS
11-
Adds constants to an AutoMate Enterprise agent property.
11+
Adds constants to an Automate agent property.
1212

1313
## SYNTAX
1414

@@ -94,7 +94,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
9494
9595
## INPUTS
9696
97-
### The following AutoMate object types can be modified by this function:
97+
### The following Automate object types can be modified by this function:
9898
### AgentProperty
9999
## OUTPUTS
100100

Docs/Add-AMEmailConditionFilter.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ schema: 2.0.0
88
# Add-AMEmailConditionFilter
99

1010
## SYNOPSIS
11-
Adds a filter to an AutoMate Enterprise Email condition.
11+
Adds a filter to an Automate Email condition.
1212

1313
## SYNTAX
1414

@@ -18,7 +18,7 @@ Add-AMEmailConditionFilter [-InputObject] <Object> [-FieldName] <String> [-Opera
1818
```
1919

2020
## DESCRIPTION
21-
Add-AMEmailConditionFilter adds a filter to an AutoMate Enterprise Email condition.
21+
Add-AMEmailConditionFilter adds a filter to an Automate Email condition.
2222

2323
## EXAMPLES
2424

@@ -96,7 +96,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
9696
9797
## INPUTS
9898
99-
### The following AutoMate object types can be modified by this function:
99+
### The following Automate object types can be modified by this function:
100100
### Condition
101101
## OUTPUTS
102102

Docs/Add-AMScheduleConditionCustomDate.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ schema: 2.0.0
88
# Add-AMScheduleConditionCustomDate
99

1010
## SYNOPSIS
11-
Adds a custom date to an AutoMate Enterprise schedule condition using the Custom interval.
11+
Adds a custom date to an Automate schedule condition using the Custom interval.
1212

1313
## SYNTAX
1414

@@ -17,16 +17,15 @@ Add-AMScheduleConditionCustomDate -InputObject <Object> [-CustomLaunchDates] <Da
1717
```
1818

1919
## DESCRIPTION
20-
Add-AMScheduleConditionCustomDate adds a custom date to an AutoMate Enterprise schedule condition using the Custom interval.
20+
Add-AMScheduleConditionCustomDate adds a custom date to an Automate schedule condition using the Custom interval.
2121

2222
## EXAMPLES
2323

2424
### EXAMPLE 1
2525
```
2626
# Add a custom run time of 1 hour from now to schedule "On Specified Dates"
27-
```
28-
2927
Get-AMCondition "On Specified Dates" | Add-AMScheduleConditionCustomDate -CustomLaunchDates (Get-Date).AddHours(1)
28+
```
3029

3130
## PARAMETERS
3231

@@ -65,7 +64,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
6564
6665
## INPUTS
6766
68-
### The following AutoMate object types can be modified by this function:
67+
### The following Automate object types can be modified by this function:
6968
### Condition
7069
## OUTPUTS
7170

Docs/Add-AMScheduleConditionHoliday.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ schema: 2.0.0
88
# Add-AMScheduleConditionHoliday
99

1010
## SYNOPSIS
11-
Adds a holiday to an AutoMate Enterprise schedule condition using the Holidays interval.
11+
Adds a holiday to an Automate schedule condition using the Holidays interval.
1212

1313
## SYNTAX
1414

@@ -17,16 +17,15 @@ Add-AMScheduleConditionHoliday -InputObject <Object> [-Holiday] <String[]> [<Com
1717
```
1818

1919
## DESCRIPTION
20-
Add-AMScheduleConditionHoliday adds a holiday to an AutoMate Enterprise schedule condition using the Holidays interval.
20+
Add-AMScheduleConditionHoliday adds a holiday to an Automate schedule condition using the Holidays interval.
2121

2222
## EXAMPLES
2323

2424
### EXAMPLE 1
2525
```
2626
# Add a holiday category to schedule "On Specified Dates"
27-
```
28-
2927
Get-AMCondition "On Specified Dates" | Add-AMScheduleConditionHoliday -Holiday "United States"
28+
```
3029

3130
## PARAMETERS
3231

@@ -65,7 +64,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
6564
6665
## INPUTS
6766
68-
### The following AutoMate object types can be modified by this function:
67+
### The following Automate object types can be modified by this function:
6968
### Condition
7069
## OUTPUTS
7170

Docs/Add-AMSnmpConditionCredential.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ schema: 2.0.0
88
# Add-AMSnmpConditionCredential
99

1010
## SYNOPSIS
11-
Adds a credential to an AutoMate Enterprise SNMP condition.
11+
Adds a credential to an Automate SNMP condition.
1212

1313
## SYNTAX
1414

@@ -18,7 +18,7 @@ Add-AMSnmpConditionCredential [-InputObject] <Object> [[-User] <Object>]
1818
```
1919

2020
## DESCRIPTION
21-
Add-AMSnmpConditionCredential adds a credential to an AutoMate Enterprise SNMP condition.
21+
Add-AMSnmpConditionCredential adds a credential to an Automate SNMP condition.
2222

2323
## EXAMPLES
2424

@@ -80,7 +80,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
8080
8181
## INPUTS
8282
83-
### The following AutoMate object types can be modified by this function:
83+
### The following Automate object types can be modified by this function:
8484
### Condition
8585
## OUTPUTS
8686

Docs/Add-AMUserGroupMember.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ schema: 2.0.0
88
# Add-AMUserGroupMember
99

1010
## SYNOPSIS
11-
Adds users to an AutoMate Enterprise user group.
11+
Adds users to an Automate user group.
1212

1313
## SYNTAX
1414

@@ -24,16 +24,14 @@ Add-AMUserGroupMember can add users to a user group.
2424
### EXAMPLE 1
2525
```
2626
# Add all users to a user group
27-
```
28-
2927
Get-AMUserGroup "All Users" | Add-AMUserGroupMember -User *
28+
```
3029

3130
### EXAMPLE 2
3231
```
3332
# Add a user to a user group (using user object)
34-
```
35-
3633
Get-AMUserGroup | Add-AMUserGroupMember -User (Get-AMUser "John")
34+
```
3735

3836
## PARAMETERS
3937

@@ -72,7 +70,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
7270
7371
## INPUTS
7472
75-
### The following AutoMate object types can be modified by this function:
73+
### The following Automate object types can be modified by this function:
7674
### UserGroup
7775
## OUTPUTS
7876

0 commit comments

Comments
 (0)