diff --git a/src/System.Management.Automation/engine/Modules/NewModuleManifestCommand.cs b/src/System.Management.Automation/engine/Modules/NewModuleManifestCommand.cs index 47413af9b70..52062986cec 100644 --- a/src/System.Management.Automation/engine/Modules/NewModuleManifestCommand.cs +++ b/src/System.Management.Automation/engine/Modules/NewModuleManifestCommand.cs @@ -477,7 +477,7 @@ public object PrivateData /// Gets or sets whether or not the module requires explicit user acceptance for install/update/save. /// [Parameter] - public SwitchParameter RequireLicenseAcceptance { get; set; } = true; + public SwitchParameter RequireLicenseAcceptance { get; set; } /// /// Gets or sets the external module dependencies. diff --git a/test/powershell/engine/Module/NewModuleManifest.Tests.ps1 b/test/powershell/engine/Module/NewModuleManifest.Tests.ps1 index faacc9f3551..8b86ecb1479 100644 --- a/test/powershell/engine/Module/NewModuleManifest.Tests.ps1 +++ b/test/powershell/engine/Module/NewModuleManifest.Tests.ps1 @@ -24,6 +24,7 @@ Describe "New-ModuleManifest basic tests" -tags "CI" { $module.Name | Should -BeExactly "test" $module.ModuleType | Should -BeExactly "Manifest" $module.Version | Should -BeExactly "0.0.1" + $module.PrivateData.PSData.RequireLicenseAcceptance | Should -BeNullOrEmpty } It "Verify manifest fields 2" {