winutil icon indicating copy to clipboard operation
winutil copied to clipboard

winutil does not work at all

Open guenter-gruber opened this issue 1 year ago • 8 comments

Describe the bug

When I start the downloaded winutil.exe with administrator rights absolut nothing appears on my screen and winutil does not work on my Win11 (24H2) PC system

Steps to reproduce

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See the error.

Expected behavior

Screenshots

Additional context

Issue validation

  • [ ] I checked for duplicate issues.
  • [ ] I checked for already existing discussions.
  • [ ] I checked for an already existing pull request addressing the issue.

guenter-gruber avatar Dec 19 '24 17:12 guenter-gruber

Is the .ps1 working? Run irm "https://christitus.com/win" | iex as admin in powershell (not cmd)

basketshoe avatar Dec 22 '24 12:12 basketshoe

… regarding your recommendations I have tried the following in the powershell as administrator with no effect:

PS C:\temp> run irm winutil.ps1

run : Die Benennung "run" wurde nicht als Name eines Cmdlet, einer Funktion, einer Skriptdatei oder eines ausführbaren

Programms erkannt. Überprüfen Sie die Schreibweise des Namens, oder ob der Pfad korrekt ist (sofern enthalten), und

wiederholen Sie den Vorgang.

In Zeile:1 Zeichen:1

  • run irm winutil.ps1

  • 
      + CategoryInfo          : ObjectNotFound: (run:String) [], CommandNotFoundException
    
      + FullyQualifiedErrorId : CommandNotFoundException
    
    
    
    

PS C:\temp> run irm winutil.ps1 | iex

run : Die Benennung "run" wurde nicht als Name eines Cmdlet, einer Funktion, einer Skriptdatei oder eines ausführbaren

Programms erkannt. Überprüfen Sie die Schreibweise des Namens, oder ob der Pfad korrekt ist (sofern enthalten), und

wiederholen Sie den Vorgang.

In Zeile:1 Zeichen:1

  • run irm winutil.ps1 | iex

  • 
      + CategoryInfo          : ObjectNotFound: (run:String) [], CommandNotFoundException
    
      + FullyQualifiedErrorId : CommandNotFoundException
    
    
    
    

PS C:\temp>

--


:: Ass.-Prof. Dipl.-Ing. Dr.techn. Guenter GRUBER :: Technische Universitaet Graz / Graz University of Technology :: Institut fuer Siedlungswasserwirtschaft und Landschaftswasserbau :: Institute of Urban Water Management and Landscape Water Engineering

:: Stremayrgasse 10/I, 8010 Graz, Austria


:: Telefon: +43-(0)316-873-8373 :: FAX: +43-(0)316-873-8376 :: E-Mail: @.> @. :: Web: http://www.sww.tugraz.at/ www.sww.tugraz.at

:: Meeting: https://tugraz.webex.com/meet/guenter.gruber https://tugraz.webex.com/meet/guenter.gruber


From: basketshoe @.> Sent: Sunday, December 22, 2024 1:40 PM To: ChrisTitusTech/winutil @.> Cc: Gruber, Günter @.>; Author @.> Subject: Re: [ChrisTitusTech/winutil] winutil does not work at all (Issue #3118)

Is the .ps1 working? Run irm "https://christitus.com/win" | iex as admin in powershell (not cmd)

— Reply to this email directly, view it on GitHub https://github.com/ChrisTitusTech/winutil/issues/3118#issuecomment-2558442756 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AIOJBUYMXO4XNOFTWXIXAGD2G2XJLAVCNFSM6AAAAABT5OU666VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKNJYGQ2DENZVGY . You are receiving this because you authored the thread. https://github.com/notifications/beacon/AIOJBU2WBQLGRKMH5P75GWD2G2XJLA5CNFSM6AAAAABT5OU666WGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTUYP26QI.gif Message ID: @.*** @.***> >

guenter-gruber avatar Jan 02 '25 16:01 guenter-gruber

I don't understand German but you should not type "run", just: irm "https://christitus.com/win" | iex Remember to do that in a powershell admin window

basketshoe avatar Jan 02 '25 17:01 basketshoe

… here the result wihtout “run”:

PS C:\temp> irm winutil.ps1 | iex

irm : Der Remotename konnte nicht aufgelöst werden: 'winutil.ps1'

In Zeile:1 Zeichen:1

  • irm winutil.ps1 | iex

  • 
      + CategoryInfo          : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-RestMethod], WebExc
    
     eption
    
      + FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeRestMethodCommand
    
    
    
    

PS C:\temp>

Best regards,

Günter

--


:: Ass.-Prof. Dipl.-Ing. Dr.techn. Guenter GRUBER :: Technische Universitaet Graz / Graz University of Technology :: Institut fuer Siedlungswasserwirtschaft und Landschaftswasserbau :: Institute of Urban Water Management and Landscape Water Engineering

