Discussion Locked

LogOff, Shutdown Script needed

0 helpful
7 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I was wondering if anyone has a log off script or shutdown script that I could install with an icon on a users desktop to log off or shutdown. It could be a script or command type. We used them on 98 machines but it would be nice for an NT machine. We have active desktops off so there is no log off button on the start menu so our users just shutdown their machine rather than press ctrl alt del and then log off.... a lazy way. Maybe if I put an icon on their desktops to lof off they would use that. I need the script (cmnd) to default yes so that the user can click and walk away. Has anybody got something like that. I know the resourse kit has a shutdown utility but unless someone knows how to customize it and have it run with every user it is useless.

Unless your solution is exactly what I want it is useless to me.

Thanks
Merv

7 replies

by jason.barnett

Merv,

I use a simple batch file on Windows 2000 Professional desktops that simply says:

logoff /n

This will automatically logoff the user but not force without saving, if you want to force logoof use /f.

I don't know if this works for NT4, I don't have any NT4 desktops anymore in order to try it. Give it a go....

Regards,

JB.

by whatme?

I tried this. It didn't work. Maybe I am doing something wrong though. I went to notepad and wrote:
shutdown/f

and saved as a bat file. when I click on it from the desktop it opens the command window and scrolls endlessly, finally ending and giving me a DR Watson error
Merv

by syscokid

It seems to me that a simple batch file containing

shutdown /y

is exactly what you want. Shuts down the computer and answers yes to any prompts, or

shutdown /c /y

closes all open apps and shuts down (does NOT save changed data in anyapp that hasn't already been saved).

by whatme?

I tried this. It didn't work. Maybe I am doing something wrong though. I went to notepad and wrote:
shutdown/y

and saved as a bat file. when I click on it from the desktop it opens the command window and scrolls endlessly, finally ending and giving me a DR Watson error
I also tried just shutdown... no go.
I went to a command line and tried ity. It does the same.
Merv

by dle

The correct syntax should be:
shutdown /l /c /y /t:xx
where /l = local and /t=timer (default=20 seconds).

You can also use the Window's scheduler (AT command) to schedule the .bat or .cmd file containing the line above at a specified time.

by whatme?

I tried this. It didn't work. Maybe I am doing something wrong though. I went to notepad and wrote:
shutdown/f

and saved as a bat file. when I click on it from the desktop it opens the command window and scrolls endlessly, finally ending and giving me a DR Watson error
Merv

This discussion is closed to new replies.