diff --git a/xCAT-server/lib/perl/xCAT/Template.pm b/xCAT-server/lib/perl/xCAT/Template.pm
index 3fe022ece..6151ddbd6 100644
--- a/xCAT-server/lib/perl/xCAT/Template.pm
+++ b/xCAT-server/lib/perl/xCAT/Template.pm
@@ -265,12 +265,10 @@ sub subvars {
sub windows_disable_null_admin {
#in the event where windows_account_data has not set an administrator user, we explicitly disable the administrator user
unless ($localadminenabled) {
- return '
-
- 100
- cmd /c %systemroot%\system32\net.exe user Administrator /active:no
-
-';
+ return "\r
+ 100\r
+ cmd /c %systemroot%\\system32\\net.exe user Administrator /active:no\r
+ ";
}
return "";
}
diff --git a/xCAT-server/share/xcat/install/windows/datacenter.win2012.x86_64.tmpl b/xCAT-server/share/xcat/install/windows/datacenter.win2012.x86_64.tmpl
index 9f6a45654..4df730aed 100644
--- a/xCAT-server/share/xcat/install/windows/datacenter.win2012.x86_64.tmpl
+++ b/xCAT-server/share/xcat/install/windows/datacenter.win2012.x86_64.tmpl
@@ -33,7 +33,7 @@
0
- 3
+ 1