WindowsUpdateAdministrator.RegisterForAdministration Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Registers a Windows update administrator on the device to allow fine-grained control of update activity.
public:
static WindowsUpdateAdministratorStatus RegisterForAdministration(Platform::String ^ organizationName, WindowsUpdateAdministratorOptions options);
static WindowsUpdateAdministratorStatus RegisterForAdministration(winrt::hstring const& organizationName, WindowsUpdateAdministratorOptions const& options);
public static WindowsUpdateAdministratorStatus RegisterForAdministration(string organizationName, WindowsUpdateAdministratorOptions options);
function registerForAdministration(organizationName, options)
Public Shared Function RegisterForAdministration (organizationName As String, options As WindowsUpdateAdministratorOptions) As WindowsUpdateAdministratorStatus
Parameters
- organizationName
-
String
Platform::String
winrt::hstring
The organization name associated with the update administrator.
A combination of WindowsUpdateAdministratorOptions flags that determine which aspects the administrator requires explicit approval for.
Returns
A WindowsUpdateAdministratorStatus indicating whether registration was successful.
Remarks
This registration must be performed from a SYSTEM or Administrator elevation on the device.
If there is already a Windows update administrator registered on the device, then this call will fail, because there can be only one active administrator at a time.
The organization name used at registration is required to acquire the WindowsUpdateAdministrator object via GetRegisteredAdministrator. It's also required in order to call UnregisterForAdministration.
Applies to
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