RemoveConfiguration method
Removes the configuration files.
Syntax
uint32 RemoveConfiguration(
[in] uint32 Stage,
[in] boolean Force
);
Parameters
Stage [in] Specifies which configuration document to remove. The following values are valid:
Value | Description |
---|---|
1 | The Current configuration document (current.mof). |
2 | The Pending configuration document (pending.mof). |
4 | The Previous configuration document (previous.mof). |
Force [in] true to force the removal of the configuration.
Return value
Returns zero on success; otherwise returns an error code.
Remarks
This is a static method.
Requirements
MOF: DscCore.mof
Namespace: Root\Microsoft\Windows\DesiredStateConfiguration
See also
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for