Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable-DbaTraceflag is missing "-whatif" option. #9520

Closed
frodr1k opened this issue Oct 17, 2024 · 0 comments · Fixed by #9588
Closed

Enable-DbaTraceflag is missing "-whatif" option. #9520

frodr1k opened this issue Oct 17, 2024 · 0 comments · Fixed by #9588
Labels

Comments

@frodr1k
Copy link

frodr1k commented Oct 17, 2024

Verified issue does not already exist?

I have searched and found no existing issue

What error did you receive?

I noticed that Enable-DbaTraceFlag is missing the wonderfull "-whatif" option. Was it deemed not necsessary or is it missing?

Steps to Reproduce

Enable-DbaTraceFlag serverXXX -TraceFlag 12347 -whatif
Enable-DbaTraceFlag : A parameter cannot be found that matches parameter name 'whatif'.
At line:1 char:49

  • Enable-DbaTraceFlag serverXXX -TraceFlag 12347 -whatif
  •                                             ~~~~~~~
    
    • CategoryInfo : InvalidArgument: (:) [Enable-DbaTraceFlag], ParameterBindingException
    • FullyQualifiedErrorId : NamedParameterNotFound,Enable-DbaTraceFlag

Please confirm that you are running the most recent version of dbatools

2.1.24

Other details or mentions

N/A

What PowerShell host was used when producing this error

Windows PowerShell (powershell.exe)

PowerShell Host Version

Name Value


PSVersion 5.1.19041.5007
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.19041.5007
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1

SQL Server Edition and Build number

N/A

.NET Framework Version

N/A

@frodr1k frodr1k added bugs life triage required New issue that has not been reviewed by maintainers labels Oct 17, 2024
@niphlod niphlod changed the title Endable-DbaTraceflag is missing "-whatif" option. Enable-DbaTraceflag is missing "-whatif" option. Feb 17, 2025
@niphlod niphlod added feature and removed bugs life triage required New issue that has not been reviewed by maintainers labels Feb 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants