Bonno Bloksma
2009-11-27 15:10:42 UTC
Hi,
Q Why does Windows XP refer to the old location as the X: drive when the logon script uses the new
location
This week transfered a directory form server A to server B. Changed the login scrip (domain policy,
user logion script) to reflect the new location.
Did not delete the old location completely as part of the files on that share are still in use.
The script part I use is quite simple:
----------<quote>---------------------------------
' MapX.vbs - Windows Logon Script
[....]
Set WSHNetwork = WScript.CreateObject("WScript.Network")
Set objADSysInfo = CreateObject("ADSystemInfo")
' Select is case sensitive in de tag
Select Case objADSysInfo.SiteName
[...]
Case "Rotterdam"
WSHNetwork.MapNetworkDrive "X:", "\\TioRtm2k8.staf.tio.nl\Applicaties"
Case Else
WScript.Echo "Site naam: " & objADSysInfo.SiteName & " is ONBEKEND"
End Select
----------<quote>---------------------------------
PCs have been logging off and on, been shut down an started but many still refer to the old location
as being the X: drive. The Map line used to be:
WSHNetwork.MapNetworkDrive "X:", "\\TioRtm2k3.staf.tio.nl\Applicaties"
Software on those PCs is now claiming it cannot find the files on X:\Dir\Dir\.... The sollution
seems to be to have the use disconnect the old X: drive, log off and then log on.
Funny thing is, this does not happen to all users, does not happen on alle PCs
This is the second time this has happend to these users. The first time I thought I had done
something wrong in the logon script and made the mapping a permanent mapping by mistake. The first
script was a site policy script which I later modified into a user script that determined the site.
After that change many/all users got errors executing the news script claiming there was a X: drive
which could not be changed by the script.
However, this time I am 100% sure of the previous mapping line in the script and it is NOT telling
Windows XP to make it a permanent mapping. So why does Windows XP keer refering to the old location
as the X: drive?
Bonno Bloksma
Q Why does Windows XP refer to the old location as the X: drive when the logon script uses the new
location
This week transfered a directory form server A to server B. Changed the login scrip (domain policy,
user logion script) to reflect the new location.
Did not delete the old location completely as part of the files on that share are still in use.
The script part I use is quite simple:
----------<quote>---------------------------------
' MapX.vbs - Windows Logon Script
[....]
Set WSHNetwork = WScript.CreateObject("WScript.Network")
Set objADSysInfo = CreateObject("ADSystemInfo")
' Select is case sensitive in de tag
Select Case objADSysInfo.SiteName
[...]
Case "Rotterdam"
WSHNetwork.MapNetworkDrive "X:", "\\TioRtm2k8.staf.tio.nl\Applicaties"
Case Else
WScript.Echo "Site naam: " & objADSysInfo.SiteName & " is ONBEKEND"
End Select
----------<quote>---------------------------------
PCs have been logging off and on, been shut down an started but many still refer to the old location
as being the X: drive. The Map line used to be:
WSHNetwork.MapNetworkDrive "X:", "\\TioRtm2k3.staf.tio.nl\Applicaties"
Software on those PCs is now claiming it cannot find the files on X:\Dir\Dir\.... The sollution
seems to be to have the use disconnect the old X: drive, log off and then log on.
Funny thing is, this does not happen to all users, does not happen on alle PCs
This is the second time this has happend to these users. The first time I thought I had done
something wrong in the logon script and made the mapping a permanent mapping by mistake. The first
script was a site policy script which I later modified into a user script that determined the site.
After that change many/all users got errors executing the news script claiming there was a X: drive
which could not be changed by the script.
However, this time I am 100% sure of the previous mapping line in the script and it is NOT telling
Windows XP to make it a permanent mapping. So why does Windows XP keer refering to the old location
as the X: drive?
Bonno Bloksma