:: Stremayrgasse 10/I, 8010 Graz, Austria


:: Telefon: +43-(0)316-873-8373 :: FAX: +43-(0)316-873-8376 :: E-Mail: @.> @. :: Web: http://www.sww.tugraz.at/ www.sww.tugraz.at

:: Meeting: https://tugraz.webex.com/meet/guenter.gruber https://tugraz.webex.com/meet/guenter.gruber


From: basketshoe @.> Sent: Thursday, January 2, 2025 6:14 PM To: ChrisTitusTech/winutil @.> Cc: Gruber, Günter @.>; Author @.> Subject: Re: [ChrisTitusTech/winutil] winutil does not work at all (Issue #3118)

I don't understand German but you should not type "run", just: irm "https://christitus.com/win" | iex Remember to do that in a powershell admin window

— Reply to this email directly, view it on GitHub https://github.com/ChrisTitusTech/winutil/issues/3118#issuecomment-2568103554 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AIOJBU2GOCPPHYKAXDF73XT2IVXWHAVCNFSM6AAAAABT5OU666VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKNRYGEYDGNJVGQ . You are receiving this because you authored the thread. https://github.com/notifications/beacon/AIOJBUY4TE2QEW5KULE22RD2IVXWHA5CNFSM6AAAAABT5OU666WGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTUZCITIE.gif Message ID: @.*** @.***> >

guenter-gruber avatar Jan 02 '25 17:01 guenter-gruber

Please follow the exact command:

irm "https://christitus.com/win" | iex

basketshoe avatar Jan 02 '25 17:01 basketshoe

… and here the new result:

PS C:\temp> irm https://christitus.com/win | iex

iex : In Zeile:851 Zeichen:1

  • class ErroredPackage {

  • 
    

Das Schlüsselwort "Class" ist im ConstrainedLanguage-Modus nicht zulässig.

In Zeile:851 Zeichen:7

  • class ErroredPackage {

  •   ~~~~~~~~~~~~~~
    

Unerwartetes Token "ErroredPackage" in Ausdruck oder Anweisung.

In Zeile:854 Zeichen:20

  • ErroredPackage() { $this.Init(@{} )}
    
  •                ~
    

Nach "(" wurde ein Ausdruck erwartet.

In Zeile:14654 Zeichen:5

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

Das Schlüsselwort "Class" ist im ConstrainedLanguage-Modus nicht zulässig.

In Zeile:14654 Zeichen:11

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

Unerwartetes Token "WingetFailedInstall" in Ausdruck oder Anweisung.

In Zeile:14660 Zeichen:5

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

Das Schlüsselwort "Class" ist im ConstrainedLanguage-Modus nicht zulässig.

In Zeile:14660 Zeichen:11

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

Unerwartetes Token "ChocoFailedInstall" in Ausdruck oder Anweisung.

In Zeile:14666 Zeichen:5

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

Das Schlüsselwort "Class" ist im ConstrainedLanguage-Modus nicht zulässig.

In Zeile:14666 Zeichen:11

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

Unerwartetes Token "GenericException" in Ausdruck oder Anweisung.

In Zeile:1 Zeichen:36

  • irm https://christitus.com/win https://christitus.com/win | iex

  •                                ~~~
    
    • CategoryInfo : ParserError: (:) [Invoke-Expression], ParseException

    • FullyQualifiedErrorId : ClassesNotAllowedInConstrainedLanguage,Microsoft.PowerShell.Commands.InvokeExpressionCom

    mand

PS C:\temp>

Best,

Günter

--


:: Ass.-Prof. Dipl.-Ing. Dr.techn. Guenter GRUBER :: Technische Universitaet Graz / Graz University of Technology :: Institut fuer Siedlungswasserwirtschaft und Landschaftswasserbau :: Institute of Urban Water Management and Landscape Water Engineering

:: Stremayrgasse 10/I, 8010 Graz, Austria


:: Telefon: +43-(0)316-873-8373 :: FAX: +43-(0)316-873-8376 :: E-Mail: @.> @. :: Web: http://www.sww.tugraz.at/ www.sww.tugraz.at

:: Meeting: https://tugraz.webex.com/meet/guenter.gruber https://tugraz.webex.com/meet/guenter.gruber


From: basketshoe @.> Sent: Thursday, January 2, 2025 6:44 PM To: ChrisTitusTech/winutil @.> Cc: Gruber, Günter @.>; Author @.> Subject: Re: [ChrisTitusTech/winutil] winutil does not work at all (Issue #3118)

Please follow the exact command:

irm "https://christitus.com/win" | iex

— Reply to this email directly, view it on GitHub https://github.com/ChrisTitusTech/winutil/issues/3118#issuecomment-2568140114 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AIOJBU7UH555OAQN2S75LJD2IV3HNAVCNFSM6AAAAABT5OU666VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKNRYGE2DAMJRGQ . You are receiving this because you authored the thread. https://github.com/notifications/beacon/AIOJBUZFBMTJNIENU5B64J32IV3HNA5CNFSM6AAAAABT5OU666WGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTUZCK2VE.gif Message ID: @.*** @.***> >

guenter-gruber avatar Jan 02 '25 17:01 guenter-gruber

You are forgetting ", I don't know if that's the actual problem but it could be. Are you in an admin session?

basketshoe avatar Jan 02 '25 17:01 basketshoe

… yes, I am running the Powershell as admin, here the new result:

PS C:\temp> irm “https://christitus.com/win” | iex

iex : In Zeile:851 Zeichen:1

  • class ErroredPackage {

  • 
    

Das Schlüsselwort "Class" ist im ConstrainedLanguage-Modus nicht zulässig.

In Zeile:851 Zeichen:7

  • class ErroredPackage {

  •   ~~~~~~~~~~~~~~
    

Unerwartetes Token "ErroredPackage" in Ausdruck oder Anweisung.

In Zeile:854 Zeichen:20

  • ErroredPackage() { $this.Init(@{} )}
    
  •                ~
    

Nach "(" wurde ein Ausdruck erwartet.

In Zeile:14654 Zeichen:5

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

Das Schlüsselwort "Class" ist im ConstrainedLanguage-Modus nicht zulässig.

In Zeile:14654 Zeichen:11

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

Unerwartetes Token "WingetFailedInstall" in Ausdruck oder Anweisung.

In Zeile:14660 Zeichen:5

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

Das Schlüsselwort "Class" ist im ConstrainedLanguage-Modus nicht zulässig.

In Zeile:14660 Zeichen:11

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

Unerwartetes Token "ChocoFailedInstall" in Ausdruck oder Anweisung.

In Zeile:14666 Zeichen:5

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

Das Schlüsselwort "Class" ist im ConstrainedLanguage-Modus nicht zulässig.

In Zeile:14666 Zeichen:11

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

Unerwartetes Token "GenericException" in Ausdruck oder Anweisung.

In Zeile:1 Zeichen:36

  • irm https://christitus.com/win https://christitus.com/win | iex

  •                                ~~~
    
    • CategoryInfo : ParserError: (:) [Invoke-Expression], ParseException

    • FullyQualifiedErrorId : ClassesNotAllowedInConstrainedLanguage,Microsoft.PowerShell.Commands.InvokeExpressionCom

    mand

PS C:\temp>

--


:: Ass.-Prof. Dipl.-Ing. Dr.techn. Guenter GRUBER :: Technische Universitaet Graz / Graz University of Technology :: Institut fuer Siedlungswasserwirtschaft und Landschaftswasserbau :: Institute of Urban Water Management and Landscape Water Engineering

:: Stremayrgasse 10/I, 8010 Graz, Austria


:: Telefon: +43-(0)316-873-8373 :: FAX: +43-(0)316-873-8376 :: E-Mail: @.> @. :: Web: http://www.sww.tugraz.at/ www.sww.tugraz.at

:: Meeting: https://tugraz.webex.com/meet/guenter.gruber https://tugraz.webex.com/meet/guenter.gruber


From: basketshoe @.> Sent: Thursday, January 2, 2025 6:50 PM To: ChrisTitusTech/winutil @.> Cc: Gruber, Günter @.>; Author @.> Subject: Re: [ChrisTitusTech/winutil] winutil does not work at all (Issue #3118)

You are forgetting ", I don't know if that's the actual problem but it could be. Are you in an admin session?

— Reply to this email directly, view it on GitHub https://github.com/ChrisTitusTech/winutil/issues/3118#issuecomment-2568146539 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AIOJBU6GXI5LL3JYRIWXSW32IV34FAVCNFSM6AAAAABT5OU666VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKNRYGE2DMNJTHE . You are receiving this because you authored the thread. https://github.com/notifications/beacon/AIOJBU6N5KC2U3QCT6TXSXD2IV34FA5CNFSM6AAAAABT5OU666WGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTUZCLHGW.gif Message ID: @.*** @.***> >

guenter-gruber avatar Jan 02 '25 17:01 guenter-gruber

You have Constrained Language Mode enabled, which is limiting your ability to run scripts.

PowerShell Constrained Language is a language mode of PowerShell designed to support day-to-day administrative tasks, yet restrict access to sensitive language elements that can be used to invoke arbitrary Windows APIs.

Revert to full language mode by pasting the following: $ExecutionContext.SessionState.LanguageMode = "FullLanguage"

Confirm your mode by using: $ExecutionContext.SessionState.LanguageMode

By the way, you should be able to paste into PowerShell by using right-click.

I hope that helps, if not, I will translate your post some more. :-)

kelthor85 avatar Feb 19 '25 12:02 kelthor85

This issue was marked as stale due to inactivity.

github-actions[bot] avatar May 21 '25 00:05 github-actions[bot]