Skip to content

Script won't run #1994

@zapdady

Description

@zapdady

This is what I get when I run the script:

PS C:\WINDOWS\system32> iwr -useb https://christitus.com/win | iex
iex : At line:12832 char:5

  • class WingetFailedInstall : Exception {
    
  • ~~~~~
    

Class keyword is not allowed in ConstrainedLanguage mode.
At line:12832 char:11

  • class WingetFailedInstall : Exception {
    
  •       ~~~~~~~~~~~~~~~~~~~
    

Unexpected token 'WingetFailedInstall' in expression or statement.
At line:12838 char:5

  • class ChocoFailedInstall : Exception {
    
  • ~~~~~
    

Class keyword is not allowed in ConstrainedLanguage mode.
At line:12838 char:11

  • class ChocoFailedInstall : Exception {
    
  •       ~~~~~~~~~~~~~~~~~~
    

Unexpected token 'ChocoFailedInstall' in expression or statement.
At line:12844 char:5

  • class GenericException : Exception {
    
  • ~~~~~
    

Class keyword is not allowed in ConstrainedLanguage mode.
At line:12844 char:11

  • class GenericException : Exception {
    
  •       ~~~~~~~~~~~~~~~~
    

Unexpected token 'GenericException' in expression or statement.
At line:1 char:40

  • iwr -useb https://christitus.com/win | iex
  •                                    ~~~
    
    • CategoryInfo : ParserError: (:) [Invoke-Expression], ParseException
    • FullyQualifiedErrorId : ClassesNotAllowedInConstrainedLanguage,Microsoft.PowerShell.Commands.InvokeExpressionCom
      How can I fix this?
      I loved this when it worked.
      John McIntyre

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions