You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
315 lines
18 KiB
315 lines
18 KiB
#include <windows.h>
|
|
#include <ntverp.h>
|
|
#include "gptext.h"
|
|
|
|
#define VER_FILETYPE VFT_APP
|
|
#define VER_FILESUBTYPE VFT2_UNKNOWN
|
|
#define VER_FILEDESCRIPTION_STR "GPTExt"
|
|
#define VER_INTERNALNAME_STR "gptext\0"
|
|
#define VER_ORIGINALFILENAME_STR "gptext.dll"
|
|
|
|
#include "common.ver"
|
|
|
|
|
|
IDI_POLICY ICON policy.ico
|
|
IDI_POLICY2 ICON policy2.ico
|
|
IDI_POLICY3 ICON policy3.ico
|
|
IDI_DOCUMENT ICON document.ico
|
|
IDI_SCRIPT ICON script.ico
|
|
IDI_FILTER ICON filter.ico
|
|
|
|
IDB_16x16 BITMAP "icons16.bmp"
|
|
IDB_32x32 BITMAP "icons32.bmp"
|
|
|
|
|
|
STRINGTABLE
|
|
BEGIN
|
|
IDS_SCRIPTS_NAME "Scripts"
|
|
IDS_SCRIPTS_NAME_MACHINE "Scripts (Startup/Shutdown)"
|
|
IDS_SCRIPTS_NAME_USER "Scripts (Logon/Logoff)"
|
|
IDS_NAME "Name"
|
|
IDS_STATE "State"
|
|
IDS_SETTING "Setting"
|
|
IDS_PARAMETERS "Parameters"
|
|
IDS_ENABLED "Enabled"
|
|
IDS_DISABLED "Disabled"
|
|
IDS_NOTCONFIGURED "Not configured"
|
|
IDS_LOGON "Logon"
|
|
IDS_LOGOFF "Logoff"
|
|
IDS_STARTUP "Startup"
|
|
IDS_SHUTDOWN "Shutdown"
|
|
IDS_BROWSEFILTER "All Files#*.*##"
|
|
IDS_BROWSE "Browse"
|
|
IDS_SCRIPT_EDIT "Edit Script"
|
|
IDS_SCRIPT_FILTER "Script Files#*.bat;*.cmd;*.vbs;*.js;*.exe#All Files#*.*##"
|
|
IDS_POLICY_NAME "Administrative Templates"
|
|
IDS_POLICY_NAME_MACHINE "Administrative Templates (Computers)"
|
|
IDS_POLICY_NAME_USER "Administrative Templates (Users)"
|
|
IDS_TEMPLATES "&Add/Remove Templates..."
|
|
IDS_TEMPLATESDESC "Manage administrative templates"
|
|
IDS_SIZE "Size"
|
|
IDS_MODIFIED "Modified"
|
|
IDS_POLICYFILTER "Policy Templates#*.adm##"
|
|
IDS_POLICYTITLE "Policy Templates"
|
|
IDS_NONE "(None)"
|
|
|
|
//
|
|
// Dev note: If you are adding new adm files to the system and you want
|
|
// them automatically loaded by the Administrative Templates snapin,
|
|
// all you have to do is add the filename to **both** lists below (semi-colon seperated).
|
|
//
|
|
|
|
IDS_DEFAULTTEMPLATES "system.adm;inetres.adm;conf.adm;wmplayer.adm;wuau.adm"
|
|
IDS_ADDITIONALTTEMPLATES "wmplayer.adm;wuau.adm"
|
|
|
|
|
|
IDS_LISTBOX_SHOW "Show..."
|
|
IDS_VALUE "Value"
|
|
IDS_VALUENAME "Value Name"
|
|
IDS_VALUENAMENOTUNIQUE "The name you entered has already been used. You need to enter a unique name."
|
|
IDS_EMPTYVALUENAME "You need to enter a name."
|
|
IDS_VALUEDATANOTUNIQUE "The value you entered has already been used. You need to enter a unique value."
|
|
IDS_EMPTYVALUEDATA "You need to enter a value."
|
|
IDS_FILTERING "Filtering..."
|
|
IDS_FILTERINGDESC "Displays filtering options."
|
|
IDS_GPONAME "GPO Name"
|
|
IDS_MULTIPLEGPOS "(Merged GPOs)"
|
|
IDS_DESCTEXT "%d scripts (processed from top to bottom)"
|
|
IDS_LASTEXECUTED "Last Executed"
|
|
IDS_SAVEFAILED "The Scripts component is unable to save the changes due to error %d."
|
|
IDS_DISPLAYPROPERTIES "Display <A HREF = javascript:external.ExecuteSelectionMenuItem('_PROPERTIES')>Properties </A>"
|
|
IDS_EXTRAREGSETTINGS "Extra Registry Settings"
|
|
IDS_STRINGTOOLONG "The following entry in the [strings] section is too long and has been truncated.\n\n%s"
|
|
IDS_WORDTOOLONG "The following keyword is too long:\n\n%s"
|
|
IDS_ErrOUTOFMEMORY "There is not enough memory available. Quit one or more applications and try again."
|
|
|
|
IDS_ParseErr_UNEXPECTED_KEYWORD "Unexpected keyword"
|
|
IDS_ParseErr_UNEXPECTED_EOF "Unexpected end of file"
|
|
IDS_ParseErr_DUPLICATE_KEYNAME "Key name specified more than once. Likely causes are: 1) the KEYNAME tag is defined multiple times in this category 2) this KEYNAME is already defined in another category with the same name \
|
|
3) this KEYNAME is already defined in another category with the same name in a different adm file."
|
|
IDS_ParseErr_DUPLICATE_VALUENAME "Value name specified more than once"
|
|
IDS_ParseErr_DUPLICATE_ITEMNAME "Item name specified more than once"
|
|
IDS_ParseErr_DUPLICATE_ACTIONLIST "More than one action list was specified"
|
|
IDS_ParseErr_NO_KEYNAME "There was no key name specified for this entry or any of its parents"
|
|
IDS_ParseErr_NO_VALUENAME "There was no value name specified"
|
|
IDS_ParseErr_NO_VALUE "There was no value specified"
|
|
IDS_ParseErr_NO_ITEMNAME "There was no item name specified"
|
|
IDS_ParseErr_NOT_NUMERIC "Expected a numeric value"
|
|
IDS_ParseErr_STRING_NOT_FOUND "The corresponding string was not found in the [strings] section"
|
|
IDS_ParseErr_UNMATCHED_DIRECTIVE "An unmatched interpreter directive was found"
|
|
IDS_ParseErr_DUPLICATE_HELP "Help string specified more than once"
|
|
IDS_ParseErr_DUPLICATE_CLIENTEXT "CLIENTEXT string specified more than once"
|
|
IDS_ParseErr_INVALID_CLIENTEXT "GUID specified in CLIENTEXT is invalid. Format should be: {4765724D-ACCE-11d2-9A8F-0000F87571E3}"
|
|
IDS_ParseErr_DUPLICATE_SUPPORTED "Supported string specified more than once"
|
|
IDS_ParseErr_MISSINGVALUEON_OR_OFF "Missing either a VALUEON or VALUEOFF keyword. Policies using the unnamed registry value must have both VALUEON and VALUEOFF defined."
|
|
|
|
IDS_ParseFmt_MSG_FORMAT "The following error occurred in %s on line %lu:\r\nError %lu %s\r\n\r\n"
|
|
IDS_ParseFmt_FOUND "Found: %s\r\n"
|
|
IDS_ParseFmt_EXPECTED "Expected: %s\r\n"
|
|
IDS_ParseFmt_FATAL "\r\nThe file can not be loaded.\r\n"
|
|
|
|
IDS_ENTRYREQUIRED "You need to enter something for ""%s"" This field cannot be left blank."
|
|
IDS_INVALIDNUM "You need to enter a number for ""%s"" This field has invalid characters or the number is too large."
|
|
IDS_NUMBERTOOLARGE "%lu is greater than the maximum allowed value of %lu. %lu will be saved instead of %lu."
|
|
IDS_NUMBERTOOSMALL "%d is less than the minimum allowed value of %d. %d will be saved instead of %d."
|
|
IDS_POLICYCHANGEDFAILED "The Group Policy snapin was unable to save your changes due to the following error:\r\n\r\n %s"
|
|
IDS_INVALIDADMFILE "%s is not a valid template file. Only files that end with the .adm file extension can be added to this Group Policy Object."
|
|
|
|
IDS_IPSEC_NAME "IP Security"
|
|
IDS_WIRELESS_NAME "Wireless Group Policy"
|
|
IDS_PSCHED_NAME "QoS Packet Scheduler"
|
|
|
|
IDS_LOGON_DESC "A user logon script"
|
|
IDS_LOGOFF_DESC "A user logoff script"
|
|
IDS_STARTUP_DESC "A computer startup script"
|
|
IDS_SHUTDOWN_DESC "A computer shutdown script"
|
|
IDS_SCRIPTS_DESC "Group Policy scripts"
|
|
IDS_SCRIPTS_USER_DESC "Administrators use this extension to specify scripts that are run when the user logs on or off the computer. Scripts run in the user's context."
|
|
IDS_SCRIPTS_COMPUTER_DESC "Administrators use this extension to specify scripts that are to run during computer startup or shutdown. Scripts run in the Local System context."
|
|
IDS_SCRIPTS_LOGON "Contains user logon scripts."
|
|
IDS_SCRIPTS_LOGOFF "Contains user logoff scripts."
|
|
IDS_SCRIPTS_STARTUP "Contains computer startup scripts."
|
|
IDS_SCRIPTS_SHUTDOWN "Contains computer shutdown scripts."
|
|
IDS_POLICY_DESC "The Group Policy Administrative Templates node contains all registry-based policy information. "
|
|
IDS_RSOP_ADMFAILED "The latest versions of the ADM files below are not available. This can be due to insufficient permissions or unavailable network resources. The local copy of these ADM files will be used."
|
|
IDS_FAILED_RSOPFMT "%.100s\r\nLocation - ""%.300s""\r\nError - %.100s"
|
|
|
|
IDS_BINARYDATA "(Binary data)"
|
|
IDS_UNKNOWNDATA "(Unknown data format)"
|
|
IDS_EXSETROOT_DESC "This node contains registry settings that do not correspond to an Administrative Template policy (e.g. they did not originate from a .adm file). These settings may have been defined by a different snap-in."
|
|
IDS_EXSET_DESC "This registry setting does not correspond to an Administrative Template policy (e.g. they did not originate from a .adm file). It may have been defined by a different snap-in."
|
|
IDS_PREFERENCE "\r\n\r\nNote: This registry setting is not stored in a policies key and thus considered a preference. Therefore if the Group Policy Object that implements this setting is ever removed, this setting will remain."
|
|
IDS_SUPPORTEDDESC "<BR>\n<BR>\nRequirements:<BR>\n"
|
|
IDS_NOSUPPORTINFO "Policies with no Requirements information"
|
|
END
|
|
|
|
IDD_SCRIPT DIALOG DISCARDABLE 0, 0, 252, 218
|
|
STYLE WS_CHILD | WS_DISABLED | WS_CAPTION
|
|
CAPTION "Scripts"
|
|
FONT 8, "MS Shell Dlg"
|
|
BEGIN
|
|
ICON IDI_SCRIPT, -1, 7, 7, 18, 20
|
|
LTEXT "%s Scripts for %s",IDC_SCRIPT_TITLE,46,12,197,16
|
|
CONTROL "",-1,"Static",SS_BLACKFRAME | SS_SUNKEN,7,34,238,1
|
|
CONTROL "",IDC_SCRIPT_LIST,"SysListView32",LVS_REPORT | LVS_SINGLESEL | LVS_SHOWSELALWAYS |
|
|
LVS_NOSORTHEADER | WS_BORDER | WS_TABSTOP,7,43,181,108
|
|
PUSHBUTTON "&Up",IDC_SCRIPT_UP,195,55,50,14
|
|
PUSHBUTTON "Do&wn",IDC_SCRIPT_DOWN,195,69,50,14
|
|
PUSHBUTTON "A&dd...",IDC_SCRIPT_ADD,195,101,50,14
|
|
PUSHBUTTON "&Edit...",IDC_SCRIPT_EDIT,195,119,50,14
|
|
PUSHBUTTON "&Remove",IDC_SCRIPT_REMOVE,195,137,50,14
|
|
|
|
CONTROL "",-1,"Static",SS_BLACKFRAME | SS_SUNKEN,7,167,238,1
|
|
LTEXT "To view the script files stored in this Group Policy Object, press the button below.",
|
|
-1,7,173,197,16
|
|
PUSHBUTTON "&Show Files...",IDC_SCRIPT_SHOW,7,195,80,14
|
|
END
|
|
|
|
IDD_SCRIPT_EDIT DIALOGEX 22, 34, 252, 100
|
|
STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
|
|
EXSTYLE WS_EX_CONTEXTHELP
|
|
CAPTION "Add a Script"
|
|
FONT 8, "MS Shell Dlg"
|
|
BEGIN
|
|
LTEXT "Script &Name:", -1, 8, 11, 145, 8
|
|
EDITTEXT IDC_SCRIPT_NAME, 8, 23, 177, 12, ES_AUTOHSCROLL
|
|
LTEXT "Script &Parameters:", -1, 8, 46, 147, 8
|
|
EDITTEXT IDC_SCRIPT_ARGS, 8, 58, 177, 12, ES_AUTOHSCROLL
|
|
PUSHBUTTON "&Browse...", IDC_SCRIPT_BROWSE, 194, 22, 50, 14
|
|
DEFPUSHBUTTON "OK", IDOK, 138, 82, 50, 14
|
|
PUSHBUTTON "Cancel", IDCANCEL, 195, 82, 50, 14
|
|
END
|
|
|
|
IDD_POLICY DIALOGEX DISCARDABLE 0, 0, 252, 218
|
|
STYLE WS_CHILD | WS_DISABLED | WS_CAPTION
|
|
CAPTION "Setting"
|
|
FONT 8, "MS Shell Dlg"
|
|
BEGIN
|
|
ICON IDI_POLICY2, IDC_POLICYICON, 7, 8, 16, 16
|
|
LTEXT "", IDC_POLICY, 20, 10, 225, 8, SS_ENDELLIPSIS | SS_NOPREFIX
|
|
CONTROL "", -1, "Static", SS_BLACKFRAME | SS_SUNKEN, 7, 25, 238, 1
|
|
AUTORADIOBUTTON "Not &Configured", IDC_NOCONFIG, 7, 34, 238, 10, WS_GROUP | WS_TABSTOP
|
|
AUTORADIOBUTTON "&Enabled", IDC_ENABLED, 7, 46, 238, 10
|
|
AUTORADIOBUTTON "&Disabled", IDC_DISABLED, 7, 58, 238, 10
|
|
CONTROL "",IDC_POLICY_SETTINGS,"ClipClass",WS_TABSTOP | WS_VISIBLE |
|
|
WS_CHILD | WS_VSCROLL | WS_HSCROLL, 7, 70, 238, 115, WS_EX_CLIENTEDGE
|
|
LTEXT "Supported on:", IDC_SUPPORTEDTITLE, 7, 187, 50, 8
|
|
LTEXT "", IDC_SUPPORTED, 60, 187, 178, 8, SS_ENDELLIPSIS | SS_NOPREFIX
|
|
PUSHBUTTON "&Previous Setting",IDC_POLICY_PREVIOUS,7,199,75,14, WS_GROUP | WS_TABSTOP
|
|
PUSHBUTTON "&Next Setting",IDC_POLICY_NEXT,86,199,75,14
|
|
END
|
|
|
|
IDD_POLICY_HELP DIALOG DISCARDABLE 0, 0, 252, 218
|
|
STYLE WS_CHILD | WS_DISABLED | WS_CAPTION
|
|
CAPTION "Explain"
|
|
FONT 8, "MS Shell Dlg"
|
|
BEGIN
|
|
LTEXT "",IDC_POLICY_TITLE,7,7,235,10, SS_ENDELLIPSIS | SS_NOPREFIX
|
|
PUSHBUTTON "&Previous Setting",IDC_POLICY_PREVIOUS,7,199,75,14
|
|
PUSHBUTTON "&Next Setting",IDC_POLICY_NEXT,86,199,75,14
|
|
EDITTEXT IDC_POLICY_HELP,7,19,238,176,ES_READONLY | ES_MULTILINE | ES_AUTOVSCROLL | WS_VSCROLL
|
|
END
|
|
|
|
IDD_POLICY_PRECEDENCE DIALOG DISCARDABLE 0, 0, 252, 218
|
|
STYLE WS_CHILD | WS_DISABLED | WS_CAPTION
|
|
CAPTION "Precedence"
|
|
FONT 8, "MS Shell Dlg"
|
|
BEGIN
|
|
LTEXT "",IDC_POLICY_TITLE,7,7,235,10, SS_ENDELLIPSIS | SS_NOPREFIX
|
|
LTEXT "GPOs higher in the list have the highest priority",-1,7,187,238,10
|
|
PUSHBUTTON "&Previous Setting",IDC_POLICY_PREVIOUS,7,199,75,14
|
|
PUSHBUTTON "&Next Setting",IDC_POLICY_NEXT,86,199,75,14
|
|
CONTROL "",IDC_POLICY_PRECEDENCE,"SysListView32",LVS_REPORT | LVS_SINGLESEL |
|
|
LVS_NOSORTHEADER | WS_BORDER | WS_TABSTOP,7,19,238,164
|
|
END
|
|
|
|
IDD_TEMPLATES DIALOG 42, 63, 288, 150
|
|
STYLE DS_MODALFRAME | DS_CONTEXTHELP | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
|
|
CAPTION "Add/Remove Templates"
|
|
FONT 8, "MS Shell Dlg"
|
|
BEGIN
|
|
LTEXT "&Current Policy Templates:", IDC_TEMPLATE_TEXT, 8, 8, 248, 8
|
|
CONTROL "", IDC_TEMPLATELIST, WC_LISTVIEW, LVS_REPORT |
|
|
LVS_SHOWSELALWAYS | WS_BORDER | WS_TABSTOP,
|
|
8, 20, 270, 100
|
|
PUSHBUTTON "&Add...", IDC_ADDTEMPLATES, 8, 130, 50, 14
|
|
PUSHBUTTON "&Remove", IDC_REMOVETEMPLATES, 66, 130, 50, 14, WS_DISABLED
|
|
DEFPUSHBUTTON "C&lose", IDCLOSE, 229, 130, 50, 14
|
|
END
|
|
|
|
IDD_POLICY_LBADD DIALOG 6, 18, 260, 46
|
|
STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
|
|
CAPTION "Add Item"
|
|
FONT 8, "MS Shell Dlg"
|
|
BEGIN
|
|
LTEXT "&Enter the item to be added:", -1, 7, 7, 180, 8
|
|
EDITTEXT IDC_POLICY_VALUEDATA, 7, 19, 180, 12, ES_AUTOHSCROLL
|
|
PUSHBUTTON "OK", IDOK, 203, 7, 50, 14
|
|
PUSHBUTTON "Cancel", IDCANCEL, 203, 24, 50, 14
|
|
EDITTEXT IDC_POLICY_VALUENAME, 0,0,1,1, ES_AUTOHSCROLL, WS_DISABLED
|
|
END
|
|
|
|
IDD_POLICY_LBADD2 DIALOG 6, 18, 260, 77
|
|
STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
|
|
CAPTION "Add Item"
|
|
FONT 8, "MS Shell Dlg"
|
|
BEGIN
|
|
LTEXT "Enter the &name of the item to be added:", -1, 7, 7, 180, 8
|
|
EDITTEXT IDC_POLICY_VALUENAME, 7, 19, 180, 12, ES_AUTOHSCROLL
|
|
LTEXT "Enter the &value of the item to be added:", -1, 7, 42, 180, 8
|
|
EDITTEXT IDC_POLICY_VALUEDATA, 7, 54, 180, 12, ES_AUTOHSCROLL
|
|
PUSHBUTTON "OK", IDOK, 203, 7, 50, 14
|
|
PUSHBUTTON "Cancel", IDCANCEL, 203, 24, 50, 14
|
|
END
|
|
|
|
IDD_POLICY_SHOWLISTBOX DIALOGEX 6, 18, 377, 163
|
|
STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
|
|
CAPTION "Show Contents"
|
|
FONT 8, "MS Shell Dlg"
|
|
BEGIN
|
|
CONTROL "",IDC_POLICY_LISTBOX,"SysListView32",WS_TABSTOP | WS_VSCROLL |
|
|
LVS_REPORT | LVS_SORTASCENDING, 6, 18, 302, 140, WS_EX_CLIENTEDGE
|
|
LTEXT "",IDC_POLICY_TITLE, 6, 6, 171, 8
|
|
DEFPUSHBUTTON "OK", IDOK, 317, 7, 54, 14
|
|
PUSHBUTTON "Cancel", IDCANCEL, 317, 24, 54, 14
|
|
PUSHBUTTON "&Add...", IDC_POLICY_ADD, 317, 64, 54, 14
|
|
PUSHBUTTON "&Remove",IDC_POLICY_REMOVE, 317, 81, 54, 14
|
|
END
|
|
|
|
IDD_POLICY_FILTERING DIALOGEX 6, 18, 252, 213
|
|
STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
|
|
EXSTYLE WS_EX_CONTEXTHELP
|
|
CAPTION "Filtering"
|
|
FONT 8, "MS Shell Dlg"
|
|
BEGIN
|
|
ICON IDI_FILTER, IDC_FILTERING_ICON, 7, 7, 18, 20
|
|
LTEXT "These options allow you to filter the Administrative Templates policies.", IDC_STATIC,
|
|
46, 10, 195, 16
|
|
CONTROL "", -1, "Static", SS_BLACKFRAME | SS_SUNKEN, 7, 33, 238, 1
|
|
AUTOCHECKBOX "&Filter by Requirements information", IDC_SUPPORTEDOPTION, 7, 42, 230, 10
|
|
LTEXT "Select the &items to be displayed:", IDC_SUPPORTEDONTITLE, 20, 56 222, 8
|
|
CONTROL "",IDC_FILTERLIST,"SysListView32",WS_TABSTOP | WS_VSCROLL |
|
|
LVS_REPORT | LVS_SORTASCENDING | LVS_NOCOLUMNHEADER, 20, 66, 222, 70, WS_EX_CLIENTEDGE
|
|
PUSHBUTTON "&Select All", IDC_SELECTALL, 20, 139, 50, 14
|
|
PUSHBUTTON "&Deselect All", IDC_DESELECTALL, 75, 139, 50, 14
|
|
AUTOCHECKBOX "Only show &configured policy settings", IDC_SHOWCONFIG, 7, 163, 230, 10
|
|
AUTOCHECKBOX "Only show &policy settings that can be fully managed", IDC_SHOWPOLICIES, 7, 175, 230, 10
|
|
PUSHBUTTON "OK", IDOK, 71, 193, 50, 14
|
|
PUSHBUTTON "Cancel", IDCANCEL, 131, 193, 50, 14
|
|
|
|
END
|
|
|
|
IDD_ERROR_ADMTEMPLATES DIALOGEX 45, 48, 275, 141
|
|
STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU | WS_EX_TOPMOST
|
|
CAPTION "Administrative Templates"
|
|
FONT 8, "MS Shell Dlg"
|
|
BEGIN
|
|
ICON IDI_POLICY, IDC_ERROR_ICON, 8, 11, 18, 20
|
|
LTEXT "", IDC_ERRORTEXT, 40, 11, 165, 36
|
|
GROUPBOX "Details:", IDC_DETAILSBORDER, 8, 52, 262, 81
|
|
EDITTEXT IDC_DETAILSTEXT, 14, 62, 250, 65, ES_MULTILINE |
|
|
ES_AUTOVSCROLL | ES_READONLY | WS_VSCROLL | ES_AUTOHSCROLL | WS_HSCROLL
|
|
DEFPUSHBUTTON "&Close", IDCLOSE, 219, 9, 50, 14
|
|
END
|
|
|
|
|