New-Alias: A positional parameter cannot be found that accepts argument '$null'

Esteban Cazarez 21 Reputation points
2022-10-25T16:07:17.033+00:00

Any ideas how to get around this?

Super long string is not recognized as a name of a cmdlet, function, script file, or executable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.

New-Alias: A positional parameter cannot be found that accepts argument '$null'.

Windows for business Windows Server User experience PowerShell
0 comments No comments
{count} votes

Accepted answer
  1. Rich Matheisen 47,901 Reputation points
    2022-10-25T18:51:22.803+00:00

    The -Value parameter shouldn't be anything more than the NAME of the thing you're aliasing.

    Also, where have you defined or initialized the variable "$l"?

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Esteban Cazarez 21 Reputation points
    2022-10-25T22:54:00.957+00:00

    The variable variable "$l" is initialized above but I think it is not accepting -i . Let me ask around.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.