Discussion Locked

SU command

0 helpful
5 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Hello,

I'm looking for the SU (switch user) command for my NT users. Besides the Nt resource kit, where abouts can I find this utility on the net. I tried Microsoft but no luck?

5 replies

by tayuan.chu

What exactly would you be using the SU command for?

I don't believe that NT equivalent to UNIX's SU command but users can map to shares as a different user by entering the login id in the 'Connect As' field when mapping a network drive.

by debisse

SU for Windows NT v2.99 Jun 4 1997 10:01:43
(c) Copyright 1995, 1996, 1997 by Scott Field (sfield@microsoft.com)

Usage: su "[cmdline]" [domain] [[Winsta\]Desktop] [options]
-cb do not create new console (do not use with redirected passwords)
-dn do not switch to new desktop if one was specified
-e disables environment preparation (Inherit parent environment)
-g force GUI option prompting with supplied commandline arguments
-l disables loading of the user registry hive(use .Default)
-v verbose output to stdout
-w do not wait on child (registry hive will remain loaded)

One of the following logon types may be specified. Default is interactive.
-b batch, target user needs SeBatchLogonRight
-i interactive, target user needs SeInteractiveLogonRight
-s service, target user needs SeServiceLogonRight
-n network, target user needs SeNetworkLogonRight (WinNT 4.0 only)

Not specifying a cmdline invokes the default command processor (%comspec%)
Not specifying a domain causes account lookup in the following order:
Well-known, built-in, local accounts, primary domain, trusted domains
Specifying . as the domain limits the LogonUser search to the local machine
Not specifying Winsta\Desktoplaunches child on current Winsta\Desktop
Winsta0\Default is the user default interactive Windowstation and desktop

This discussion is closed to new replies.