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.
196 lines
10 KiB
196 lines
10 KiB
#include <windows.h>
|
|
#include <ntverp.h>
|
|
#include "gpresult.h"
|
|
|
|
#define VER_FILETYPE VFT_APP
|
|
#define VER_FILESUBTYPE VFT2_UNKNOWN
|
|
#define VER_FILEDESCRIPTION_STR "Microsoft\256 Resultant Set of Policy Tool"
|
|
|
|
#define VER_INTERNALNAME_STR "gpresult.exe"
|
|
#define VER_ORIGINALFILENAME_STR "gpresult.exe"
|
|
|
|
#include <common.ver>
|
|
|
|
|
|
1 ICON policy.ico
|
|
|
|
|
|
STRINGTABLE
|
|
BEGIN
|
|
|
|
IDS_NEWLINE "\n"
|
|
IDS_2NEWLINE "\n\n"
|
|
IDS_LEGAL1 "Microsoft (R) Windows (R) 2000 Operating System Group Policy Result tool\n"
|
|
IDS_LEGAL2 "Copyright (C) Microsoft Corp. 1981-1999"
|
|
|
|
IDS_USAGE1 "\nThis tool displays the result of Group Policy for the current user and computer.\n"
|
|
IDS_USAGE2 "usage: gpresult [/V] [/S] [/C | /U] [/?]\n\n"
|
|
IDS_USAGE3 "\t/V\tVerbose mode\n"
|
|
IDS_USAGE4 "\t/S\tSuper verbose mode\n"
|
|
IDS_USAGE5 "\t/C\tComputer settings only\n"
|
|
IDS_USAGE6 "\t/U\tUser settings only\n"
|
|
|
|
IDS_CREATEINFO "\nCreated on %s at %s\n\n"
|
|
|
|
IDS_OSINFO "\nOperating System Information:\n\n"
|
|
IDS_OS_PRO "Operating System Type:\t\tProfessional\n"
|
|
IDS_OS_SRV "Operating System Type:\t\tServer\n"
|
|
IDS_OS_DC "Operating System Type:\t\tDomain Controller\n"
|
|
|
|
IDS_OS_BUILDNUMBER1 "Operating System Version:\t%d.%d.%d.%s\n"
|
|
IDS_OS_BUILDNUMBER2 "Operating System Version:\t%d.%d.%d\n"
|
|
|
|
IDS_TS_REMOTEADMIN "Terminal Server Mode:\t\tRemote Administration\n"
|
|
IDS_TS_APPSERVER "Terminal Server Mode:\t\tApplication Server\n"
|
|
IDS_TS_NONE "Terminal Server Mode:\t\tNone\n"
|
|
IDS_TS_NOTSUPPORTED "Terminal Server Mode:\t\tNot supported\n"
|
|
|
|
IDS_LINE "###############################################################\n"
|
|
IDS_LINE2 "\n\n===============================================================\n"
|
|
IDS_COMPRESULTS1 " Computer Group Policy results for:\n\n"
|
|
IDS_COMPRESULTS2 " %s\n\n"
|
|
IDS_DOMAINNAME " Domain Name:\t\t%s\n"
|
|
IDS_W2KDOMAIN " Domain Type:\t\tWindows 2000\n"
|
|
IDS_SITENAME " Site Name:\t\t%s\n"
|
|
IDS_LOCALCOMP " Domain Type:\t\tNone (Local computer)\n"
|
|
IDS_NT4DOMAIN " Domain Type:\t\tWindows NT v4\n"
|
|
|
|
IDS_USERRESULTS1 " User Group Policy results for:\n\n"
|
|
IDS_USERRESULTS2 " %s\n\n"
|
|
IDS_LOCALUSER " Domain Type:\t\tNone (Local user account)\n"
|
|
|
|
IDS_LASTTIME "Last time Group Policy was applied: %s at %s\n"
|
|
IDS_DCNAME "Group Policy was applied from: %s\n"
|
|
|
|
IDS_COMPREGPOLICY "\n\nThe computer received ""Registry"" settings from these GPOs:\n\n"
|
|
IDS_USERREGPOLICY "\n\nThe user received ""Registry"" settings from these GPOs:\n\n"
|
|
|
|
IDS_COMPPOLICY "The computer received ""%s"" settings from these GPOs:\n\n"
|
|
IDS_USERPOLICY "The user received ""%s"" settings from these GPOs:\n\n"
|
|
|
|
IDS_GPONAME "\t%s\n"
|
|
|
|
IDS_SECEDIT "\n\tRun the Security Configuration Editor for more information.\n"
|
|
IDS_NOINFO "\n\tAdditional information is not available for this type of policy setting.\n"
|
|
|
|
IDS_ROAMINGPROFILE " Roaming profile:\t%s\n"
|
|
IDS_NOROAMINGPROFILE " Roaming profile:\t(None)\n"
|
|
IDS_LOCALPROFILE " Local profile:\t%s\n"
|
|
IDS_NOLOCALPROFILE " Local profile:\t(None)\n"
|
|
|
|
IDS_SECURITYGROUPS1 "\n The user is a member of the following security groups:\n\n"
|
|
IDS_SECURITYGROUPS2 "\n The computer is a member of the following security groups:\n\n"
|
|
IDS_GROUPNAME "\t%s\\%s\n"
|
|
|
|
IDS_SECURITYPRIVILEGES "\n The user has the following security privileges:\n\n"
|
|
|
|
IDS_REVISIONNUMBER1 "\t Revision Number:\t%d (Active Directory) %d (Sysvol)\n"
|
|
IDS_REVISIONNUMBER2 "\t Revision Number:\t%d\n"
|
|
IDS_UNIQUENAME "\t Unique Name:\t%s\n"
|
|
IDS_DOMAINNAME2 "\t Domain Name:\t%s\n"
|
|
|
|
IDS_LOCALLINK "\t Linked to:\t\tLocal computer\n"
|
|
IDS_SITELINK "\t Linked to:\t\tSite (%s)\n"
|
|
IDS_DOMAINLINK "\t Linked to:\t\tDomain (%s)\n"
|
|
IDS_OULINK "\t Linked to:\t\tOrganizational Unit (%s)\n"
|
|
IDS_UNKNOWNLINK "\t Linked to:\t\tUnknown\n"
|
|
|
|
IDS_FOLDERREDIR "\t%s is redirected to %s.\n"
|
|
|
|
IDS_IPSEC_NAME "\tPolicy Name:\t%s\n"
|
|
IDS_IPSEC_DESC "\tDescription:\t%s\n"
|
|
IDS_IPSEC_PATH "\tPolicy Path:\t%s\n"
|
|
|
|
IDS_DQ_ENABLED1 "\tDisk Quotas enabled:\t\t\t\tYes\n"
|
|
IDS_DQ_ENABLED2 "\tDisk Quotas enabled:\t\t\t\tNo\n"
|
|
IDS_DQ_ENFORCED1 "\tDisk Quotas enforced:\t\t\t\tYes\n"
|
|
IDS_DQ_ENFORCED2 "\tDisk Quotas enforced:\t\t\t\tNo\n"
|
|
IDS_DQ_LIMIT1 "\tQuota limit:\t\t\t\t\t%u "
|
|
IDS_DQ_LIMIT2 "\tQuota limit:\t\t\t\t\tNo limit\n"
|
|
IDS_DQ_KB "KB\n"
|
|
IDS_DQ_MB "MB\n"
|
|
IDS_DQ_GB "GB\n"
|
|
IDS_DQ_TB "TB\n"
|
|
IDS_DQ_PB "PB\n"
|
|
IDS_DQ_EB "EB\n"
|
|
IDS_DQ_WARNING1 "\tWarning level:\t\t\t\t\t%u "
|
|
IDS_DQ_WARNING2 "\tWarning level:\t\t\t\t\tNo limit\n"
|
|
IDS_DQ_LIMIT_EXCEED1 "\tLog event when quota limit exceeded:\t\tYes\n"
|
|
IDS_DQ_LIMIT_EXCEED2 "\tLog event when quota limit exceeded:\t\tNo\n"
|
|
IDS_DQ_LIMIT_EXCEED3 "\tLog event when quota warning level exceeded:\tYes\n"
|
|
IDS_DQ_LIMIT_EXCEED4 "\tLog event when quota warning level exceeded:\tNo\n"
|
|
IDS_DQ_REMOVABLE1 "\tApply policy to removable media:\t\tYes\n"
|
|
IDS_DQ_REMOVABLE2 "\tApply policy to removable media:\t\tNo\n"
|
|
|
|
IDS_SCRIPTS_TITLE "\n\t%s: %s\n"
|
|
IDS_SCRIPTS_ENTRY "\t %s %s\n"
|
|
|
|
IDS_APPMGMT_TITLE1 "\n\n\tThe computer has been assigned the following applications:\n"
|
|
IDS_APPMGMT_TITLE2 "\n\n\tThe user has been assigned the following applications:\n"
|
|
IDS_APPMGMT_NAME "\n\t %s\n"
|
|
IDS_APPMGMT_GPONAME "\t\tGPO Name:\t%s\n"
|
|
IDS_APPMGMT_ORPHAN "\t\tRemoval Option:\tApplication is orphaned when policy is removed\n"
|
|
IDS_APPMGMT_UNINSTALL "\t\tRemoval Option:\tApplication is uninstalled when policy is removed\n"
|
|
IDS_APPMGMT_NONE "\n\t (None)\n"
|
|
IDS_APPMGMT_ARP1 "\n\n\tTo view the applications available in Add/Remove Programs, use the /S switch.\n"
|
|
IDS_APPMGMT_ARP2 "\n\n\tThe user has the following applications available in Add/Remove Programs:\n"
|
|
IDS_APPMGMT_TITLE3 "\n\n\tThe user has installed the following published applications:\n"
|
|
IDS_APPMGMT_STATE1 "\t\tInstalled:\tYes\n"
|
|
IDS_APPMGMT_STATE2 "\t\tInstalled:\tNo\n"
|
|
|
|
IDS_REGVIEW_PREF1 "\t +++++++ Warning! The next registry setting is not a true policy setting\n"
|
|
IDS_REGVIEW_PREF2 "\t +++++++ and will be left in the registry when the GPO\n"
|
|
IDS_REGVIEW_PREF3 "\t +++++++ that created it is no longer applied.\n"
|
|
IDS_REGVIEW_GPONAME "\n\n\tThe following settings were applied from: %s\n"
|
|
IDS_REGVIEW_KEYNAME "\n\t KeyName:\t%s\n"
|
|
IDS_REGVIEW_VALUENAME "\t ValueName:\t%s\n"
|
|
IDS_REGVIEW_DWORD "\t ValueType:\tREG_DWORD\n"
|
|
IDS_REGVIEW_DWORDDATA "\t Value:\t0x%08x\n"
|
|
IDS_REGVIEW_SZ "\t ValueType:\tREG_SZ\n"
|
|
IDS_REGVIEW_SZDATA "\t Value:\t%s\n"
|
|
IDS_REGVIEW_EXPANDSZ "\t ValueType:\tREG_EXPAND_SZ\n"
|
|
IDS_REGVIEW_MULTISZ "\t ValueType:\tREG_MULTI_SZ\n"
|
|
IDS_REGVIEW_MULTIDATA1 "\t Value:\n\t\t"
|
|
IDS_REGVIEW_MULTIDATA2 "%s\n\t\t"
|
|
IDS_REGVIEW_BINARY "\t ValueType:\tREG_BINARY\n"
|
|
IDS_REGVIEW_BINARYDATA1 "\t Value:\n\n\t\t "
|
|
IDS_REGVIEW_BINARYFRMT "%02x "
|
|
IDS_REGVIEW_NEXTLINE "\n\t\t "
|
|
IDS_REGVIEW_SPACE " "
|
|
IDS_REGVIEW_STRING1 " %S"
|
|
IDS_REGVIEW_STRING2 " %S\n"
|
|
IDS_REGVIEW_VERBOSE "\t Value:\tBinary data. Use the /S switch to display.\n"
|
|
IDS_REGVIEW_NONE "\t ValueType:\tREG_NONE\n"
|
|
IDS_REGVIEW_NOVALUES "\t Value:\tThis key contains no values\n"
|
|
IDS_REGVIEW_UNKNOWN "\t ValueType:\tUnknown\n"
|
|
IDS_REGVIEW_UNKNOWNSIZE "\t ValueSize:\t%d\n"
|
|
|
|
|
|
IDS_OPENHISTORYFAILED "Failed to open key with %d\n"
|
|
IDS_QUERYKEYINFOFAILED "Failed to query key info with %d\n"
|
|
IDS_OPENPROCESSTOKEN "Failed to open the process token with %d\n."
|
|
IDS_QUERYSID "Failed to query the user's sid from the token.\n"
|
|
IDS_QUERYVALUEFAILED "Failed to query registry value with %d.\n"
|
|
IDS_MEMALLOCFAILED "Failed to allocate memory with %d.\n"
|
|
IDS_TOKENINFO "Failed to get the token information with %d.\n"
|
|
IDS_LOOKUPACCOUNT "LookupAccountSid failed with %d.\n"
|
|
IDS_PRIVSIZE "Failed to get the privileges buffer size.\n"
|
|
IDS_LOOKUPFAILED "LookupPrivilegeName failed with %d.\n"
|
|
IDS_GETFOLDERPATH "SHGetFolderPath failed.\n"
|
|
IDS_GETPRIVATEPROFILE "GetPrivateProfileSectionNames failed.\n"
|
|
|
|
IDS_CREATEFILE "CreateFile failed with %d."
|
|
IDS_INVALIDSIGNATURE1 "Failed to read signature with %d"
|
|
IDS_INVALIDSIGNATURE2 "Invalid file signature"
|
|
IDS_VERSIONNUMBER1 "Failed to read version number with %d"
|
|
IDS_VERSIONNUMBER2 "Invalid file version"
|
|
IDS_FAILEDFIRSTCHAR "Failed to read first character with %d"
|
|
IDS_FAILEDKEYNAMECHAR "Failed to read keyname character with %d"
|
|
IDS_FAILEDSEMICOLON "Failed to read semicolon character with %d"
|
|
IDS_FAILEDVALUENAME "Failed to read valuename with %d"
|
|
IDS_FAILEDTYPE "Failed to read type with %d"
|
|
IDS_FAILEDDATALENGTH "Failed to read data length with %d"
|
|
IDS_FAILEDDATA "Failed to read data with %d"
|
|
IDS_CLOSINGBRACKET1 "Failed to skip closing bracket with %d"
|
|
IDS_CLOSINGBRACKET2 "Expected to find ], but found %c"
|
|
END
|