diff --git a/xCAT-server/share/xcat/netboot/windows/fixupunattend.vbs b/xCAT-server/share/xcat/netboot/windows/fixupunattend.vbs index 6ebcfc105..3080361e4 100644 --- a/xCAT-server/share/xcat/netboot/windows/fixupunattend.vbs +++ b/xCAT-server/share/xcat/netboot/windows/fixupunattend.vbs @@ -15,6 +15,14 @@ Do While Not netuse.StdOut.AtEndOfStream Loop instdrv = myshell.ExpandEnvironmentStrings ( "%INSTALLTO%" ) if InStr(instdrv,"%INSTALLTO%") Then + Set myenv=wshShell.Environment("User") + instdrv = myenv("INSTALLTO") +End If +if instdrv = "" Then + Set myenv=wshShell.Environment("System") + instdrv = myenv("INSTALLTO") +End If +if instdrv = "" Then instdrv = "0" End If