Skip to content

Every single command offered on the code blocks of that page throws an error on Windows Powershell #11296

@EverthingElseWasTaken

Description

@EverthingElseWasTaken

Type of issue

Code doesn't work

Feedback

`PS 07/24/2024 09:57:18C:\Users****\scripts> $PID | Debug-Process
Debug-Process : The input object cannot be bound to any parameters for the command either because the command does not take pipeline input or the input and its
properties do not match any of the parameters that take pipeline input.

[ADMIN]: PS 07/24/2024 09:56:52C:\Users****\scripts> $PID | Debug-Process
Debug-Process : The input object cannot be bound to any parameters for the command either because the command does not take pipeline input or the input and its
properties do not match any of the parameters that take pipeline input.
At line:1 char:8

  • $PID | Debug-Process
  •    ~~~~~~~~~~~~~
    
    • CategoryInfo : InvalidArgument: (26040:Int32) [Debug-Process], ParameterBindingException
    • FullyQualifiedErrorId : InputObjectNotBound,Microsoft.PowerShell.Commands.DebugProcessCommand

[ADMIN]: PS 07/24/2024 09:55:55C:\Users****\scripts> Get-Process "Windows Powershell"
Get-Process : Cannot find a process with the name "Windows Powershell". Verify the process name and call the cmdlet again.
At line:1 char:1

  • Get-Process "Windows Powershell"
  •   + CategoryInfo          : ObjectNotFound: (Windows Powershell:String) [Get-Process], ProcessCommandException
      + FullyQualifiedErrorId : NoProcessFoundForGivenName,Microsoft.PowerShell.Commands.GetProcessCommand
    

[ADMIN]: PS 07/24/2024 09:53:58C:\Users****\scripts> Debug-Process -Name "Windows Powershell"
Debug-Process : Cannot find a process with the name "Windows Powershell". Verify the process name and call the cmdlet again.
At line:1 char:1

  • Debug-Process -Name "Windows Powershell"
  •   + CategoryInfo          : ObjectNotFound: (Windows Powershell:String) [Debug-Process], ProcessCommandException
      + FullyQualifiedErrorId : NoProcessFoundForGivenName,Microsoft.PowerShell.Commands.DebugProcessCommand
    
    

and because why not
[ADMIN]: PS 07/24/2024 09:56:19C:\Users****\scripts> Get-Process "Microsoft Powershell"
Get-Process : Cannot find a process with the name "Microsoft Powershell". Verify the process name and call the cmdlet again.
At line:1 char:1

  • Get-Process "Microsoft Powershell"
  •   + CategoryInfo          : ObjectNotFound: (Microsoft Powershell:String) [Get-Process], ProcessCommandException
      + FullyQualifiedErrorId : NoProcessFoundForGivenName,Microsoft.PowerShell.Commands.GetProcessCommand
    
    

Page URL

https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.management/debug-process?view=powershell-5.1

Content source URL

https://github.com/MicrosoftDocs/PowerShell-Docs/blob/main/reference/5.1/Microsoft.PowerShell.Management/Debug-Process.md

Author

@sdwheeler

Document Id

c8e1c0e4-0aa4-753a-fd8f-371478ebf26e

Metadata

Metadata

Assignees

Labels

area-managementArea - Microsoft.PowerShell.Management module

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions