mirror of
https://github.com/dockur/windows.git
synced 2025-10-27 03:15:49 +00:00
fix: Samba for user-mode networking (#1132)
This commit is contained in:
parent
f454fa7b34
commit
a3a2b3fb09
3 changed files with 18 additions and 0 deletions
|
|
@ -1491,6 +1491,12 @@ prepareInstall() {
|
|||
echo ""
|
||||
echo "Call Domain.MoveHere(LocalAdminADsPath, \"$username\")"
|
||||
echo ""
|
||||
echo "Set oFSO = CreateObject(\"Scripting.FileSystemObject\")"
|
||||
echo "Set oHosts = oFSO.GetFile(\"C:\Windows\System32\drivers\etc\hosts\")"
|
||||
echo "Set fileAPPEND = oFSO.OpenTextFile(\"C:\Windows\System32\drivers\etc\hosts\", 8, true)"
|
||||
echo "fileAPPEND.Write(\"${VM_NET_IP%.*}.1 host.lan\")"
|
||||
echo "fileAPPEND.Close()"
|
||||
echo ""
|
||||
} | unix2dos > "$dir/\$OEM\$/admin.vbs"
|
||||
|
||||
{ echo "[COMMANDS]"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue