jborean93 / ansible-windows

Scripts that are useful for using Ansible with Windows - not affiliated with Ansible in any way
MIT License
211 stars 232 forks source link

Fix: Removing $verbose parameter from Install-WMF3Hotfix.ps1 #1

Closed agusherrera closed 6 years ago

agusherrera commented 6 years ago

Executing Install-WMF3Hotfix.ps1 script fails with the following error:

A parameter with the name 'Verbose' was defined multiple times for the command.

  • CategoryInfo : MetadataError: (:) [], ParentContainsErrorRecordException
  • FullyQualifiedErrorId : ParameterNameAlreadyExistsForCommand

I am no expert, but I guess defining $verbose parameter is redundant because of CmdletBinding() sentence. According to this link, CmdletBinding() in its simplest form already provides -Verbose parameter support.

jborean93 commented 6 years ago

Thanks for the pickup @tutinator.