Source code of Windows XP (NT5)
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.

113 lines
7.8 KiB

  1. #include <windows.h>
  2. #include <ntverp.h>
  3. #include "refgp.h"
  4. #define VER_FILETYPE VFT_APP
  5. #define VER_FILESUBTYPE VFT2_UNKNOWN
  6. #define VER_FILEDESCRIPTION_STR "Microsoft\256 Group Policy Refresh Utility"
  7. #define VER_INTERNALNAME_STR "GPUpdate.exe"
  8. #define VER_ORIGINALFILENAME_STR "GPUpdate.exe"
  9. #include <common.ver>
  10. // All messages need to be less than 200 wchars. The remaining chars will be truncated.
  11. STRINGTABLE
  12. BEGIN
  13. IDS_USAGE1 VER_PRODUCTNAME_STR " Group Policy Refresh Utility v" VER_PRODUCTVERSION_STRING "\r\n"
  14. IDS_USAGE2 VER_LEGALCOPYRIGHT_STR "\r\n\r\n"
  15. IDS_USAGE3 "Description: Refreshes Group Policies settings.\r\n\r\n"
  16. IDS_USAGE4 "Syntax: GPUpdate [/Target:{Computer | User}] [/Force] [/Wait:<value>]\r\n"
  17. IDS_USAGE5 " [/Logoff] [/Boot] [/Sync] \r\n\r\n"
  18. IDS_USAGE6 "Parameters:\r\n\r\n"
  19. IDS_USAGE7 "Value Description\r\n"
  20. IDS_USAGE8 "/Target:{Computer | User} Specifies that only User or only Computer\r\n"
  21. IDS_USAGE9 " policy settings are refreshed. By default,\r\n"
  22. IDS_USAGE10 " both User and Computer policy settings are\r\n"
  23. IDS_USAGE11 " refreshed.\r\n\r\n"
  24. IDS_USAGE12 "/Force Reapplies all policy settings. By default,\r\n"
  25. IDS_USAGE13 " only policy settings that have changed are\r\n"
  26. IDS_USAGE14 " applied.\r\n\r\n"
  27. IDS_USAGE15 "/Wait:{value} Sets the number of seconds to wait for policy\r\n"
  28. IDS_USAGE16 " processing to finish. The default is 600\r\n"
  29. IDS_USAGE17 " seconds. The value '0' means not to wait.\r\n"
  30. IDS_USAGE18 " The value '-1' means to wait indefinitely.\r\n"
  31. IDS_USAGE19 " When the time limit is exceeded, the command\r\n"
  32. IDS_USAGE20 " prompt returns, but policy processing\r\n"
  33. IDS_USAGE21 " continues.\r\n\r\n"
  34. IDS_USAGE22 "/Logoff Causes a logoff after the Group Policy settings\r\n"
  35. IDS_USAGE23 " have been refreshed. This is required for\r\n"
  36. IDS_USAGE24 " those Group Policy client-side extensions\r\n"
  37. IDS_USAGE25 " that do not process policy on a background\r\n"
  38. IDS_USAGE26 " refresh cycle but do process policy when a\r\n"
  39. IDS_USAGE27 " user logs on. Examples include user-targeted\r\n"
  40. IDS_USAGE28 " Software Installation and Folder Redirection.\r\n"
  41. IDS_USAGE29 " This option has no effect if there are no\r\n"
  42. IDS_USAGE30 " extensions called that require a logoff.\r\n\r\n"
  43. IDS_USAGE31 "/Boot Causes a reboot after the Group Policy settings\r\n"
  44. IDS_USAGE32 " are refreshed. This is required for those\r\n"
  45. IDS_USAGE33 " Group Policy client-side extensions that do\r\n"
  46. IDS_USAGE34 " not process policy on a background refresh cycle\r\n"
  47. IDS_USAGE35 " but do process policy at computer startup.\r\n"
  48. IDS_USAGE36 " Examples include computer-targeted Software\r\n"
  49. IDS_USAGE37 " Installation. This option has no effect if\r\n"
  50. IDS_USAGE38 " there are no extensions called that require\r\n"
  51. IDS_USAGE39 " a reboot.\r\n\r\n"
  52. IDS_USAGE40 "/Sync Causes the next foreground policy application to\r\n"
  53. IDS_USAGE41 " be done synchronously. Foreground policy\r\n"
  54. IDS_USAGE42 " applications occur at computer boot and user\r\n"
  55. IDS_USAGE43 " logon. You can specify this for the user,\r\n"
  56. IDS_USAGE44 " computer or both using the /Target parameter.\r\n"
  57. IDS_USAGE45 " The /Force and /Wait parameters will be ignored\r\n"
  58. IDS_USAGE46 " if specified.\r\n\r\n"
  59. IDS_TARGET "/Target:"
  60. IDS_USER "User"
  61. IDS_MACHINE "Computer"
  62. IDS_BOTH "Both"
  63. IDS_TIME "/Wait:"
  64. IDS_FORCE "/Force"
  65. IDS_LOGOFF "/Logoff"
  66. IDS_BOOT "/Boot"
  67. IDS_SYNC "/Sync"
  68. IDS_REFRESH_LAUNCHED "Refreshing Policy...\r\n\r\n"
  69. IDS_REFRESH_FAILED "Failed to refresh %s Policy. Error - %s Exiting...\r\n"
  70. IDS_POLWAIT_FAILED "Failed to wait for %s Policy Completion. Error - %s Exiting...\r\n"
  71. IDS_POLWAIT_TIMEDOUT "%s Policy Refresh has not completed in the expected time. Exiting...\r\n"
  72. IDS_REFRESH_BACKGND_SUCCESS "%s Policy Refresh has completed.\r\n"
  73. IDS_REFRESH_BACKGND_TRIGGERED "%s Policy Refresh has been successfully triggered.\r\n"
  74. IDS_NEED_LOGOFF "Certain User policies are enabled that can only run during logon. \r\n"
  75. IDS_NEED_REBOOT "Certain Computer policies are enabled that can only run during startup. \r\n"
  76. IDS_NEED_LOGOFF_SYNC "For synchronous foreground user policy application, a relogon is required. \r\n"
  77. IDS_NEED_REBOOT_SYNC "For synchronous foreground computer policy application, a reboot is required. \r\n"
  78. IDS_SPACE "\r\n"
  79. IDS_PROMPT_REBOOT "OK to Reboot?. (Y/N)"
  80. IDS_PROMPT_LOGOFF "OK to logoff?. (Y/N)"
  81. IDS_YES "Y"
  82. IDS_NO "N"
  83. // the above 2 need to be single characters.
  84. IDS_REFRESH_POLICY_FAILED "Failed to refresh policy. Error - %s Exiting..\r\n"
  85. IDS_SET_MODE_FAILED "Failed to set the policy mode. Error - %s Exiting..\r\n"
  86. IDS_COULDNT_REBOOT "For the operation to be completed, a Reboot is required. Couldn't reboot the computer. Error - %s Please reboot.\r\n"
  87. IDS_COULDNT_LOGOFF "For the operation to be completed, the user needs to logoff and relogon. Couldn't log the user off. Error - %s. Please logoff..\r\n"
  88. IDS_NOTIFY_MACHINE_FG "Rebooting the computer...\r\n"
  89. IDS_NOTIFY_USER_FG "Logging off the user.\r\n"
  90. IDS_REBOOTING "..\r\n"
  91. IDS_LOGGING_OFF "..\r\n"
  92. IDS_OUT_OF_MEMORY "Failed to allocate memory before processing. Exiting..\r\n"
  93. END