---
title: "\"Logga ut\" dialogruta?"
type: "forum-thread"
url: "https://www.webforum.nu/amne/dotnet/135345-logga-ut-dialogruta"
topic: ".NET"
topic_url: "https://www.webforum.nu/amne/dotnet"
author: "Melea"
published: "2005-10-06T09:00:01.000Z"
updated: "2005-10-10T17:47:02.000Z"
replies: 2
views: 248
page: 1
pages: 1
language: "sv-SE"
site: "webForum — webforum.nu"
rights: "Upphovsrätten till varje inlägg tillhör dess författare."
attribution: "Citera som: webForum, https://www.webforum.nu/amne/dotnet/135345-logga-ut-dialogruta"
---

# "Logga ut" dialogruta?

## #1 — Melea, 2005-10-06T09:00Z

Tjenamors!

Undrar hur man skriver för att få upp XP:s "Logga ut" dialogruta, som kommer upp om man trycker på "Logga ut" på startmenyn.
För att få upp "Stäng av" rutan skriver man

```
Dim objShell 
Set objShell = CreateObject("Shell.Application") 
objShell.ShutdownWindows
```

Har testat med LogoutWindows och LogoffWindows, men inga av de funkar.

Tack på förhand

Permalänk: https://www.webforum.nu/p/135345

## #2 — Jesper T, 2005-10-10T17:21Z

Du kan använda shutdown, men då får du inte upp dialogrutan.

> Usage: shutdown \[-i \| -l \| -s \| -r \| -a\] \[-f\] \[-m \\\\computername\] \[-t xx\] \[-c "comment"\] \[-d up:xx:yy\] 
>      No args                 Display this message (same as -?) 
>      \-i                      Display GUI interface, must be the first option 
>      \-l                      Log off (cannot be used with -m option) 
>      \-s                      Shutdown the computer 
>      \-r                      Shutdown and restart the computer 
>      \-a                      Abort a system shutdown 
>      \-m \\\\computername       Remote computer to shutdown/restart/abort 
>      \-t xx                   Set timeout for shutdown to xx seconds 
>      \-c "comment"            Shutdown comment (maximum of 127 characters) 
>      \-f                      Forces running applications to close without warning 
>      \-d \[ u\]\[p\]:xx:yy         The reason code for the shutdown 
>                              u is the user code 
>                              p is a planned shutdown code 
>                              xx is the major reason code (positive integer less than 256) 
>                              yy is the minor reason code (positive integer less than 65536)

Permalänk: https://www.webforum.nu/p/1686210

## #3 — Melea, 2005-10-10T17:47Z

Jo, har också kollat på det. Anyhow, detta är inte aktuellt längre då jag skippade idéen. :)

Tack för hjälpen iallafall Jesper T!

Permalänk: https://www.webforum.nu/p/1686224

---

Tråden på webben: https://www.webforum.nu/amne/dotnet/135345-logga-ut-dialogruta
