IGPM::GetBackupDir method (gpmgmt.h)
Creates and returns a GPMBackupDir object, which you can use to access the GPMBackup and GPMBackupCollection objects.
Syntax
HRESULT GetBackupDir(
[in] BSTR bstrBackupDir,
[out] IGPMBackupDir **pIGPMBackupDir
);
Parameters
[in] bstrBackupDir
Required. The name of the file system directory that contains the Group Policy object (GPO) backups. The directory must already exist.
[out] pIGPMBackupDir
Address of a pointer to the IGPMBackupDir interface.
Return value
C++
Returns S_OK if successful. Returns a failure code if an error occursJScript
Returns a reference to a GPMBackupDir object.VB
Returns a reference to a GPMBackupDir object.Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows Vista |
Minimum supported server | Windows Server 2008 |
Target Platform | Windows |
Header | gpmgmt.h |
DLL | Gpmgmt.dll |
See also
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