How can I get
a list of users currently logged on?
|
Use the net sessions command, however
this will only work if you are an Administrator. You can
also use control panel and choose server.
The resource kit utility, Net Watch, can also show current
logged on users that are connected to the Netlogon share
if you connect to the domain controller, however these connects
terminate after a finite amount of time so will not necessarily
show all users.
How can I install
the FTP service under Windows XP?
|
XP includes a built-in FTP service component that lets
FTP clients connect to the machine and read or write files;
however, this service doesn't install by default. To install
the FTP service, perform the following steps:
- Start the Control Panel Add/Remove Programs applet (go
to Start, Control Panel, then click Add/Remove Programs).
- Select Add/Remove Windows Components.
- Select Internet Information Services (IIS), then click
Details.
- Select the File Transfer Protocol (FTP) Service check
box, then click OK.
- Click OK to close all dialog boxes.
You can use the Microsoft Management Console (MMC) Internet
Information Services snap-in to configure the FTP service
(go to Start, Programs, Administrative Tools, then click
Internet Information Services). After the snap-in starts,
expand the computer name, then expand FTP Sites. A Default
FTP Site will have been added. Right-click Default FTP Site,
then select Properties from the displayed context menu to
set options such as Home Directory, accounts, and anonymous
access. To stop the FTP service, right-click the FTP site
and select Stop from the context menu; likewise, select
Start from the context menu to restart the service.
How can I install
the Network Monitor client under Windows
XP?
|
Windows 2000 includes a Network Monitor agent for use with
Network Monitor, but XP doesn't include such an agent. However,
Microsoft included the netcap.exe utility as part of the
Support Tools on the XP CD-ROM. Netcap is a command-line
tool that provides capabilities similar to Network Monitor.
On the first execution, Netcap installs the Network Monitor
driver and binds it to all network adapters, which lets
the full Network Monitor product operate against the machine.
For full Help, type
netcap /?
If you want to remove the Network Monitor driver, simply
type
c:\> netcap /remove
The tool is also useful for checking the index numbers
of adapters. For example, you would use the following values
to check the index numbers for the following adapters:
(default) 0 = ETHERNET (000625089EF6) Wireless Network Connection
1 = ETHERNET (000102220C06) Local Area Connection
2 = ETHERNET (1C1220524153) WAN (PPP/SLIP) Interface
How can I shutdown
a number of machines without going
to each machine?
|
I have a number of machines setup in my Lab and at the
end of an entertaining evening of computing I don't want
to have to goto each machine and shut them down so I wrote
a small batch file that uses the shutdown.exe resource
kit utility. Just enter the following into a file with a
.bat extension:
rem Batch file to shutdown local machine and the
PDC, BDC
shutdown \\pdc /t:2 /y /c this shuts down a
machine called PDC in 2 seconds, repeat with other machine
names
shutdown \\bdc /t:2 /y /c this shuts
down a machine called BDC in 2 seconds
shutdown /l /y /c /t:5 this line shuts
down the local machine in 5 seconds
You can then just right click the file in explorer and
drag onto the desktop, release and select "Create shortcut".
Clicking this icon will then shutdown all the machines in
the file. On a NT Server these shutdowns are not graceful
and the users will not be asked to save work if they are
not logged on or the machine is locked. If they are logged
on then they have the option of saving files (unless a force
switch is used).
If you have installed a SP4 or SP5 on Win NT, remote shutdown
command will shutdown machine immediately without stopping
services (dirty shutdown event ID 6008)