I have an new Windows 11 System and I try to install a script
under Windows Powershell ISE as follows
PS C:WindowsSystem32>
"_CommonHintergrundLockscreen ProgrammCollect-Lockscreens11.ps1" -Install
which was fine under Windows 10
After writing in Windows (11) Powershell ISE the same command
"_CommonHintergrundLockscreen ProgrammCollect-Lockscreens11.ps1" -Install
I get the error message
In Zeile:1 Zeichen:73
+ ... nHintergrundLockscreen ProgrammCollect-Lockscreens11.ps1" -Install
+ ~~~~~~~~
Unerwartetes Token "-Install" in Ausdruck oder Anweisung.
+ CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : UnexpectedToken
unexpected Token "-Install" in expression or statement.
+ CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : UnexpectedToken
What do I wrong? Thank you very much for helping
New contributor
Kornelius Ley is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.