Skip to content

Commit

Permalink
Merge pull request #40 from exchange12rocks/v.0.3.3
Browse files Browse the repository at this point in the history
Release v.0.3.3
  • Loading branch information
exchange12rocks authored Jul 31, 2022
2 parents 64bbabc + c80317d commit ec033e9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/Common/CSE/Get-GPOCSE.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ function Get-GPOCSE {
$GPO = Get-GPOObject -Id $Id
$AttributeString = $GPO.gPCMachineExtensionNames[0]

$ListsRegExFilter = '\[\{00000000-0000-0000-0000-000000000000\}(?<Tools>(?:\{[0-9A-f]{8}-[0-9A-f]{4}-[0-9A-f]{4}-[0-9A-f]{4}-[0-9A-f]{12}\})*)\](?<CseSets>(?:\[(?:\{[0-9A-f]{8}-[0-9A-f]{4}-[0-9A-f]{4}-[0-9A-f]{4}-[0-9A-f]{12}\})(?:\{[0-9A-f]{8}-[0-9A-f]{4}-[0-9A-f]{4}-[0-9A-f]{4}-[0-9A-f]{12}\})*\])*)'
$ListsRegExFilter = '(\[\{00000000-0000-0000-0000-000000000000\}(?<Tools>(?:\{[0-9A-f]{8}-[0-9A-f]{4}-[0-9A-f]{4}-[0-9A-f]{4}-[0-9A-f]{12}\})*)\])*(?<CseSets>(?:\[(?:\{[0-9A-f]{8}-[0-9A-f]{4}-[0-9A-f]{4}-[0-9A-f]{4}-[0-9A-f]{12}\})(?:\{[0-9A-f]{8}-[0-9A-f]{4}-[0-9A-f]{4}-[0-9A-f]{4}-[0-9A-f]{12}\})*\])*)'
$ListsRegEx = [regex]::new($ListsRegExFilter)
$ListMatches = $ListsRegEx.Matches($AttributeString)

Expand Down
6 changes: 3 additions & 3 deletions src/Definitions/CSEClasses.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class GPOExtensionNamesAttribute {

$sb = [System.Text.StringBuilder]::new()
foreach ($Tool in $SortedTools) {
[void]$sb.Append($Tool.ToString('B'))
[void]$sb.Append($Tool.ToString('B').ToUpper())
}
$SortedToolsString = $sb.ToString()

Expand All @@ -47,11 +47,11 @@ class GPOExtensionNamesAttribute {
$sb = [System.Text.StringBuilder]::new()
foreach ($CSE in $SortedCSE) {
$CurrentCSESet = $this.Members | Where-Object -FilterScript { $_.CSE -eq $CSE }
$CurrentCSEString = $CSE.ToString('B')
$CurrentCSEString = $CSE.ToString('B').ToUpper()
$SortedCSETools = $CurrentCSESet.Tool | Sort-Object
$sb2 = [System.Text.StringBuilder]::new()
foreach ($Tool in $SortedCSETools) {
[void]$sb2.Append($Tool.ToString('B'))
[void]$sb2.Append($Tool.ToString('B').ToUpper())
}
$SortedCSEToolsString = $sb2.ToString()
[void]$sb.Append(('[{0}{1}]' -f $CurrentCSEString, $SortedCSEToolsString))
Expand Down
2 changes: 1 addition & 1 deletion src/PSGPPreferences.psd1
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@{
RootModule = 'PSGPPreferences.psm1'
ModuleVersion = '0.3.2'
ModuleVersion = '0.3.3'
GUID = '840171e9-2b12-448d-9fe3-9365af87081e'
Author = 'Kirill Nikolaev'
PowerShellVersion = '5.1'
Expand Down

0 comments on commit ec033e9

Please sign in to comment.