Windows 10: Why can't I edit PowerShell .ps1 files?

Discus and support Why can't I edit PowerShell .ps1 files? in Windows 10 Gaming to solve the problem; When I right click any .ps1 file and try to edit it, I get the message below. This is a new computer if that matters. But the .ps1 files are stored on... Discussion in 'Windows 10 Gaming' started by zBernie, Aug 28, 2023.

  1. zBernie Win User

    Why can't I edit PowerShell .ps1 files?


    When I right click any .ps1 file and try to edit it, I get the message below. This is a new computer if that matters. But the .ps1 files are stored on OneDrive, not sure why there is a problem.

    :)
     
    zBernie, Aug 28, 2023
    #1
  2. ddelo Win User

    Difficulty in Powershell and following the instructions herein

    The problem seems to be a “file not found” one.

    So, please follow these steps:
    1. Download the .ps1 file from here and save it any place you want.
    2. Go to the folder you saved it, right click on the file, unblock it and then copy it [Ctrl-C]. If it’s saved in your Downloads folder, skip step 3
    3. Then go to your Downloads folder and paste it [Ctrl-V] there.
    4. Open Powershell as Administrator.
    5. Type the command Set-ExecutionPolicy Bypass -Scope Process -Force
    6. Type the command cd $env:USERPROFILE\Downloads
    7. Type the command .\RealtekAudioDriverIntegration.ps1

    If everything fails, do the following:

    1. Download the .ps1 file from here and save it any place you want in your C: drive.
    2. Open Powershell as Administrator.
    3. Type the command Set-ExecutionPolicy Bypass -Scope Process -Force
    4. Type the command dir C:\ "RealtekAudioDriverIntegration.ps1" -Recurse -ea 0 | Unblock-File
    5. Type the command dir C:\ "RealtekAudioDriverIntegration.ps1" -Recurse -ea 0 | select -First 1 | % { & $_.FullName }
    Then post the results here.
     
    ddelo, Aug 28, 2023
    #2
  3. Szewczyk Win User
    Setting .PS1 scripts default program to Powershell is soooooooooooo freak'in difficult

    In Windows 10, .PS1 by default program is set to notepad, yeah go wonder, even though the description for a .PS1 file is "Windows Powershell Script", then of course trying to set it to Powershell brings up a dialog that asks "Which app do you want it to
    set to" and of course there is no app named Powershell. Then the dialog wants you to search the computer to find Powershell even though it is Microsoft's major player in scripting, the Windows 10 can't find, I have to hunt and peck to find the executable.
     
    Szewczyk, Aug 28, 2023
    #3
  4. Kursah Win User

    Why can't I edit PowerShell .ps1 files?

    PowerShell instead of Commandline in Creators Update

    Interestingly enough my personal laptop just got the update...and still has Command Prompt listed, not PowerShell...

    Edit: Not that it matters...I use both regularly. *Toast :toast:
     
    Kursah, Aug 28, 2023
    #4
Thema:

Why can't I edit PowerShell .ps1 files?

Loading...
  1. Why can't I edit PowerShell .ps1 files? - Similar Threads - Why can't edit

  2. Why can't I edit PowerShell .ps1 files?

    in Windows 10 Software and Apps
    Why can't I edit PowerShell .ps1 files?: When I right click any .ps1 file and try to edit it, I get the message below. This is a new computer if that matters. But the .ps1 files are stored on OneDrive, not sure why there is a problem....
  3. Rundll32 created PowerShell .ps1 or .pms1 files

    in Microsoft Windows 10 Store
    Rundll32 created PowerShell .ps1 or .pms1 files: Hello,I need to understand this process tree, from the eldest to the newest:C:\WINDOWS\system32\services.exeC:\WINDOWS\system32\svchost.exe -k wsappx -p -s AppXSvcC:\WINDOWS\system32\rundll32.exe" "C:\WINDOWS\SYSTEM32\EDGEHTML.dll",#141...
  4. Rundll32 created PowerShell .ps1 or .pms1 files

    in Windows 10 Gaming
    Rundll32 created PowerShell .ps1 or .pms1 files: Hello,I need to understand this process tree, from the eldest to the newest:C:\WINDOWS\system32\services.exeC:\WINDOWS\system32\svchost.exe -k wsappx -p -s AppXSvcC:\WINDOWS\system32\rundll32.exe" "C:\WINDOWS\SYSTEM32\EDGEHTML.dll",#141...
  5. Rundll32 created PowerShell .ps1 or .pms1 files

    in Windows 10 Software and Apps
    Rundll32 created PowerShell .ps1 or .pms1 files: Hello,I need to understand this process tree, from the eldest to the newest:C:\WINDOWS\system32\services.exeC:\WINDOWS\system32\svchost.exe -k wsappx -p -s AppXSvcC:\WINDOWS\system32\rundll32.exe" "C:\WINDOWS\SYSTEM32\EDGEHTML.dll",#141...
  6. Change Edit option for Powershell files

    in Windows 10 Performance & Maintenance
    Change Edit option for Powershell files: How can I change the default program when I select edit from the context menu when right clicking on a Powershell file.I swear, if anyone tell me the general how to change a default program, I am going to lose it since that does not change it....
  7. Change Edit option for Powershell files

    in Windows 10 Gaming
    Change Edit option for Powershell files: How can I change the default program when I select edit from the context menu when right clicking on a Powershell file.I swear, if anyone tell me the general how to change a default program, I am going to lose it since that does not change it....
  8. Change Edit option for Powershell files

    in Windows 10 Software and Apps
    Change Edit option for Powershell files: How can I change the default program when I select edit from the context menu when right clicking on a Powershell file.I swear, if anyone tell me the general how to change a default program, I am going to lose it since that does not change it....
  9. assign powershell to ps1

    in Windows 10 Ask Insider
    assign powershell to ps1: hi win10 1909 here. i want to assign powerhell to open ps1 files. now notepad.exe is assigned, and i cant change this to powershell is there a way to assign powershell to ps1 files ? submitted by /u/rtl33 [link] [comments]...
  10. How to set file associations in PowerShell so that .ps1 is exec by PS

    in Windows 10 Software and Apps
    How to set file associations in PowerShell so that .ps1 is exec by PS: How to set file associations in PowerShell so that a .ps1 Script is executed by PowerShell when double clicked. I tried: Code: cmd /c "ASSOC .ps1=Microsoft.PowerShellScript.1" cmd /c "FTYPE...