Skip to content

Commit c16fe4b

Browse files
committed
Updated code for manual and auto start services
1 parent d1623ae commit c16fe4b

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

articles/virtual-machines/windows/prepare-for-upload-vhd-image.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -181,14 +181,18 @@ to convert it to VHD format. For more information, see
181181
182182
## Check the Windows services
183183
184-
Make sure that each of the following Windows services is set to start automatically. These services
185-
are the minimum that must be configured to ensure VM connectivity. To set the startup settings, run
186-
the following example:
184+
Make sure that each of the following Windows services is set to the Windows default value. These
185+
services are the minimum that must be configured to ensure VM connectivity. To set the startup
186+
settings, run the following example:
187187
188188
```powershell
189-
Get-Service -Name BFE, Dhcp, Dnscache, IKEEXT, iphlpsvc, mpssvc, Netlogon, Netman, nsi, RemoteRegistry, TermService |
189+
Get-Service -Name BFE, Dhcp, Dnscache, IKEEXT, iphlpsvc, nsi, mpssvc, RemoteRegistry |
190190
Where-Object StartType -ne Automatic |
191191
Set-Service -StartupType Automatic
192+
193+
Get-Service -Name Netlogon, Netman, TermService |
194+
Where-Object StartType -ne Manual |
195+
Set-Service -StartupType Manual
192196
```
193197

194198
## Update remote desktop registry settings

0 commit comments

Comments
 (0)