From 4f95563119eb135a634ad9764660a236e5d9803d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Przemys=C5=82aw=20K=C5=82ys?= Date: Fri, 22 May 2026 15:51:02 +0200 Subject: [PATCH] update --- Build/Build-Module.ps1 | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/Build/Build-Module.ps1 b/Build/Build-Module.ps1 index cea2959..b48f9a6 100644 --- a/Build/Build-Module.ps1 +++ b/Build/Build-Module.ps1 @@ -25,8 +25,8 @@ Build-Module -ModuleName 'GPOZaurr' { } New-ConfigurationManifest @Manifest - New-ConfigurationModule -Type RequiredModule -Name 'PSWriteColor', 'PSSharedGoods', 'ADEssentials' -Guid Auto -Version Latest - New-ConfigurationModule -Type RequiredModule -Name "PSWriteHTML" -Guid Auto -Version Latest + New-ConfigurationModule -Type RequiredModule -Name 'PSWriteColor', 'PSSharedGoods', 'ADEssentials' -Guid Auto -Version Latest -VersionSource PSGallery + New-ConfigurationModule -Type RequiredModule -Name "PSWriteHTML" -Guid Auto -Version Latest -VersionSource PSGallery #New-ConfigurationModule -Type ExternalModule -Name 'Microsoft.PowerShell.Utility', 'Microsoft.PowerShell.Management','Microsoft.PowerShell.Security' New-ConfigurationModule -Type ApprovedModule -Name 'PSSharedGoods', 'PSWriteColor', 'Connectimo', 'PSUnifi', 'PSWebToolbox', 'PSMyPassword', 'ADEssentials' New-ConfigurationModuleSkip -IgnoreModuleName @( @@ -39,6 +39,7 @@ Build-Module -ModuleName 'GPOZaurr' { 'NetConnection' 'NetSecurity' 'NetTCPIP' + 'CimCmdlets' ) -IgnoreFunctionName @( 'Select-Unique' ) @@ -210,8 +211,8 @@ Build-Module -ModuleName 'GPOZaurr' { New-ConfigurationArtefact -Type Packed -Enable -Path "$PSScriptRoot\..\Artefacts\Packed" -ArtefactName '.v.zip' -AddRequiredModules # options for publishing to github/psgallery - if (-not $SkipPublish) { - #New-ConfigurationPublish -Type PowerShellGallery -FilePath 'C:\Support\Important\PowerShellGalleryAPI.txt' -Enabled:$true - # New-ConfigurationPublish -Type GitHub -FilePath 'C:\Support\Important\GitHubAPI.txt' -UserName 'EvotecIT' -Enabled:$true -GenerateReleaseNotes - } + + #New-ConfigurationPublish -Type PowerShellGallery -FilePath 'C:\Support\Important\PowerShellGalleryAPI.txt' -Enabled:$true -UseAsDependencyVersionSource + #New-ConfigurationPublish -Type GitHub -FilePath 'C:\Support\Important\GitHubAPI.txt' -UserName 'EvotecIT' -Enabled:$true -GenerateReleaseNotes + } -ExitCode