mirror of
https://github.com/dockur/windows.git
synced 2025-10-27 03:15:49 +00:00
feat: Remove entry from hosts file (#1456)
This commit is contained in:
parent
588242b175
commit
c04851bbd4
41 changed files with 39 additions and 261 deletions
|
|
@ -1584,9 +1584,6 @@ prepareInstall() {
|
|||
[ -n "$PASSWORD" ] && password=$(echo "$PASSWORD" | sed 's/"//g')
|
||||
[ -z "$password" ] && password="admin"
|
||||
|
||||
local ip="20.20.20.1"
|
||||
[ -n "${VM_NET_IP:-}" ] && ip="${VM_NET_IP%.*}.1"
|
||||
|
||||
find "$target" -maxdepth 1 -type f -iname winnt.sif -exec rm {} \;
|
||||
|
||||
{ echo "[Data]"
|
||||
|
|
@ -1769,14 +1766,6 @@ prepareInstall() {
|
|||
echo ""
|
||||
echo "Call Domain.MoveHere(LocalAdminADsPath, \"$username\")"
|
||||
echo ""
|
||||
echo "With (CreateObject(\"Scripting.FileSystemObject\"))"
|
||||
echo " SysRoot = WshShell.ExpandEnvironmentStrings(\"%SystemRoot%\")"
|
||||
echo " Set oFile = .OpenTextFile(SysRoot & \"\system32\drivers\etc\hosts\", 8, true)"
|
||||
echo " oFile.Write(\"$ip host.lan\")"
|
||||
echo " oFile.Close()"
|
||||
echo " Set oFile = Nothing"
|
||||
echo "End With"
|
||||
echo ""
|
||||
echo "Set oLink = WshShell.CreateShortcut(WshShell.ExpandEnvironmentStrings(\"%userprofile%\\Desktop\\Shared.lnk\"))"
|
||||
echo "With oLink"
|
||||
echo " .TargetPath = \"\\\\host.lan\\Data\""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue