Skip to content

Instantly share code, notes, and snippets.

@ddellacosta
Created January 26, 2018 17:35
Show Gist options
  • Save ddellacosta/6aa1a48dd5c702abac333d67af32b1fd to your computer and use it in GitHub Desktop.
Save ddellacosta/6aa1a48dd5c702abac333d67af32b1fd to your computer and use it in GitHub Desktop.
powershell newbie on Mac OS X
New-Object : A parameter cannot be found that matches parameter name 'COMObject'.
At /Users/ddellacosta/my-script.ps1:202 char:28
+ $shellApp = New-Object -COMObject "Shell.Application"
+ ~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (:) [New-Object], ParameterBindingException
+ FullyQualifiedErrorId : NamedParameterNotFound,Microsoft.PowerShell.Commands.NewObjectCommand
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment