starlinkstatus icon indicating copy to clipboard operation
starlinkstatus copied to clipboard

Unable to run install.ps1

Open Deptydog opened this issue 2 years ago • 0 comments

After copying the full path, I get a red message in the shell stating that running scripts have been disabled. Windows PowerShell Copyright (C) Microsoft Corporation. All rights reserved.

Install the latest PowerShell for new features and improvements! https://aka.ms/PSWindows

PS C:\WINDOWS\system32> powershell.exe -noprofile -executionpolicy bypass -file /install.ps1 At line:1 char:57

  • powershell.exe -noprofile -executionpolicy bypass -file <full path to ...
  •                                                     ~
    

The '<' operator is reserved for future use. + CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordEx ception + FullyQualifiedErrorId : RedirectionNotSupported

PS C:\WINDOWS\system32> PS C:\WINDOWS\system32> install.ps1 install.ps1 : The term 'install.ps1' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At line:1 char:1

  • install.ps1
  •   + CategoryInfo          : ObjectNotFound: (install.ps1:String) [], Command
     NotFoundException
      + FullyQualifiedErrorId : CommandNotFoundException
    
    

PS C:\WINDOWS\system32> C:\Users\depty\Downloads\Install.ps1 C:\Users\depty\Downloads\Install.ps1 : File C:\Users\depty\Downloads\Install.ps1 cannot be loaded because running scripts is disabled on this system. For more information, see about_Execution_Policies at https:/go.microsoft.com/fwlink/?LinkID=135170. At line:1 char:1

  • C:\Users\depty\Downloads\Install.ps1
  •   + CategoryInfo          : SecurityError: (:) [], PSSecurityException
      + FullyQualifiedErrorId : UnauthorizedAccess
    

PS C:\WINDOWS\system32> powershell.exe -noprofile -executionpolicy bypass -file /install.ps1 At line:1 char:57

  • powershell.exe -noprofile -executionpolicy bypass -file <full path to ...
  •                                                     ~
    

The '<' operator is reserved for future use. + CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordEx ception + FullyQualifiedErrorId : RedirectionNotSupported

PS C:\WINDOWS\system32> C:\Users\depty\Downloads\Install.ps1 C:\Users\depty\Downloads\Install.ps1 : File C:\Users\depty\Downloads\Install.ps1 cannot be loaded because running scripts is disabled on this system. For more information, see about_Execution_Policies at https:/go.microsoft.com/fwlink/?LinkID=135170. At line:1 char:1

  • C:\Users\depty\Downloads\Install.ps1
  •   + CategoryInfo          : SecurityError: (:) [], PSSecurityException
      + FullyQualifiedErrorId : UnauthorizedAccess
    

PS C:\WINDOWS\system32>

Deptydog avatar Oct 25 '22 23:10 Deptydog