Skip to content

Commit 702f8e5

Browse files
Merge pull request #11 from PSSecTools/development
1.3.19
2 parents 478b5b3 + e282f67 commit 702f8e5

File tree

7 files changed

+22
-9
lines changed

7 files changed

+22
-9
lines changed

JEAnalyzer/JEAnalyzer.psd1

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
# Version number of this module.
66

7-
ModuleVersion = '1.3.17'
7+
ModuleVersion = '1.3.19'
88

99
# ID used to uniquely identify this module
1010
GUID = '346caa76-534a-4651-88f5-359e85cd71c0'
@@ -27,7 +27,7 @@
2727
# Modules that must be imported into the global environment prior to importing
2828
# this module
2929
RequiredModules = @(
30-
@{ ModuleName = 'PSFramework'; ModuleVersion = '1.8.289' }
30+
@{ ModuleName = 'PSFramework'; ModuleVersion = '1.12.346' }
3131
)
3232

3333
# Assemblies that must be loaded prior to importing this module
@@ -80,13 +80,13 @@
8080
PSData = @{
8181

8282
# Tags applied to this module. These help with module discovery in online galleries.
83-
# Tags = @()
83+
Tags = @('jea')
8484

8585
# A URL to the license for this module.
86-
# LicenseUri = ''
86+
LicenseUri = 'https://github.com/PSSecTools/JEAnalyzer/blob/master/LICENSE'
8787

8888
# A URL to the main website for this project.
89-
# ProjectUri = ''
89+
ProjectUri = 'https://github.com/PSSecTools/JEAnalyzer'
9090

9191
# A URL to an icon representing this module.
9292
# IconUri = ''

JEAnalyzer/changelog.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Changelog
22

3+
## 1.3.19 (2025-05-07)
4+
5+
- Upd: New-JeaModule - better service account validation and processing
6+
- Fix: Install-JeaModule - unexpected error when failing to connect to remote computer
7+
38
## 1.3.17 (2023-06-18)
49

510
- New: Get-JeaEndpoint - Retrieve JEA Endpoints and their capabilities from target computers.

JEAnalyzer/en-us/strings.psd1

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@
1515
'Export-JeaModule.Role.VisibleCmdlet' = '[Role: {0}] Adding visible Cmdlet: {1}{2}' # $role.Name, $commandName, $parameterText
1616
'Export-JeaModule.Role.VisibleFunction' = '[Role: {0}] Adding visible Function: {1}{2}' # $role.Name, $commandName, $parameterText
1717

18-
'FileSystem.Directory.Fail' = 'Not a directory: {0}' # <user input>, <validation item>
18+
'Validate.FileSystem.Directory.Fail' = 'Not a directory: {0}' # <user input>, <validation item>
19+
'Validate.ServiceAccount' = 'Invalid account name: Must be a valid NTAccount name notation (<domain netbios name>\samaccountname)' # <user input>, <validation item>
1920

2021
'General.BoundParameters' = 'Bound parameters: {0}' # ($PSBoundParameters.Keys -join ", ")
2122

JEAnalyzer/functions/construct/New-JeaModule.ps1

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@
8181
[string]
8282
$Identity,
8383

84+
[PsfValidateScript('JEAnalyzer.Validate.ServiceAccount', ErrorString = 'JEAnalyzer.Validate.ServiceAccount')]
8485
[string]
8586
$ServiceAccount,
8687

@@ -120,7 +121,7 @@
120121
Company = $Company
121122
}
122123
if ($Identity) { $module.Roles[$Name] = New-JeaRole -Name $Name -Identity $Identity }
123-
if ($ServiceAccount) { $module.ServiceAccount = $ServiceAccount }
124+
if ($ServiceAccount) { $module.ServiceAccount = $ServiceAccount -replace '\$$' }
124125
if ($RequiredModules) { $module.RequiredModules = $RequiredModules }
125126
if ($ModulesToImport) { $module.ModulesToImport = $ModulesToImport }
126127
foreach ($scriptFile in $PreImport) { $module.PreimportScripts[$scriptFile.Name] = $scriptFile }

JEAnalyzer/functions/deploy/Install-JeaModule.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@
7878
if ($failedServers)
7979
{
8080
if ($EnableException) { Stop-PSFFunction -String 'Install-JeaModule.Connections.Failed' -StringValues ($failedServers.TargetObject -join ", ") -Target $failedServers.TargetObject -EnableException $EnableException }
81-
foreach ($failure in $failedServers) { Write-PSFMessage -Level Warning -String 'Install-JeaModule.Connections.Failed' -StringValues $failure.TargetObject -ErrorRecord $_ -Target $failure.TargetObject }
81+
foreach ($failure in $failedServers) { Write-PSFMessage -Level Warning -String 'Install-JeaModule.Connections.Failed' -StringValues $failure.TargetObject -ErrorRecord $failure -Target $failure.TargetObject }
8282
}
8383
if (-not $sessions)
8484
{
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Set-PSFScriptblock -Name 'JEAnalyzer.Validate.ServiceAccount' -Scriptblock {
2+
$_ -match '^[^\\]+\\[^\\]+$'
3+
} -Global

JEAnalyzer/tests/general/strings.Exceptions.ps1

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ $exceptions['LegalSurplus'] = @(
1313
)
1414
#>
1515
$exceptions['LegalSurplus'] = @(
16-
16+
'Validate.FileSystem.Directory.Fail'
1717
)
1818

1919
$exceptions['NoTextNeeded'] = @(
@@ -28,6 +28,9 @@ $exceptions['NoTextNeeded'] = @(
2828
'Validate.Uri.Absolute'
2929
'Validate.Uri.Absolute.File'
3030
'Validate.Uri.Absolute.Https'
31+
32+
'FileSystem.Directory.Fail'
33+
'Validate.FileSystem.Directory.Fail'
3134
)
3235

3336
$exceptions

0 commit comments

Comments
 (0)