Skip to content

Commit 6ba5575

Browse files
committed
Added more info on shutdown behavior due to customer questions
1 parent e4e3686 commit 6ba5575

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

articles/lab-services/classroom-labs/how-to-windows-shutdown.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ To set the RDP session idle time limit, you can connect to the template VM and e
5454

5555
```powershell
5656
# The MaxIdleTime is in milliseconds; by default, this script sets MaxIdleTime to 15 minutes.
57-
$maxIdleTime = 15 * 60 * 90
57+
$maxIdleTime = 15 * 60 * 1000
5858
5959
Set-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services" -Name "MaxIdleTime" -Value $maxIdleTime -Force
6060
```
@@ -76,6 +76,9 @@ Or, you can choose to follow these manual steps using the template VM:
7676

7777
1. Finally, to combine this behavior with the **automatic shutdown on disconnect** setting, you should follow steps in the how-to article: [Enable automatic shutdown of VMs on disconnect](https://docs.microsoft.com/azure/lab-services/classroom-labs/how-to-enable-shutdown-disconnect).
7878

79+
> [!NOTE]
80+
> After configuring this setting using either PowerShell to modify the registry setting directly or manually using the Group Policy editor, you must first restart the VM for the settings to take effect. Also, if you configure the setting using the registry, the Group Policy editor doesn't always refresh to reflect changes to the registry setting; however, the registry setting still takes effect as expected and you will see the RDP session disconnected when idle for the length of time that you've specified.
81+
7982
## Remove Windows shutdown command from Start menu
8083

8184
Windows **Local Group Policy** settings also allow you to remove the shutdown command from the **Start** menu.

0 commit comments

Comments
 (0)