Recent content by PWn3R


  1. Windows 11 Group Policy/Reg/Something Deployable RUN/EXECUTE .ps1 files by default

    Yes, nothing we tried worked to set PowerShell. I don't know if you've tried it but in our experience, if you set it and export it, it's blank, if you manually create the line in the XML it does nothing. Edit: for clarity sake, I should probably add, we are not trying to set PowerShell v7 or...
  2. Windows 11 Group Policy/Reg/Something Deployable RUN/EXECUTE .ps1 files by default

    I will try that. What I've tried so far doesn't work because of the multiline @' PASSWORDVARIABLE '@ Here string where the password gets inserted during generation of the script by the software. Nothing I've tried actually allows the here string to work. Putting it in one line results in...
  3. Windows 11 Group Policy/Reg/Something Deployable RUN/EXECUTE .ps1 files by default

    Unfortunately, your options are: "Run as command line" limited to one liners and the code is broken by ' or " in the string you want to execute, or "Write to a file with ____ file extension and execute" (equivalent to double click from what we've been able to figure). There are vendor specific...
  4. Windows 11 Group Policy/Reg/Something Deployable RUN/EXECUTE .ps1 files by default

    The script is being generated by the software that replaces the login/log off GINA on Windows. This software generates the script, writes to a file temporarily, and executes it, then deletes it. The problem that created the need for Powershell is because of using a here string to get around...
  5. Windows 11 Group Policy/Reg/Something Deployable RUN/EXECUTE .ps1 files by default

    Circling back to this discussion. We used the FTA script. We tried implementing in the logon script, the file association regularly resets to notepad. Certain computers stick others reset every few minutes. It seems like .ps1 is protected by Microsoft, and it wants to reset to Notepad. I tried...
  6. Windows 11 Group Policy/Reg/Something Deployable RUN/EXECUTE .ps1 files by default

    Doing that reverts it. There is nothing in GPO after looking line by line that would revert it. We even tried unlinking policies that are applying app association XMLs and confirming they aren't linked in a test area. Our Microsoft ticket has been escalated 14 times and is still with an engineer...
  7. Windows 11 Group Policy/Reg/Something Deployable RUN/EXECUTE .ps1 files by default

    Circling back to this forum thread. We continue to experience issues. I tried the SetUserFTA and a PowerShell script from Github. Now we are seeing that the file associations are being reverted periodically after they applied. We had this setup to run at user logon with the program and the PS1...
  8. Windows 11 Group Policy/Reg/Something Deployable RUN/EXECUTE .ps1 files by default

    I'll take that, I deserve that response. I forgot I had even posted before. Sorry about that, and thanks for sharing. We found another solution we are testing as well. We have two avenues now. Thank you.
  9. Windows 11 Group Policy/Reg/Something Deployable RUN/EXECUTE .ps1 files by default

    The third party application just runs the default action in Windows. Not all the registry entries above are for right click, one of them appears to be but was the last one added that seemed to make the difference in getting this working sometimes. The script itself is procedurally generated...
  10. Windows 11 Group Policy/Reg/Something Deployable RUN/EXECUTE .ps1 files by default

    Good day! Our team has been working to find a way to force Windows 11 to RUN .ps1 files by default. There is a valid function being run on approximately 3000 machines in our environment that has to run as a .ps1. This process was working with a single registry change on Windows 10, but does not...
  11. Solved Run PS1 files (double click) on Windows 11

    Hi - sorry to necro a thread, but running into this with machines that need to run by default from group policy. We've tried every registry entry we can think of and are going to test the script above. Nothing works on Windows 11 except manually setting it in control panel, which we can't do...
Back
Top Bottom