Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Win 2000 Start Menu

Posted on 2002-07-24
4
Medium Priority
?
187 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 200 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

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

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

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…
With so many activities to perform, Exchange administrators are always busy in organizations. If everything, including Exchange Servers, Outlook clients, and Office 365 accounts work without any issues, they can sit and relax. But unfortunately, it…
This course is ideal for IT System Administrators working with VMware vSphere and its associated products in their company infrastructure. This course teaches you how to install and maintain this virtualization technology to store data, prevent vuln…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
Suggested Courses

604 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