You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@vcl.apache.org by ar...@apache.org on 2015/01/23 23:01:30 UTC

svn commit: r1654403 - /vcl/trunk/managementnode/lib/VCL/Module/OS/Windows.pm

Author: arkurth
Date: Fri Jan 23 22:01:30 2015
New Revision: 1654403

URL: http://svn.apache.org/r1654403
Log:
VCL-374
Moved call to apply_security_templates to immediately before set_password in Windows.pm::pre_capture to prevent errors related to password not meeting complexity requirements during base image captures.

Modified:
    vcl/trunk/managementnode/lib/VCL/Module/OS/Windows.pm

Modified: vcl/trunk/managementnode/lib/VCL/Module/OS/Windows.pm
URL: http://svn.apache.org/viewvc/vcl/trunk/managementnode/lib/VCL/Module/OS/Windows.pm?rev=1654403&r1=1654402&r2=1654403&view=diff
==============================================================================
--- vcl/trunk/managementnode/lib/VCL/Module/OS/Windows.pm (original)
+++ vcl/trunk/managementnode/lib/VCL/Module/OS/Windows.pm Fri Jan 23 22:01:30 2015
@@ -298,6 +298,18 @@ sub pre_capture {
 
 =item *
 
+ Apply Windows security templates
+
+=cut
+
+	# This find any .inf security template files configured for the OS and run secedit.exe to apply them
+	if (!$self->apply_security_templates()) {
+		notify($ERRORS{'WARNING'}, 0, "unable to apply security templates");
+		return 0;
+	}
+
+=item *
+
  Set Administrator account password to known value
 
 =cut
@@ -362,18 +374,6 @@ sub pre_capture {
 		return 0;
 	}
 
-=item *
-
- Apply Windows security templates
-
-=cut
-
-	# This find any .inf security template files configured for the OS and run secedit.exe to apply them
-	if (!$self->apply_security_templates()) {
-		notify($ERRORS{'WARNING'}, 0, "unable to apply security templates");
-		return 0;
-	}
-
 =item *
 
  Disable autoadminlogon before disabling the pagefile and rebooting