Server.EndUpdateBatch Method

Ends a batch of configuration changes.

Syntax

oServer.EndUpdateBatch  
oServer.EndUpdateBatch();  

Parameters

Name Description
DoCommitChanges An optional boolean value. true if the batch changes of configuration changes that have been made will be committed; otherwise, false.

Return Value

This method does not return a value.

Remarks

Batch updates should be done between calls to the BeginUpdateBatch method of the Server class and this method. All updates should be made to the same commit path that you specify in the Path parameter of the BeginUpdateBatch method. If you want to discard the changes that have been made in memory, set the DoCommitChanges parameter to false.

Note

The BeginUpdateBatch and EndUpdateBatch methods work only while the current WMI worker process is running. If the process is shut down by WMI due to idle timeout (normally after 30 seconds), any changes that have been made will be lost.

Requirements

Type Description
Client - IIS 7.0 on Windows Vista
- IIS 7.5 on Windows 7
- IIS 8.0 on Windows 8
- IIS 10.0 on Windows 10
Server - IIS 7.0 on Windows Server 2008
- IIS 7.5 on Windows Server 2008 R2
- IIS 8.0 on Windows Server 2012
- IIS 8.5 on Windows Server 2012 R2
- IIS 10.0 on Windows Server 2016
Product - IIS 7.0, IIS 7.5, IIS 8.0, IIS 8.5, IIS 10.0
MOF file WebAdministration.mof

See Also

Server Class
Server.BeginUpdateBatch Method