Solved

Win 2000 Start Menu

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
P2V Windows NT/2000 SP4 3 1,821
Data off on old Win 2000 server. 18 582
Raising Domain/Forest Level to Windows 2003 (from a retired Windows 2000 DC) 8 144
windows explorer 21 172
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…
We need a new way to communicate time sensitive or critical info.   The best part of my role at xMatters is visiting our clients all over the world to learn about how they operate their businesses, share insights that xMatters has gleaned across…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

896 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

15 Experts available now in Live!

Get 1:1 Help Now