Solved

Win 2000 Start Menu

Posted on 2002-07-24
4
178 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

Complete Microsoft Windows PC® & Mac Backup

Backup and recovery solutions to protect all your PCs & Mac– on-premises or in remote locations. Acronis backs up entire PC or Mac with patented reliable disk imaging technology and you will be able to restore workstations to a new, dissimilar hardware in minutes.

Join & Write a Comment

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…
Are you unable to connect or configure Hotmail email account in Microsoft Outlook 2010, 2007? Or Outlook.com emails are not downloading to Outlook? Lets’ see the problem and resolve Outlook Connector error syncing folder hierarchy (0x8004102A).
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

743 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now