mirror of
https://github.com/dockur/windows.git
synced 2025-10-27 19:35:49 +00:00
fix: Windows XP configuration
This commit is contained in:
parent
08c055bc31
commit
898cb33acc
1 changed files with 3 additions and 10 deletions
|
|
@ -861,19 +861,12 @@ prepareXP() {
|
|||
echo "\"AutoAdminLogon\"=\"1\""
|
||||
} | unix2dos > "$dir/\$OEM\$/install.reg"
|
||||
|
||||
{ echo "On Error Resume Next"
|
||||
echo ""
|
||||
echo "strComputer = \".\""
|
||||
echo ""
|
||||
echo "Set WshShell = WScript.CreateObject(\"WScript.Shell\")"
|
||||
{ echo "Set WshShell = WScript.CreateObject(\"WScript.Shell\")"
|
||||
echo "Set WshNetwork = WScript.CreateObject(\"WScript.Network\")"
|
||||
echo "Set oReg=GetObject(\"winmgmts:{impersonationLevel=impersonate}!\\\\\" & \".\" & \"\root\default:StdRegProv\")"
|
||||
echo ""
|
||||
echo "strComputer = WshNetwork.ComputerName"
|
||||
echo ""
|
||||
echo "'Rename Administrator"
|
||||
echo "Set oMachine = GetObject(\"WinNT://\" & strComputer)"
|
||||
echo "Set oInfoUser = GetObject(\"WinNT://\" & strComputer & \"/Administrator,user\")"
|
||||
echo "Set oMachine = GetObject(\"WinNT://\" & WshNetwork.ComputerName)"
|
||||
echo "Set oInfoUser = GetObject(\"WinNT://\" & WshNetwork.ComputerName & \"/Administrator,user\")"
|
||||
echo "set oUser = oMachine.MoveHere(oInfoUser.ADsPath,\"Docker\")"
|
||||
} | unix2dos > "$dir/\$OEM\$/admin.vbs"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue