Package com.vmware.vim25.mo
Class GuestWindowsRegistryManager
java.lang.Object
com.vmware.vim25.mo.ManagedObject
com.vmware.vim25.mo.GuestWindowsRegistryManager
-
Constructor Summary
ConstructorsConstructorDescriptionGuestWindowsRegistryManager(ServerConnection serverConnection, ManagedObjectReference mor) -
Method Summary
Modifier and TypeMethodDescriptionvoidcreateRegistryKeyInGuest(VirtualMachine vm, GuestAuthentication auth, GuestRegKeyNameSpec keyName, boolean isVolatile) voidcreateRegistryKeyInGuest(VirtualMachine vm, GuestAuthentication auth, GuestRegKeyNameSpec keyName, boolean isVolatile, String classType) voiddeleteRegistryKeyInGuest(VirtualMachine vm, GuestAuthentication auth, GuestRegKeyNameSpec keyName, boolean recursive) voiddeleteRegistryValueInGuest(VirtualMachine vm, GuestAuthentication auth, GuestRegValueNameSpec valueName) listRegistryKeysInGuest(VirtualMachine vm, GuestAuthentication auth, GuestRegKeyNameSpec keyName, boolean recursive) listRegistryKeysInGuest(VirtualMachine vm, GuestAuthentication auth, GuestRegKeyNameSpec keyName, boolean recursive, String matchPattern) List all registry subkeys for a given registry key.listRegistryValuesInGuest(VirtualMachine vm, GuestAuthentication auth, GuestRegKeyNameSpec keyName, boolean expandStrings) listRegistryValuesInGuest(VirtualMachine vm, GuestAuthentication auth, GuestRegKeyNameSpec keyName, boolean expandStrings, String matchPattern) List all registry values for a given registry key.voidsetRegistryValueInGuest(VirtualMachine vm, GuestAuthentication auth, GuestRegValueSpec value) Methods inherited from class com.vmware.vim25.mo.ManagedObject
convertMors, getCurrentProperty, getDatastores, getFilter, getHosts, getManagedObject, getManagedObjects, getManagedObjects, getMOR, getNetworks, getPropertiesByPaths, getPropertyByPath, getResourcePools, getScheduledTasks, getServerConnection, getTasks, getViews, getVimService, getVms, retrieveObjectProperties, setCachedProperty, setMOR, setServerConnection, toString, waitForValues
-
Constructor Details
-
GuestWindowsRegistryManager
-
-
Method Details
-
createRegistryKeyInGuest
public void createRegistryKeyInGuest(VirtualMachine vm, GuestAuthentication auth, GuestRegKeyNameSpec keyName, boolean isVolatile, String classType) throws GuestOperationsFault, InvalidState, TaskInProgress, RuntimeFault, RemoteException -
deleteRegistryKeyInGuest
public void deleteRegistryKeyInGuest(VirtualMachine vm, GuestAuthentication auth, GuestRegKeyNameSpec keyName, boolean recursive) throws GuestOperationsFault, InvalidState, TaskInProgress, RuntimeFault, RemoteException -
deleteRegistryValueInGuest
public void deleteRegistryValueInGuest(VirtualMachine vm, GuestAuthentication auth, GuestRegValueNameSpec valueName) throws GuestOperationsFault, InvalidState, TaskInProgress, RuntimeFault, RemoteException -
setRegistryValueInGuest
public void setRegistryValueInGuest(VirtualMachine vm, GuestAuthentication auth, GuestRegValueSpec value) throws GuestOperationsFault, InvalidState, TaskInProgress, RuntimeFault, RemoteException -
createRegistryKeyInGuest
public void createRegistryKeyInGuest(VirtualMachine vm, GuestAuthentication auth, GuestRegKeyNameSpec keyName, boolean isVolatile) throws GuestComponentsOutOfDate, GuestOperationsFault, GuestOperationsUnavailable, GuestPermissionDenied, GuestRegistryKeyAlreadyExists, GuestRegistryKeyInvalid, GuestRegistryKeyParentVolatile, InvalidGuestLogin, InvalidPowerState, InvalidState, OperationDisabledByGuest, OperationNotSupportedByGuest, RuntimeFault, TaskInProgress, RemoteException - Throws:
GuestComponentsOutOfDateGuestOperationsFaultGuestOperationsUnavailableGuestPermissionDeniedGuestRegistryKeyAlreadyExistsGuestRegistryKeyInvalidGuestRegistryKeyParentVolatileInvalidGuestLoginInvalidPowerStateInvalidStateOperationDisabledByGuestOperationNotSupportedByGuestRuntimeFaultTaskInProgressRemoteException
-
listRegistryKeysInGuest
public GuestRegKeyRecordSpec[] listRegistryKeysInGuest(VirtualMachine vm, GuestAuthentication auth, GuestRegKeyNameSpec keyName, boolean recursive, String matchPattern) throws GuestComponentsOutOfDate, GuestOperationsFault, GuestOperationsUnavailable, GuestPermissionDenied, GuestRegistryKeyInvalid, InvalidGuestLogin, InvalidPowerState, InvalidState, OperationDisabledByGuest, OperationNotSupportedByGuest, RuntimeFault, TaskInProgress, RemoteException List all registry subkeys for a given registry key.- Parameters:
vm- Virtual machine to perform the operation on.auth- The guest authentication data.keyName- The path to the registry key for which all subkeys are to be listed.recursive- If true, all subkeys are listed recursively.matchPattern- A filter for the key names returned, specified using perl-compatible regular expressions. If matchPattern is unset, then the pattern '.*' is used, which returns all key names found, otherwise only those key names that match the input pattern shall be returned.- Returns:
- GuestRegKeyRecordSpec[] The list of subkeys is returned in an array of GuestRegKeySpec structures.
- Throws:
GuestComponentsOutOfDateGuestOperationsFaultGuestOperationsUnavailableGuestPermissionDeniedGuestRegistryKeyInvalidInvalidGuestLoginInvalidPowerStateInvalidStateOperationDisabledByGuestOperationNotSupportedByGuestRuntimeFaultTaskInProgressRemoteException
-
listRegistryKeysInGuest
public GuestRegKeyRecordSpec[] listRegistryKeysInGuest(VirtualMachine vm, GuestAuthentication auth, GuestRegKeyNameSpec keyName, boolean recursive) throws GuestComponentsOutOfDate, GuestOperationsFault, GuestOperationsUnavailable, GuestPermissionDenied, GuestRegistryKeyInvalid, InvalidGuestLogin, InvalidPowerState, InvalidState, OperationDisabledByGuest, OperationNotSupportedByGuest, RuntimeFault, TaskInProgress, RemoteException -
listRegistryValuesInGuest
public GuestRegValueSpec[] listRegistryValuesInGuest(VirtualMachine vm, GuestAuthentication auth, GuestRegKeyNameSpec keyName, boolean expandStrings, String matchPattern) throws GuestComponentsOutOfDate, GuestOperationsFault, GuestOperationsUnavailable, GuestPermissionDenied, GuestRegistryKeyInvalid, InvalidGuestLogin, InvalidPowerState, InvalidState, OperationDisabledByGuest, OperationNotSupportedByGuest, RuntimeFault, TaskInProgress, RemoteException List all registry values for a given registry key.- Parameters:
vm- Virtual machine to perform the operation on.auth- The guest authentication data.keyName- The path to the registry key for which all subkeys are to be listed.expandStrings- If true, all values that have expandable data such as environment variable names, shall get expanded in the result.matchPattern- A filter for the value names returned, specified using perl-compatible regular expressions. If matchPattern is unset, then the pattern '.*' is used, which returns all value names found, otherwise only those value names that match the input pattern shall be returned.- Returns:
- The list of values is returned in an array of
GuestRegValueSpecstructures. - Throws:
GuestComponentsOutOfDateGuestOperationsFaultGuestOperationsUnavailableGuestPermissionDeniedGuestRegistryKeyInvalidInvalidGuestLoginInvalidPowerStateInvalidStateOperationDisabledByGuestOperationNotSupportedByGuestRuntimeFaultTaskInProgressRemoteException
-
listRegistryValuesInGuest
public GuestRegValueSpec[] listRegistryValuesInGuest(VirtualMachine vm, GuestAuthentication auth, GuestRegKeyNameSpec keyName, boolean expandStrings) throws GuestComponentsOutOfDate, GuestOperationsFault, GuestOperationsUnavailable, GuestPermissionDenied, GuestRegistryKeyInvalid, InvalidGuestLogin, InvalidPowerState, InvalidState, OperationDisabledByGuest, OperationNotSupportedByGuest, RuntimeFault, TaskInProgress, RemoteException
-