Skip to content

Commit ebc05c7

Browse files
Merge pull request #2 from PSSecTools/development
Test fixes
2 parents d04cd7d + 9ae2d5e commit ebc05c7

File tree

8 files changed

+22
-16
lines changed

8 files changed

+22
-16
lines changed

JEAnalyzer/en-us/about_JEAnalyzer.help.txt

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,17 @@ SHORT DESCRIPTION
99
LONG DESCRIPTION
1010
# Last updated for version 1.1.0
1111

12-
#-----------------------------------------------------------------------#
13-
# Index #
14-
#-----------------------------------------------------------------------#
12+
#-----------------------------------------------------------------------#
13+
# Index #
14+
#-----------------------------------------------------------------------#
1515

1616
1) The JEA Module
1717
2) Roles & Capabilities
1818
3) Analytics
1919

20-
#-----------------------------------------------------------------------#
21-
# 1) The JEA Module #
22-
#-----------------------------------------------------------------------#
20+
#-----------------------------------------------------------------------#
21+
# 1) The JEA Module #
22+
#-----------------------------------------------------------------------#
2323

2424
A JEA Module is a group of JEA Resources. These Include:
2525
- Capabilities: Individual actions a connected user may be able to perform.
@@ -47,16 +47,16 @@ LONG DESCRIPTION
4747
$module | Export-JeaModule -Path '.'
4848

4949

50-
#-----------------------------------------------------------------------#
51-
# 2) Roles & Capabilities #
52-
#-----------------------------------------------------------------------#
50+
#-----------------------------------------------------------------------#
51+
# 2) Roles & Capabilities #
52+
#-----------------------------------------------------------------------#
5353

5454
# [TODO: Add Content]
5555

5656

57-
#-----------------------------------------------------------------------#
58-
# 3) Analytics #
59-
#-----------------------------------------------------------------------#
57+
#-----------------------------------------------------------------------#
58+
# 3) Analytics #
59+
#-----------------------------------------------------------------------#
6060

6161
# [TODO: Add Content]
6262

JEAnalyzer/functions/construct/Import-JeaScriptFile.ps1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@
4747
4848
Reads all scriptfiles in C:\JEA\Role1, converts them into functions, names them and adds them to the role stored in $role.
4949
#>
50+
[Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSAvoidUsingInvokeExpression', '')]
5051
[CmdletBinding()]
5152
param (
5253
[Parameter(Mandatory = $true, ValueFromPipeline = $true, ValueFromPipelineByPropertyName = $true)]

JEAnalyzer/functions/construct/New-JeaCommand.ps1

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,11 @@
3232
This is less user friendly, but allows catching exceptions in calling scripts.
3333
3434
.EXAMPLE
35-
PS C:\> New-JeaCommand -Name 'value1'
35+
PS C:\> New-JeaCommand -Name 'Restart-Service' -parameter 'Name'
36+
37+
Generates a command object allowing the use of Get-Service, but only with the parameter "-Name"
3638
#>
39+
[Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSUseShouldProcessForStateChangingFunctions', '')]
3740
[CmdletBinding()]
3841
param (
3942
[Parameter(Mandatory = $true)]

JEAnalyzer/functions/construct/New-JeaModule.ps1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
4343
Creates a JEA module object with the name JEA_ADUser.
4444
#>
45+
[Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSUseShouldProcessForStateChangingFunctions', '')]
4546
[CmdletBinding()]
4647
param (
4748
[Parameter(Mandatory = $true)]

JEAnalyzer/functions/construct/New-JeaRole.ps1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@
4848
It then creates a JEA Role named 'Logon', granting access to all AD Users to the commands selected.
4949
Finally, it adds the new role to the JEA Module object stored in $module.
5050
#>
51+
[Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSUseShouldProcessForStateChangingFunctions', '')]
5152
[CmdletBinding()]
5253
param (
5354
[Parameter(Mandatory = $true)]

JEAnalyzer/internal/scriptblock/validatePath.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Set-PSFScriptblock -Name 'JEAnalyzer.ValidatePath.Directory' -Scriptblock {
1+
Set-PSFScriptblock -Name 'JEAnalyzer.ValidatePath.Directory' -Scriptblock {
22
Param ($Path)
33
if (-not (Test-Path $Path)) { return $false }
44
try { $null = Resolve-PSFPath -Path $Path -Provider FileSystem -SingleItem }

JEAnalyzer/internal/scripts/strings.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Load English strings
1+
# Load English strings
22
Import-PSFLocalizedString -Path "$script:ModuleRoot\en-us\strings.psd1" -Module JEAnalyzer -Language en-US
33

44
# Obtain strings variable for in-script use

JEAnalyzer/xml/JEAnalyzer.Format.ps1xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
</TableColumnItem>
3232
<TableColumnItem>
3333
<ScriptBlock>
34-
$_.CommandObject.CommandType
34+
$_.CommandObject.CommandType
3535
</ScriptBlock>
3636
</TableColumnItem>
3737
</TableColumnItems>

0 commit comments

Comments
 (0)