I need to associate .ps1 with powershell.exe instead of Notepad via GPO from a 2008r2 DC. I've seen one question mention CSE under Computer Configuration\Preferences\Control Panel Settings\Folder Options and setting it there. But I'm not sure exactly what to do and I can't find anything helpful anywhere.
You're close. Under Folder Options, Right Click in the main part of the area and go to New -> File Type
Then OK/Save out.
Reference: TechNet: Configure a File Type Item
EDIT: Can't find the class, and I even used PowerShell to extract that dropdown list and search it...nothing.
There is a way to set it via Registry in Group Policy. The class is Microsoft.PowerShellScript.1 and full path to it is:
Change the (Default) value to:
This is found in the GPOE:
SUMMARY: Create a new Registry Item:
Then wait for GP flush on machines.