Resolved #188: Test-PasswordQuality AmbiguousParameterSet error

This commit is contained in:
Michael Grafnetter 2025-01-02 21:26:59 +01:00
parent 3d9e015eb0
commit bd5334e0c9
14 changed files with 31 additions and 26 deletions

View File

@ -5,6 +5,14 @@
All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
## [4.15.1] - 2025-01-02
This is a PowerShell-only bugfix release.
### Fixed
- Resolved the `AmbiguousParameterSet` error returned by the [Test-PasswordQuality](PowerShell/Test-PasswordQuality.md#test-passwordquality) cmdlet.
## [4.15] - 2024-12-23
This is a PowerShell-only release.
@ -532,7 +540,8 @@ This is a [Chocolatey](https://chocolatey.org/packages/dsinternals-psmodule)-onl
## 1.0 - 2015-01-20
Initial release!
[Unreleased]: https://github.com/MichaelGrafnetter/DSInternals/compare/v4.15...HEAD
[Unreleased]: https://github.com/MichaelGrafnetter/DSInternals/compare/v4.15.1...HEAD
[4.15.1]: https://github.com/MichaelGrafnetter/DSInternals/compare/v4.15...v4.15.1
[4.15]: https://github.com/MichaelGrafnetter/DSInternals/compare/v4.14...v4.15
[4.14]: https://github.com/MichaelGrafnetter/DSInternals/compare/v4.13...v4.14
[4.13]: https://github.com/MichaelGrafnetter/DSInternals/compare/v4.12...v4.13

View File

@ -1,6 +1,6 @@
The MIT License (MIT)
Copyright (c) 2015-2024 Michael Grafnetter
Copyright (c) 2015-2025 Michael Grafnetter
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal

View File

@ -1,4 +1,4 @@
using System.Reflection;
[assembly: AssemblyProduct("DSInternals PowerShell Module")]
[assembly: AssemblyCopyright("Copyright © 2015-2024 Michael Grafnetter. All rights reserved.")]
[assembly: AssemblyCopyright("Copyright © 2015-2025 Michael Grafnetter. All rights reserved.")]

View File

@ -1,4 +1,4 @@
using namespace System::Reflection;
[assembly:AssemblyProductAttribute(L"DSInternals PowerShell Module")];
[assembly:AssemblyCopyrightAttribute(L"Copyright © 2015-2024 Michael Grafnetter. All rights reserved.")];
[assembly:AssemblyCopyrightAttribute(L"Copyright <EFBFBD> 2015-2025 Michael Grafnetter. All rights reserved.")];

View File

@ -16,7 +16,7 @@
<releaseNotes>
- Minor credential roaming parser improvement.
</releaseNotes>
<copyright>Copyright (c) 2015-2024 Michael Grafnetter. All rights reserved.</copyright>
<copyright>Copyright (c) 2015-2025 Michael Grafnetter. All rights reserved.</copyright>
<tags>ActiveDirectory Security AD AAD Identity Active Directory</tags>
</metadata>
<files>

View File

@ -16,7 +16,7 @@
<releaseNotes>
- Minor credential roaming parser improvement.
</releaseNotes>
<copyright>Copyright (c) 2015-2024 Michael Grafnetter. All rights reserved.</copyright>
<copyright>Copyright (c) 2015-2025 Michael Grafnetter. All rights reserved.</copyright>
<tags>ActiveDirectory Security NTDS AD Identity Active Directory</tags>
<references>
<reference file="DSInternals.DataStore.dll" />

View File

@ -3,14 +3,14 @@
<package xmlns="http://schemas.microsoft.com/packaging/2015/06/nuspec.xsd">
<metadata>
<id>DSInternals-PSModule</id>
<version>4.15</version>
<version>4.15.1</version>
<packageSourceUrl>https://github.com/MichaelGrafnetter/DSInternals/tree/master/Src/DSInternals.PowerShell/Chocolatey</packageSourceUrl>
<owners>MichaelGrafnetter</owners>
<title>DSInternals PowerShell Module</title>
<authors>Michael Grafnetter</authors>
<projectUrl>https://github.com/MichaelGrafnetter/DSInternals</projectUrl>
<iconUrl>https://raw.githubusercontent.com/MichaelGrafnetter/DSInternals/master/Src/Icons/module_black.png</iconUrl>
<copyright>(c) 2015-2024 Michael Grafnetter. All rights reserved.</copyright>
<copyright>(c) 2015-2025 Michael Grafnetter. All rights reserved.</copyright>
<licenseUrl>https://github.com/MichaelGrafnetter/DSInternals/blob/master/Src/DSInternals.PowerShell/License.txt</licenseUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<projectSourceUrl>https://github.com/MichaelGrafnetter/DSInternals/tree/master/Src</projectSourceUrl>
@ -37,9 +37,7 @@ The DSInternals PowerShell Module has these main features:
## Disclaimer
Features exposed through these tools are not supported by Microsoft. Improper use might cause irreversible damage to domain controllers or negatively impact domain security.</description>
<releaseNotes>
* Implemented support for individual *.txt files from HIBP in the Test-PasswordQuality cmdlet.
* The New-ADDBRestoreFromMediaScript cmdlet now generates a more robust DC recovery script.
* The Add-ADDBSidHistory cmdlet has been removed to prevent it from being used in migration scenarios.
* The Test-PasswordQuality cmdlet should no longer return the AmbiguousParameterSet error.
</releaseNotes>
<dependencies>
<!-- Windows Management Framework 3+. For OS prior to Windows 8 and Windows Server 2012. -->

View File

@ -10,7 +10,7 @@
using System.Management.Automation;
using System.Text;
[Cmdlet(VerbsDiagnostic.Test, "PasswordQuality")]
[Cmdlet(VerbsDiagnostic.Test, "PasswordQuality", DefaultParameterSetName = ParamSetSingleSortedFile)]
[OutputType(new Type[] { typeof(PasswordQualityTestResult) })]
public class TestPasswordQualityCommand : PSCmdletEx, IDisposable
{

View File

@ -8,7 +8,7 @@
RootModule = 'DSInternals.Bootstrap.psm1'
# Version number of this module.
ModuleVersion = '4.15'
ModuleVersion = '4.15.1'
# Supported PSEditions
# CompatiblePSEditions = 'Desktop'
@ -23,7 +23,7 @@ Author = 'Michael Grafnetter'
CompanyName = 'DSInternals'
# Copyright statement for this module
Copyright = '(c) 2015-2024 Michael Grafnetter. All rights reserved.'
Copyright = '(c) 2015-2025 Michael Grafnetter. All rights reserved.'
# Description of the functionality provided by this module
Description = @"
@ -143,9 +143,7 @@ PrivateData = @{
# ReleaseNotes of this module
ReleaseNotes = @"
- Implemented support for individual *.txt files from HIBP in the Test-PasswordQuality cmdlet.
- The New-ADDBRestoreFromMediaScript cmdlet now generates a more robust DC recovery script.
- The Add-ADDBSidHistory cmdlet has been removed to prevent it from being used in migration scenarios.
- The Test-PasswordQuality cmdlet should no longer return the AmbiguousParameterSet error.
"@
} # End of PSData hashtable

View File

@ -8,7 +8,7 @@ DSInternals PowerShell Module and Framework
The MIT License (MIT)
Copyright (c) 2015-2024 Michael Grafnetter
Copyright (c) 2015-2025 Michael Grafnetter
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal

View File

@ -5,8 +5,8 @@ using System.Runtime.InteropServices;
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("DSInternals PowerShell Commands")]
[assembly: AssemblyVersion("4.15")]
[assembly: AssemblyFileVersion("4.15")]
[assembly: AssemblyVersion("4.15.1")]
[assembly: AssemblyFileVersion("4.15.1")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]

View File

@ -14,17 +14,17 @@ LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
// TEXTINCLUDE
//
1 TEXTINCLUDE
1 TEXTINCLUDE
BEGIN
"resource.h\0"
END
2 TEXTINCLUDE
2 TEXTINCLUDE
BEGIN
"\0"
END
3 TEXTINCLUDE
3 TEXTINCLUDE
BEGIN
"\r\n"
"\0"
@ -59,7 +59,7 @@ BEGIN
VALUE "FileDescription", "DSInternals Replication Interop Library"
VALUE "FileVersion", "4.14.0.0"
VALUE "InternalName", "DSInternals.Replication.Interop"
VALUE "LegalCopyright", "Copyright © 2015-2024 Michael Grafnetter"
VALUE "LegalCopyright", "Copyright <EFBFBD> 2015-2025 Michael Grafnetter"
VALUE "OriginalFilename", "DSInternals.Replication.Interop.dll"
VALUE "ProductName", "DSInternals PowerShell Module"
VALUE "ProductVersion", "4.14.0.0"

View File

@ -16,7 +16,7 @@
<releaseNotes>
- Minor credential roaming parser improvement.
</releaseNotes>
<copyright>Copyright (c) 2015-2024 Michael Grafnetter. All rights reserved.</copyright>
<copyright>Copyright (c) 2015-2025 Michael Grafnetter. All rights reserved.</copyright>
<tags>ActiveDirectory Security RPC DRSR</tags>
<references>
<reference file="DSInternals.Replication.dll" />

View File

@ -16,7 +16,7 @@
<releaseNotes>
- Updated dependency version.
</releaseNotes>
<copyright>Copyright (c) 2015-2024 Michael Grafnetter. All rights reserved.</copyright>
<copyright>Copyright (c) 2015-2025 Michael Grafnetter. All rights reserved.</copyright>
<tags>ActiveDirectory Security RPC SAMR LSARPC AD Identity Active Directory</tags>
<references>
<reference file="DSInternals.SAM.dll" />