diff --git a/xCAT-server/lib/perl/xCAT/Template.pm b/xCAT-server/lib/perl/xCAT/Template.pm
index 6151ddbd6..f9d13db0c 100644
--- a/xCAT-server/lib/perl/xCAT/Template.pm
+++ b/xCAT-server/lib/perl/xCAT/Template.pm
@@ -281,8 +281,8 @@ sub windows_account_data {
if ($passtab) {
my $passent = $passtab->getAttribs({key=>"system",username=>"Administrator"},['password']);
if ($passent and $passent->{password}) {
- $useraccountxml="\n".$passent->{password}."\ntrue\n\n";
- $useraccountxml.="\n";
+ $useraccountxml="\r\n".$passent->{password}."\r\ntrue\r\n\r\n";
+ $useraccountxml.="\r\n";
$localadminenabled=1;
}
}
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 4df730aed..10c3269aa 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
@@ -74,10 +74,7 @@
-
- #TABLE:passwd:key=system,username=Administrator:password#
- true
-
+ #WINACCOUNTDATA#
diff --git a/xCAT-server/share/xcat/install/windows/datacenter.win2012.x86_64.tmpl.uefi b/xCAT-server/share/xcat/install/windows/datacenter.win2012.x86_64.tmpl.uefi
index 8c7fcbb8b..d203e99dc 100644
--- a/xCAT-server/share/xcat/install/windows/datacenter.win2012.x86_64.tmpl.uefi
+++ b/xCAT-server/share/xcat/install/windows/datacenter.win2012.x86_64.tmpl.uefi
@@ -86,10 +86,7 @@
-
- #TABLE:passwd:key=system,username=Administrator:password#
- true
-
+ #WINACCOUNTDATA#
diff --git a/xCAT-server/share/xcat/install/windows/hypervisor.hyperv2012.x86_64.tmpl b/xCAT-server/share/xcat/install/windows/hypervisor.hyperv2012.x86_64.tmpl
index 5503e9688..a0049a129 100644
--- a/xCAT-server/share/xcat/install/windows/hypervisor.hyperv2012.x86_64.tmpl
+++ b/xCAT-server/share/xcat/install/windows/hypervisor.hyperv2012.x86_64.tmpl
@@ -73,10 +73,7 @@
-
- #TABLE:passwd:key=system,username=Administrator:password#
- true
-
+ #WINACCOUNTDATA#
diff --git a/xCAT-server/share/xcat/install/windows/hypervisor.hyperv2012.x86_64.tmpl.uefi b/xCAT-server/share/xcat/install/windows/hypervisor.hyperv2012.x86_64.tmpl.uefi
index c483f6b7e..0f7325dbb 100644
--- a/xCAT-server/share/xcat/install/windows/hypervisor.hyperv2012.x86_64.tmpl.uefi
+++ b/xCAT-server/share/xcat/install/windows/hypervisor.hyperv2012.x86_64.tmpl.uefi
@@ -83,10 +83,7 @@
-
- #TABLE:passwd:key=system,username=Administrator:password#
- true
-
+ #WINACCOUNTDATA#
diff --git a/xCAT-server/share/xcat/install/windows/standard.win2012.x86_64.tmpl b/xCAT-server/share/xcat/install/windows/standard.win2012.x86_64.tmpl
index b4acfd446..e9ed7bf3c 100644
--- a/xCAT-server/share/xcat/install/windows/standard.win2012.x86_64.tmpl
+++ b/xCAT-server/share/xcat/install/windows/standard.win2012.x86_64.tmpl
@@ -74,10 +74,7 @@
-
- #TABLE:passwd:key=system,username=Administrator:password#
- true
-
+ #WINACCOUNTDATA#
diff --git a/xCAT-server/share/xcat/install/windows/standard.win2012.x86_64.tmpl.uefi b/xCAT-server/share/xcat/install/windows/standard.win2012.x86_64.tmpl.uefi
index ba8a33645..34e4737a8 100644
--- a/xCAT-server/share/xcat/install/windows/standard.win2012.x86_64.tmpl.uefi
+++ b/xCAT-server/share/xcat/install/windows/standard.win2012.x86_64.tmpl.uefi
@@ -84,10 +84,7 @@
-
- #TABLE:passwd:key=system,username=Administrator:password#
- true
-
+ #WINACCOUNTDATA#