Solved

Win 2000 Start Menu

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

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

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…
In this post we will be converting StringData saved within a text file into a hash table. This can be further used in a PowerShell script for replacing settings that are dynamic in nature from environment to environment.
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …

705 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