While excecuting powershell script where you require charectors like @ , $ and * to be passed as parameters you can get following error .
Even IF you use a double quoted string will still need to use tic marks to escape the character.
(e.g. `@, `$ ).
Even IF you use a double quoted string will still need to use tic marks to escape the character.
(e.g. `@, `$ ).
Unrecognized token in source text.
At line:1 char:88
+ &
At line:1 char:88
+ &
...................................
-NoExit
+ CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordEx
ception
+ FullyQualifiedErrorId : UnrecognizedToken
+ CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordEx
ception
+ FullyQualifiedErrorId : UnrecognizedToken
i have the same error.you can make them between ' ' for no error
ReplyDeleteFor example .......npm install '@types/lodash' --save-dev
Thank you! It works :D
Deletethanks a lot its worked
Deletei need help :(
ReplyDeleteImport-Csv "C:\a2.csv" | foreach {Set-ADUser -Identity $_. SamAccountName -add @ {Proxyaddresses= $ _. Proxyaddresses -split ","}}
I need help. I am trying to install
ReplyDeletenpm install @ant-design/icons
But could not understand what the issue is.