Can a script log a user off and then log on under a different user

Can a script log a user off and then log on under a different user

Post by RGFuaWVsV2 » Sun, 16 Sep 2007 01:58:08


Could you not just pick up a cheap NIC and install it into the terminal?


--
Dan Walters
 
 
 

Can a script log a user off and then log on under a different user

Post by auxvivresp » Sun, 16 Sep 2007 07:01:24

Unfortnately this is not a typical workstation. It is a touchscreen
terminal with an odd form factor, and its integrated PCI NIC is no
longer functioning. I have not been able to source a replacement part
so I opted for the USB NIC as a workaround.

I've spent most of today searching online. There seem to be some
reports of similar problems with wireless ethernet adapters and
http://www.yqcomputer.com/
description of the problem in the article summary but it fails to
provide a specific solution to my problem. I have tried variously
making the Netlogon, Lanmanworkstation, and TCPIP services dependent
on the USB200M driver in separate tests, to no avail. Checking the
bootlog reveals that the NIC driver is loaded in the same order in
each of these tests.

The only way I've yet been able to make the driver load sooner in the
boot process was by changing the registry value

HKEY_LOCAL_MACHINE\
SYSTEM\
CurrentControlSet\
Services\
USB2000M\Start

I changed it from a value of 3 (Manual) to 0 (SERVICE_BOOT_START) as
described at http://www.yqcomputer.com/
revealed that the driver was loaded much sooner at bootup but this did
not seem to affect things as the problem retrieving the roaming user
profile persisted.

I've reviewed the workstation's event log and tcpip reports that the
USB NIC has connected to the network but 16 seconds later, netlogon
reports that there are no domain controllers for the network.
Curiously, this tcpip event message appears AFTER the netlogon error
in the event list but is timestamped as having occured 16 seconds
BEFORE
than the netlogon error. This leads me to believe that while the
detection/loading of the USB NIC may have begun before the reported
netlogon error, is is only after the error that this NIC detection/
loading process completes and writes the event to the event log. Am I
on to something here? Any thoughts?

On Sep 14, 12:58 pm, DanielWalters6

 
 
 

Can a script log a user off and then log on under a different user

Post by auxvivresp » Wed, 19 Sep 2007 02:56:34

Just an update: I may have found a workable solution to my problem.
I found a discussion of a similar issue at
http://www.yqcomputer.com/
thread suggests, I disabled DHCP on this particular workstation,
assigned a static IP address and I now have no problems retrieving a
roaming user profile or mapping network drives. Having to switch to a
static IP address is hardly an ideal, nor an intuitive solution. I
still think there's a better way to have the computer wait for the NIC
drivers to load before attempting to log onto the network, but at this
point I'll take what I can get.
 
 
 

Can a script log a user off and then log on under a different user

Post by Paul Baker » Wed, 19 Sep 2007 22:08:45

Several potential solutions have been given, though I do see they lack
detail. I am not certain you tried each of them in detail and provided
feedback?

It was also suggested that you are not posting to an appropriate newsgroup
for what you are trying to achieve. Upon analysis, this turns out to be more
a question about drivers and services, or perhaps networking, than it is
about scripting.

Therefore, you might get the best quality answer in one of these newsgroups:

microsoft.public.development.device.drivers
microsoft.public.win32.programmer.networks

Paul
 
 
 

Can a script log a user off and then log on under a different user

Post by auxvivresp » Thu, 20 Sep 2007 04:10:38

Hi Paul,

I mainly played around with the device driver load order and modifying
the service dependencies. I couldn't come up with a combination of
registry settings that provided a fix although I may have been missing
something. This thread has indeed veered away from scripting. I have
since begun a similar thread on microsoft.public.win2000.general and
microsoft.public.win2000.networking but didn't have much luck there.
The groups you've suggested may bear more fruit. In any event I've
switched the this terminal to a static IP address and it boots
smoothly. Network configuration via DHCP seemed to be over-
complicating things.

On Sep 18, 9:08 am, "Paul Baker [MVP, Windows - SDK]"
 
 
 

Can a script log a user off and then log on under a different user

Post by Paul Baker » Thu, 20 Sep 2007 23:33:13

I see why you think those newsgroups would be a good idea, since they are
specific to Windows 2000. However, it also limits your audience, as many
more people use Windows XP or higher than use Windows 2000, and even those
that do use Windows 2000 are likely to read the more commonly used group.

Paul