PowerShell error: Invalid Command 'hook' invoke-expression: cannot Bind Argument to parameter 'Command'

tags: Wrong  powershell

PowerShell error: Invalid Command 'hook' invoke-expression: Cannot Bind Argument to Parameter 'Command' Because It is an es Empty string.

Every time you start PowerShell, there will always be this error, no report, but find an almost the same error on Stackoverflow (there is no answer, followed by STACKOVERFLOW):

Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.

Try the new cross-platform PowerShell https://aka.ms/pscore6

invalid command 'hook'
Invoke-Expression : Cannot bind argument to parameter 'Command' because it is an empty string.
At \\INTRANET\AMER\User\0001\X\My Documents\WindowsPowerShell\profile.ps1:4 char:95
+ ... onda.exe" "shell.powershell" "hook") | Out-String | Invoke-Expression
+                                                         ~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidData: (:PSObject) [Invoke-Expression], ParameterBindingValidationException
    + FullyQualifiedErrorId : ParameterArgumentValidationErrorEmptyStringNotAllowed,Microsoft.PowerShell.Commands.Invo
   keExpressionCommand

There is almost no answer on the Internet. Some people say that it may be an Anaconda version of the problem, so I tried the upgrade (entered in Anaconda Prompt Base):

conda upgrade -n base -c defaults --override-channels conda

image-20220125232503633

Open the PowerShell (version 5.1.22000.282):

image-20220125233052649

Attachment (see PowerShell version):

$PSVersionTable

image-20220125233204705

Intelligent Recommendation

Monitor PowerShell command line parameters using hook

background Before the old brother was engaged in PowerShell, then I also learned, and then found a system function. step First, general samples are executing PowerShell, PowerShell.exe + command line ...

Invalid <param> tag: Cannot load command parameter [robot_description]:

I am practicing robot operating system theory and practice. First download the gazebo model will then add the relevant model of the gazebo model, see this URL Error in running roslaunch file last The ...

Error running Bcdedit command in PowerShell

See the figure below. When I try to execute one of the startup items in PowerShell to execute bcdedit, an error occurs; while running in CMD is normal. The command executed is: bcdedit /delete {f33a27...

Qt compile error: Command line error D2021: invalid numeric argument '/ FS' solution

1. Environment: Qt5.7.1 and VS2013 2. I have configured on multiple laptops had the same development environment, notebooks begin this stage the problem can also be used, there was a time useless this...

CL: Command line Error D8021: The invalid numerical parameter "/wno-cpp"

It is easy to get the COCO source code under the Linux system, and the Windows system always reports errors something I can't understand. The code when obtaining pycocotools Error content Find the cor...

More Recommendation

Python3 command line passed argument (cmd -parameter)

1. Create a new cmd_parameter.py 2. Copy the following test code to cmd_parameter.py 3. Command line run: python cmd_parameter.py --string=python --int-input=10 --list-input=123...

Socket bind() error: invalid operands to binary expression

This article quotes from Stackoverflow. Original code code: Error: Problem Description: This was working when I run this code using C++11, and also works when I run this code using C++ 17 on Linux. It...

Powershell command

1.KMS command to activate the VOL version Powershell script Save the file as ps1 format, execution requires administrator privileges....

ERROR MESSAGE: Invalid command line: Malformed walker argument: Could not find walker with name

Introduction and analysis I used environment is GATK GenomeAnalysisTK.jar v3.7-0-gcfedb67 of Java environment: But found that regardless of which GATK Tool Name (-T) Showed ** Could not find walker wi...

Python prints Chinese error under windows command IOError [Errno 22] Invalid argument

Problem Description: python version: 2.7.15 The python version of pycharm: 2.7.15 python file encoding: utf-8 windows command encoding has been executedchcp 65001Changed to utf-8 encoding. The python ...

Copyright  DMCA © 2018-2026 - All Rights Reserved - www.programmersought.com  User Notice

Top