Solved

Win 2000 Start Menu

Posted on 2002-07-24
4
182 Views
Last Modified: 2010-04-13
Logged on to Win2000 as "Administrator".
Start displays:
   Windows Update
   WinZip
   --------------
   Programs -->
   Documents -->
   Settings -->
   Search -->
   Help
   Run
   -------------
   Log Off Administrator...
   Shut Down...

Now I use the explorer to look at:
C:\Documents and Settings\Administrator\Start Menu

All I see is the Programs subfolder.
Where are all the other things???

In addition to Administrator, there are Start Menu folders under "All Users", "Default User", "Jim", and "Norm".  They all ONLY show the Programs subfolder.

Specifically:  I want to initiate the Shut Down procedure from a VB Form Unload event.  But I can't find where the Shut Down executable is!
0
Comment
Question by:npnp
  • 3
4 Comments
 
LVL 7

Expert Comment

by:jmiller47
ID: 7175382
You start menu is both the start menu user all users AND the start menu under your username.

I have NO IDEA what what that has to do with trying to find the shutdowncommand, you can get one in the Windows 2000 Resource Kit tools or you can use the following command:

%windir%\System32\rundll32.exe shell32.dll,SHExitWindowsEx 1
0
 

Author Comment

by:npnp
ID: 7175649
I get the following error message:

"Error in shell32.dll
Missing entry: SHExitWindowsEx

I looked at the Microsoft site for Windows 2000 resource kit tools, and cannot find anything relating to system shutdown.

-- Norm
0
 
LVL 7

Expert Comment

by:jmiller47
ID: 7175763
Most likely because you were looking here:
http://www.microsoft.com/windows2000/techinfo/reskit/tools/default.asp

This only shows free download from the actual Resource Kit Tools. This is only a small subset of what the real Resource Kit is. If you do any administration of the Windows 2000 OS, you really needt o purchase the Resource Kit tools or get it free with a subscription of Microsoft Technet. That way you get ALL Resource Kits and the documentation.


If the Shell32 command I used does not work on Windows 2000 (was from XP, I was under the impression it worked on 2000 also), this comment may help you.


Comment
From: pubeheed  Date: 02/11/2002 12:43AM PST  
I have found a solution for this. There is a little program in the windows 2000 pro resource kit called logoff.exe. I have copied this to the netlogon share of the DC's and called it from the logon script using the command:

%logonserver%\netlogon\update\logoff.exe /N

as soon as the script has execute the account is logged out.


 

0
 
LVL 7

Accepted Solution

by:
jmiller47 earned 50 total points
ID: 7175790
You can also use restart.vbs which allows you to logoff users. This is also available in the RKT.

Logoffs, Reboots, Powers Off, or Shuts Down a machine.

SYNTAX:
  Restart.vbs [/S <server>] [/U <username>] [/W <password>]
              [/O <outputfile>] </L> </R> </P> </Q> </F> [/T <time in seconds>]

PARAMETER SPECIFIERS:
   /T            Amount of time to perform the function.
   /Q            Perform Shutdown.
   /P            Perform Poweroff.
   /R            Perform Reboot.
   /L            Perform Logoff.
   /F            Force Function.
   server        A machine name.
   username      The current user's name.
   password      Password of the current user.
   outputfile    The output file name.

EXAMPLE:
1. cscript Restart.vbs /S MyMachine2 /R
   Reboots the current machine MyMachine2.
2. cscript Restart.vbs /S MyMachine2 /R /F
   Forces MyMachine2 to reboot.
3. cscript Restart.vbs /S MyMachine2 /R /T 30
   Reboots the current machine MyMachine2 in 30 seconds.
NOTE:
   The force option will make the machine perform the function even if there are

   open and unsaved docuements on the screen.
0

Featured Post

Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Windows 2000, Ghost 2003, disk1 disk 2 mirroring 17 371
Windows SBS 2003 filling up disk with NTbackup files 6 180
Can’t delete a file 14 196
Upgrade dos 4.00.1111 11 29
NTFS file system has been developed by Microsoft that is widely used by Windows NT operating system and its advanced versions. It is the mostly used over FAT file system as it provides superior features like reliability, security, storage, efficienc…
Read our guide on how to survive being on-call.
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question