home *** CD-ROM | disk | FTP | other *** search
Wrap
//************************************************************************** // // Microsoft Windows // // Copyright (c) Microsoft Corporation. All rights reserved. // // File: OfflineFilesWmiProvider.mof // // This file contains the class definitions for the scriptable interface // to the Offline Files feature in Windows. These classes complement the // IOfflineFilesXxxxxxx COM interfaces in the platform SDK. // //************************************************************************** #pragma autorecover #pragma classflags ("forceupdate") #pragma namespace("\\\\.\\ROOT\\CIMV2") //************************************************************************** //* Class: Win32_OfflineFilesFileSysInfo //* Derived from: //************************************************************************** [dynamic: DisableOverride ToInstance, provider("Win32_OfflineFilesProvider"), Description("Provides file system-specific information about an item in the " "Offline Files cache. This information is available only for " "Directory and File items. File system information is not applicable " "to Server and Share items."): ToInstance ToSubClass] class Win32_OfflineFilesFileSysInfo { [read: ToInstance ToSubClass, Description("Win32 File system attributes for local copy"): ToInstance ToSubClass] uint32 LocalAttributes; [read: ToInstance ToSubClass, Description("File size in bytes for local copy"): ToInstance ToSubClass] sint64 LocalSize; [read: ToInstance ToSubClass, Description("Creation time for local copy"): ToInstance ToSubClass] DATETIME LocalCreationTime; [read: ToInstance ToSubClass, Description("Last write time for local copy"): ToInstance ToSubClass] DATETIME LocalLastWriteTime; [read: ToInstance ToSubClass, Description("Change time for local copy"): ToInstance ToSubClass] DATETIME LocalChangeTime; [read: ToInstance ToSubClass, Description("Last access time for local copy"): ToInstance ToSubClass] DATETIME LocalLastAccessTime; [read: ToInstance ToSubClass, Description("Win32 File system attributes for original copy"): ToInstance ToSubClass] uint32 OriginalAttributes; [read: ToInstance ToSubClass, Description("File size in bytes for original copy"): ToInstance ToSubClass] sint64 OriginalSize; [read: ToInstance ToSubClass, Description("Creation time for original copy"): ToInstance ToSubClass] DATETIME OriginalCreationTime; [read: ToInstance ToSubClass, Description("Last write time for original copy"): ToInstance ToSubClass] DATETIME OriginalLastWriteTime; [read: ToInstance ToSubClass, Description("Change time for original copy"): ToInstance ToSubClass] DATETIME OriginalChangeTime; [read: ToInstance ToSubClass, Description("Last access time for original copy"): ToInstance ToSubClass] DATETIME OriginalLastAccessTime; [read: ToInstance ToSubClass, Description("Win32 File system attributes for remote copy"): ToInstance ToSubClass] uint32 RemoteAttributes; [read: ToInstance ToSubClass, Description("File size in bytes for remote copy"): ToInstance ToSubClass] sint64 RemoteSize; [read: ToInstance ToSubClass, Description("Creation time for remote copy"): ToInstance ToSubClass] DATETIME RemoteCreationTime; [read: ToInstance ToSubClass, Description("Last write time for remote copy"): ToInstance ToSubClass] DATETIME RemoteLastWriteTime; [read: ToInstance ToSubClass, Description("Change time for remote copy"): ToInstance ToSubClass] DATETIME RemoteChangeTime; [read: ToInstance ToSubClass, Description("Last access time for remote copy"): ToInstance ToSubClass] DATETIME RemoteLastAccessTime; }; //************************************************************************** //* Class: Win32_OfflineFilesPinInfo //* Derived from: //************************************************************************** [dynamic: DisableOverride ToInstance, provider("Win32_OfflineFilesProvider"), Description("Describes if an item in the Offline Files cache is pinned and, " "if so, the type of pinning currently applied."): ToInstance ToSubClass] class Win32_OfflineFilesPinInfo { [read: ToInstance ToSubClass, Description("Indicates if the file is pinned for any reason."): ToInstance ToSubClass] boolean Pinned; [read: ToInstance ToSubClass, Description("Indicates if the file is pinned by this user and if this pin state is inheritable. \n\n" "0 - Not pinned \n" "1 - Pinned \n" "2 - Pinned. Inherited by new files created in pinned directory."): ToInstance ToSubClass, Values { "Not pinned", "Pinned", "Pinned inherit" }: ToInstance ToSubClass, ValueMap { "0", "1", "2" }: ToInstance ToSubClass] uint32 PinnedForUser; [read: ToInstance ToSubClass, Description("Indicates if the file is pinned for this user by Group Policy and if this pin state is inheritable. \n\n" "0 - Not pinned \n" "1 - Pinned \n" "2 - Pinned. Inherited by new files created in pinned directory."): ToInstance ToSubClass, Values { "Not pinned", "Pinned", "Pinned inherit" }: ToInstance ToSubClass, ValueMap { "0", "1", "2" }: ToInstance ToSubClass] uint32 PinnedForUserByPolicy; [read: ToInstance ToSubClass, Description("Indicates if the file is pinned for all users on the computer. \n\n" "0 - Not pinned \n" "1 - Pinned \n" "2 - Pinned. Inherited by new files created in pinned directory."): ToInstance ToSubClass, Values { "Not pinned", "Pinned", "Pinned inherit" }: ToInstance ToSubClass, ValueMap { "0", "1", "2" }: ToInstance ToSubClass] uint32 PinnedForComputer; [read: ToInstance ToSubClass, Description("Indicates if the file is pinned for this user by Windows Folder Redirection. \n\n" "0 - Not pinned \n" "1 - Pinned \n" "2 - Pinned. Inherited by new files created in pinned directory."): ToInstance ToSubClass, Values { "Not pinned", "Pinned", "Pinned inherit" }: ToInstance ToSubClass, ValueMap { "0", "1", "2" }: ToInstance ToSubClass] uint32 PinnedForFolderRedirection; }; //************************************************************************** //* Class: Win32_OfflineFilesChangeInfo //* Derived from: //************************************************************************** [dynamic: DisableOverride ToInstance, provider("Win32_OfflineFilesProvider"), Description("Describes if an item in the Offline Files cache has unsynchronized changes and, " "if so, the type of changes."): ToInstance ToSubClass] class Win32_OfflineFilesChangeInfo { [read: ToInstance ToSubClass, Description("Indicates if the item was changed while working offline. If True, " "one or more of the remaining properties is also True."): ToInstance ToSubClass] boolean Dirty; [read: ToInstance ToSubClass, Description("Indicates if the item was deleted while working offline."): ToInstance ToSubClass] boolean DeletedOffline; [read: ToInstance ToSubClass, Description("Indicates if the item was created while working offline."): ToInstance ToSubClass] boolean CreatedOffline; [read: ToInstance ToSubClass, Description("Indicates if the file's contents were modified while working offline."): ToInstance ToSubClass] boolean ModifiedData; [read: ToInstance ToSubClass, Description("Indicates if any of the file's attributes were modified while working offline."): ToInstance ToSubClass] boolean ModifiedAttributes; [read: ToInstance ToSubClass, Description("Indicates if any of the file's time values were modified while working offline."): ToInstance ToSubClass] boolean ModifiedTime; }; //************************************************************************** //* Class: Win32_OfflineFilesDirtyInfo //* Derived from: //************************************************************************** [dynamic: DisableOverride ToInstance, provider("Win32_OfflineFilesProvider"), Description("Describes the amount of information that will be synchronized when an item is synchronized."): ToInstance ToSubClass] class Win32_OfflineFilesDirtyInfo { [read: ToInstance ToSubClass, Description("Number of bytes needing synchronization from the client to the server."): ToInstance ToSubClass] sint64 LocalDirtyByteCount; [read: ToInstance ToSubClass, Description("Number of bytes needing synchronization from the server to the client."): ToInstance ToSubClass] sint64 RemoteDirtyByteCount; }; //************************************************************************** //* Class: Win32_OfflineFilesConnectionInfo //* Derived from: //************************************************************************** [dynamic: DisableOverride ToInstance, provider("Win32_OfflineFilesProvider"), Description("Provides information about the \"online\"/\"offline\" status of " "an item in the Offline Files cache."): ToInstance ToSubClass] class Win32_OfflineFilesConnectionInfo { [read : ToInstance ToSubClass, Description("Indicates if the item is currently \"online\" or \"offline\". \n\n" "0 - Unknown. Unable to determine connect state. \n" "1 - Offline. Item is currently \"offline\". Inspect OfflineReason to learn why. \n" "2 - Online. Item is currently \"online\"."): ToInstance ToSubClass, Values { "Unknown", "Offline", "Online" }: ToInstance ToSubClass, ValueMap { "0", "1", "2" }: ToInstance ToSubClass] uint32 ConnectState; [read : ToInstance ToSubClass, Description("If an item is \"offline\", indicates why it is offline.\n\n" "0 - Unknown. Unable to determine reason. \n" "1 - Not applicable. Item is online or item state is not known. \n" "2 - Working offline. User has selected the \"Work offline\" option in Windows Explorer. \n" "3 - Slow connection. Item is offline because the connection is slow. \n" "4 - Net disconnected. The computer is disconnected from the network or the remote share or server is unavailable. \n" "5 - Need to sync item. Item has unsynchronized local changes or an unresolved sync conflict. \n" "6 - Item suspended. Item is always offline."): ToInstance ToSubClass, Values { "Unknown", "Not applicable", "Working offline", "Slow connection", "Net disconnected", "Need to sync item", "Item suspended" }: ToInstance ToSubClass, ValueMap { "0", "1", "2", "3", "4", "5", "6" }: ToInstance ToSubClass] uint32 OfflineReason; }; //************************************************************************** //* Class: Win32_OfflineFilesSuspendInfo //* Derived from: //************************************************************************** [dynamic: DisableOverride ToInstance, provider("Win32_OfflineFilesProvider"), Description("Provides information about the current \"suspend\" state of " "an item in the Offline Files cache."): ToInstance ToSubClass] class Win32_OfflineFilesSuspendInfo { [read: ToInstance ToSubClass, Description("Indicates if the item is currently suspended, either directly or through " "inheritance from an ancestor. Inspect SuspendedRoot to determine which."): ToInstance ToSubClass] boolean Suspended; [read: ToInstance ToSubClass, Description("Indicates if the item is a suspended tree root. If this is False, " "the item is suspended by way of inheritance through the suspended state " "of an ancestor."): ToInstance ToSubClass] boolean SuspendedRoot; }; //************************************************************************** //* Class: Win32_OfflineFilesItem //* Derived from: //************************************************************************** [dynamic: DisableOverride ToInstance, provider("Win32_OfflineFilesProvider"), Description("Represents an item in the Offline Files cache"): ToInstance ToSubClass] class Win32_OfflineFilesItem { [key, Not_null: ToInstance ToSubClass, read: ToInstance ToSubClass, Description("UNC path of the item on the server."): ToInstance ToSubClass] string ItemPath; [read : ToInstance ToSubClass, Description("UNC path of the parent item on the server. This is empty if the item is " "a Server item."): ToInstance ToSubClass] string ParentItemPath; [Not_null: ToInstance ToSubClass, read: ToInstance ToSubClass, Description("File system name of item, excluding the directory path."): ToInstance ToSubClass] string ItemName; [read : ToInstance ToSubClass, Description("Type of the item. An item may represent a Server, Share, Directory, or a File. \n\n" "0 - File \n" "1 - Directory \n" "2 - Share \n" "3 - Server"): ToInstance ToSubClass, Values { "File", "Directory", "Share", "Server" }: ToInstance ToSubClass, ValueMap { "0", "1", "2", "3" }: ToInstance ToSubClass] uint32 ItemType; [read : ToInstance ToSubClass, Description("File system information for item. Applicable to Directory and File items."): ToInstance ToSubClass] Win32_OfflineFilesFileSysInfo FileSysInfo; [read : ToInstance ToSubClass, Description("Pin information for item. Applicable to Share, Directory, and File items."): ToInstance ToSubClass] Win32_OfflineFilesPinInfo PinInfo; [read : ToInstance ToSubClass, Description("Change information for item. Applicable to Share, Directory, and File items."): ToInstance ToSubClass] Win32_OfflineFilesChangeInfo ChangeInfo; [read : ToInstance ToSubClass, Description("Dirty byte count information for item. Applicable to File items."): ToInstance ToSubClass] Win32_OfflineFilesDirtyInfo DirtyInfo; [read : ToInstance ToSubClass, Description("Connection information for item. Applicable to Share, Directory, and File items."): ToInstance ToSubClass] Win32_OfflineFilesConnectionInfo ConnectionInfo; [read : ToInstance ToSubClass, Description("Suspend state information for item. Applicable to Share, Directory, and File items."): ToInstance ToSubClass] Win32_OfflineFilesSuspendInfo SuspendInfo; [read: ToInstance ToSubClass, Description("Indicates if the item is encrypted in the Offline Files cache. This " "property is applicable only to File items. Server, Share, and " "Directory items will always report a value of False for this property. " "Inspect the ItemType property to determine the type of an item."): ToInstance ToSubClass] boolean Encrypted; [read: ToInstance ToSubClass, Description("Indicates if the item is sparsely cached. A sparsely-cached item " "exists in the Offline Files cache but not all of its contents are " "cached. Such items are not available offline. This property is applicable " "only to File items. Server, Share, and Directory items will always " "report a value of False for this property. Inspect the ItemType property " "to determine the type of an item."): ToInstance ToSubClass] boolean Sparse; }; //************************************************************************** //* Class: Win32_OfflineFilesCache //* Derived from: //************************************************************************** [Singleton: DisableOverride ToInstance ToSubClass, dynamic: DisableOverride ToInstance, provider("Win32_OfflineFilesProvider"), Description("The Win32_OfflineFilesCache class represents the Offline Files cache " "for the purpose of adding, removing, renaming, enumerating, synchronizing, " "and otherwise \"managing\" the cache contents. Offline Files is a Windows " "feature that provides offline availability of network files as well as " "facilities to synchronize changes made while working offline. Each computer " "using the Offline Files feature has a single \"cache\" on the local system " "where the local copies of network files are stored. This class and its " "associated classes are used to inspect and manage the contents of that cache."): ToInstance ToSubClass] class Win32_OfflineFilesCache { [read : ToInstance ToSubClass, Description("Indicates if Offline Files is enabled. This reflects the current " "as-configured state of the feature. If Offline Files is Enabled but " "not Active, a system restart will activate the feature."): ToInstance ToSubClass] boolean Enabled; [read : ToInstance ToSubClass, Description("Indicates if Offline Files is active. This reflects the current " "running state of the feature. If Offline Files is Active, all behaviors " "associated with the feature are available. If Offline Files is Active but " "not Enabled, a system restart will deactivate the feature."): ToInstance ToSubClass] boolean Active; [read : ToInstance ToSubClass, Description("Location of Offline Files cache on the local computer. This is the directory " "under which the locally-cached file copies exist. The directory is not " "accessible to non-system processes."): ToInstance ToSubClass] string Location; [implemented, static, Description("Enables or disables the Offline Files feature. Inspect the RebootRequired " "parameter to determine if a reboot is required. If a reboot is required, the " "feature remains in its current state until the system is restarted."): ToInstance ToSubClass] uint32 Enable([in, Description("Specify True to enable Offline Files, False to disable Offline Files.")] boolean Enable, [out, Description("On return, if this value is True, a restart of the system is necessary " "for Offline Files to transition to the requested state.")] boolean RebootRequired); [implemented, static, Description("Renames a path in the Offline Files cache. This is most often used " "after a directory tree has been renamed or moved on a remote server."): ToInstance ToSubClass] uint32 RenameItem([in, Description("The current path string to be renamed.")] string OriginalPath, [in, Description("The new path string to replace the original path string.")] string NewPath, [in, Description("If this parameter is False, the operation will fail if the new path " "string specifies an existing file or directory. Specify True to " "automatically replace an existing file or directory. Therefore, use True with " "caution.")] boolean ReplaceIfExists); [implemented, static, Description("Synchronizes one or more items. To monitor progress, implement a WMI event sink to " "receive OnProgress notifications. The Message parameter contains a text string encoded " "with the following colon-delimited format: \n\n" " <reason>:<result>:<result text>:[<path>] \n\n" "where: \n\n" " <reason> \n" " The type of progress notification. One of the following: \n" " 0 = Begin - Sent once at start of the operation. \n" " 1 = End - Sent once at the end of the operation. \n" " 2 = ItemBegin - Sent at the start of processing each item. \n" " 3 = ItemResult - Sent at the end of processing each item. \n\n" " <result> \n" " Unsigned integer HRESULT. 0 = Success. \n\n" " <result text> \n" " Windows message text associated with <result>. \n\n" " <path> \n" " UNC path of item processed. This is empty if <reason> is \n" " Begin (0) or End (1)."): ToInstance ToSubClass] uint32 Synchronize([in, Description("Array of UNC path strings identifying directories and files to synchronize.")] string Paths[], [in, Values{"OfflineFilesSyncControlFlagFillSparse", "OfflineFilesSyncControlFlagSyncIn", "OfflineFilesSyncControlFlagSyncOut", "OfflineFilesSyncControlFlagPinNewFiles", "OfflineFilesSyncControlFlagPinLinkTargets", "OfflineFilesSyncControlFlagPinForUser", "OfflineFilesSyncControlFlagPinForUser_Policy", "OfflineFilesSyncControlFlagPinForAll", "OfflineFilesSyncControlFlagLowPriority", "OfflineFilesSyncControlFlagAsyncProgress", "OfflineFilesSyncControlFlagInteractive", "OfflineFilesSyncControlFlagConsole", "OfflineFilesSyncControlFlagSkipSuspendedDirs", "OfflineFilesSyncControlFlagBackground", "OfflineFilesSyncControlCrKeepLocal", "OfflineFilesSyncControlCrKeepRemote", "OfflineFilesSyncControlCrKeepLatest"}: ToInstance ToSubClass, ValuesMap{"0x00000001", "0x00000002", "0x00000004", "0x00000008", "0x00000010", "0x00000020", "0x00000040", "0x00000080", "0x00000200", "0x00000400", "0x00000800", "0x00001000", "0x00002000", "0x00010000", "0x10000000", "0x20000000", "0x30000000"}: ToSubClass, Description("May be one or more of the following: \n\n" "0x00000001 - FillSparse. Fill sparse files. \n" "0x00000002 - SyncIn. Sync server changes to the local computer. \n" "0x00000004 - SyncOut. Sync local computer changes to the server. \n" "0x00000008 - PinNewFiles. Pin any new files found on server inside pinned directories. \n" "0x00000010 - PinLinkTargets. When pinning, if the file is a LNK file, pin the target also. \n" "0x00000020 - PinForUser. When pinning, pin for the logged-on user. \n" "0x00000040 - PinForUser_Policy. When pinning, pin for the logged-on user as if pinned by Group Policy. \n" "0x00000080 - PinForAll. When pinning, pin for all users. \n" "0x00000200 - LowPriority. Perform sync at low CPU and I/O priority whenever possible. \n" "0x00000400 - AsyncProgress. Use asynchronous progress reporting. This may drop some \"success\" notifications for performance. \n" "0x00000800 - Interactive. OK to interact with user if necessary (i.e. alternate credential requests). \n" "0x00001000 - Console. All interaction directed to console. \n" "0x00002000 - SkipSuspendedDirs. Do not sync suspended directories. \n" "0x00010000 - Background. Minimize sharing violations. \n" "0x10000000 - CrKeepLocal. Resolve all conflicts by copying the local computer copy to the server. \n" "0x20000000 - CrKeepRemote. Resolve all conflicts by copying the server copy to the local computer. \n" "0x30000000 - CrKeepLatest. Resolve all conflicts by keeping the \"latest\" copy. \n\n" "Note that CrKeepLocal, CrKeepRemote, and CrKeepLatest are not flag values. Set only \n" "one of these to specify a conflict resolution policy. If no conflict resolution " "policy is specified, conflicts remain unresolved and may be viewed in the Sync Center " "Conflicts folder.") ] uint32 Flags); [implemented, static, Description("Assures an item will be available offline. Pinning an item ensures it " "is protected from automatic eviction should the Offline Files cache need " "additional disk space. To monitor progress, implement a WMI event sink to " "receive OnProgress notifications. The Message parameter contains a text string encoded " "with the following colon-delimited format: \n\n" " <reason>:<result>:<result text>:[<path>] \n\n" "where: \n\n" " <reason> \n" " The type of progress notification. One of the following: \n" " 0 = Begin - Sent once at start of the operation. \n" " 1 = End - Sent once at the end of the operation. \n" " 2 = ItemBegin - Sent at the start of processing each item. \n" " 3 = ItemResult - Sent at the end of processing each item. \n\n" " <result> \n" " Unsigned integer HRESULT. 0 = Success. \n\n" " <result text> \n" " Windows message text associated with <result>. \n\n" " <path> \n" " UNC path of item processed. This is empty if <reason> is \n" " Begin (0) or End (1)."): ToInstance ToSubClass] uint32 Pin([in, Description("Array of UNC path strings identifying directories and files to pin.")] string Paths[], [in, Values{"OfflineFilesPinControlFlagFill", "OfflineFilesPinControlFlagPinLinkTargets", "OfflineFilesPinControlFlagForUser", "OfflineFilesPinControlFlagForUser_Policy", "OfflineFilesPinControlFlagForAll", "OfflineFilesPinControlFlagLowPriority", "OfflineFilesPinControlFlagAsyncProgress", "OfflineFilesPinControlFlagInteractive", "OfflineFilesPinControlFlagConsole", "OfflineFilesPinControlFlagBackground"}: ToInstance ToSubClass, ValuesMap{"0x00000001", "0x00000010", "0x00000020", "0x00000040", "0x00000080", "0x00000200", "0x00000400", "0x00000800", "0x00001000", "0x00010000"}: ToSubClass, Description("May be one or more of the following: \n\n" "0x00000001 - Fill. Fill files when pinning. \n" "0x00000020 - PinForUser. Pin for the logged-on user. \n" "0x00000040 - PinForUser_Policy. Pin for the logged-on user as if pinned by Group Policy. \n" "0x00000080 - PinForAll. Pin for all users. \n" "0x00000200 - LowPriority. Perform operation at low CPU and I/O priority whenever possible. \n" "0x00000400 - AsyncProgress. Use asynchronous progress reporting. This may drop some \"success\" notifications for performance. \n" "0x00000800 - Interactive. OK to interact with user if necessary (i.e. alternate credential requests). \n" "0x00001000 - Console. All interaction directed to console. \n" "0x00010000 - Background. Minimize sharing violations.") ] uint32 Flags, [in, Description("For directory paths, indicates if the operation is to apply to " "the entire directory tree or only to the directory entry itself. " "This parameter is ignored for file paths.")] boolean Deep); [implemented, static, Description("Removes the assurance that an item will be available offline. In addition, " "if the item is no longer pinned for any reason and if it has no unsynchronized " "local changes, it is automatically deleted from the Offline Files cache. To " "monitor progress, implement a WMI event sink to receive OnProgress notifications. " "The Message parameter contains a text string encoded with the following colon-delimited format: \n\n" " <reason>:<result>:<result text>:[<path>] \n\n" "where: \n\n" " <reason> \n" " The type of progress notification. One of the following: \n" " 0 = Begin - Sent once at start of the operation. \n" " 1 = End - Sent once at the end of the operation. \n" " 2 = ItemBegin - Sent at the start of processing each item. \n" " 3 = ItemResult - Sent at the end of processing each item. \n\n" " <result> \n" " Unsigned integer HRESULT. 0 = Success. \n\n" " <result text> \n" " Windows message text associated with <result>. \n\n" " <path> \n" " UNC path of item processed. This is empty if <reason> is \n" " Begin (0) or End (1)."): ToInstance ToSubClass] uint32 Unpin([in, Description("Array of UNC path strings identifying directories and files to pin.")] string Paths[], [in, Values{"OfflineFilesPinControlFlagForUser", "OfflineFilesPinControlFlagForUser_Policy", "OfflineFilesPinControlFlagForAll", "OfflineFilesPinControlFlagLowPriority", "OfflineFilesPinControlFlagAsyncProgress", "OfflineFilesPinControlFlagInteractive", "OfflineFilesPinControlFlagConsole", "OfflineFilesPinControlFlagBackground"}: ToInstance ToSubClass, ValuesMap{"0x00000020", "0x00000040", "0x00000080", "0x00000200", "0x00000400", "0x00000800", "0x00001000", "0x00010000"}: ToSubClass, Description("May be one or more of the following: \n\n" "0x00000020 - UnpinForUser. Unpin for the logged-on user. \n" "0x00000040 - UnpinForUser_Policy. Unpin for the logged-on user as if unpinned by Group Policy. \n" "0x00000080 - UnpinForAll. Unpin for all users. \n" "0x00000200 - LowPriority. Perform operation at low CPU and I/O priority whenever possible. \n" "0x00000400 - AsyncProgress. Use asynchronous progress reporting. This may drop some \"success\" notifications for performance. \n" "0x00000800 - Interactive. OK to interact with user if necessary (i.e. alternate credential requests). \n" "0x00001000 - Console. All interaction directed to console. \n" "0x00010000 - Background. Minimize sharing violations.") ] uint32 Flags, [in, Description("For directory paths, indicates if the operation is to apply to " "the entire directory tree or only to the directory entry itself. " "This parameter is ignored for file paths.")] boolean Deep); [implemented, static, Description("Deletes one or more items from the Offline Files cache."): ToInstance ToSubClass] uint32 DeleteItems([in, Description("Array of UNC path strings identifying directories and files to be deleted.")] string Paths[], [in, Values{"OfflineFilesDeleteFlagNoAutoCached", "OfflineFilesDeleteFlagNoPinned", "OfflineFilesDeleteFlagDelModified", "OfflineFilesDeleteFlagAdmin"}: ToInstance ToSubClass, ValuesMap{"0x00000001", "0x00000002", "0x00000004", "0x80000000"}: ToSubClass, Description("May be one or more of the following: \n\n" "0x00000001 - NoAutoCached. Do not delete non-pinned files. \n" "0x00000002 - NoPinned. Do not delete pinned files. \n" "0x00000004 - DelModified. OK to delete files with unsynchronized changes. \n" "0x80000000 - Admin. If script is running under an account that is a local adminstrator, act as administrator when accessing the Offline Files cache.") ] uint32 Flags); [implemented, static, Description("Encrypts or unencrypts files in the Offline Files cache"): ToInstance ToSubClass] uint32 Encrypt([in, Description("Set to True to encrypt, False to unencrypt.")] boolean Encrypt, [in, Values{"OfflineFilesEncryptionControlFlagLowPriority", "OfflineFilesEncryptionControlFlagAsyncProgress", "OfflineFilesEncryptionControlFlagInteractive", "OfflineFilesEncryptionControlFlagConsole", "OfflineFilesEncryptionControlFlagBackground"}: ToInstance ToSubClass, ValuesMap{"0x00000200", "0x00000400", "0x00000800", "0x00001000"}: ToSubClass, Description("May be one or more of the following: \n\n" "0x00000200 - LowPriority. Perform operation at low CPU and I/O priority whenever possible. \n" "0x00000400 - AsyncProgress. Use asynchronous progress reporting. This may drop some \"success\" notifications for performance. \n" "0x00000800 - Interactive. OK to interact with user if necessary (i.e. alternate credential requests). \n" "0x00001000 - Console. All interaction directed to console. \n" "0x00010000 - Background. Minimize sharing violations.") ] uint32 Flags); [implemented, static, Description("Suspends or un-suspends a directory tree in the Offline Files cache. A suspended " "directory tree is always offline but may be synchronized using the Synchronize " "method or through Windows Sync Center."): ToInstance ToSubClass] uint32 SuspendRoot([in, Description("The UNC path of the directory to be suspended. The path must exist " "in the Offline Files cache.")] string Path, [in, Description("Set to True to suspend, False to un-suspend.")] boolean Suspend); [implemented, static, Description("Transitions to offline the remote file system scope associated with the item."): ToInstance ToSubClass] uint32 TransitionOffline([in, Description("The UNC path of the cache item.")] string Path, [in, Description("Force open files closed.")] boolean Force, [in, Values{"OfflineFilesTransitionFlagInteractive", "OfflineFilesTransitionFlagConsole"}: ToInstance ToSubClass, ValuesMap{"0x00000001", "0x00000002"}: ToSubClass, Description("May be one or more of the following: \n\n" "0x00000001 - Interactive. OK to interact with user if necessary (i.e. alternate credential requests). \n" "0x00000002 - Console. All interaction directed to console. ")] uint32 Flags, [out, Description("On return, if this value is True, open files prevented the transition.")] boolean OpenFiles ); [implemented, static, Description("Transitions to online the remote file system scope associated with the item."): ToInstance ToSubClass] uint32 TransitionOnline([in, Description("The UNC path of the cache item.")] string Path, [in, Values{"OfflineFilesTransitionFlagInteractive", "OfflineFilesTransitionFlagConsole"}: ToInstance ToSubClass, ValuesMap{"0x00000001", "0x00000002"}: ToSubClass, Description("May be one or more of the following: \n\n" "0x00000001 - Interactive. OK to interact with user if necessary (i.e. alternate credential requests). \n" "0x00000002 - Console. All interaction directed to console. ") ] uint32 Flags); }; //************************************************************************** //* Class: Win32_OfflineFilesAssociatedItems //* Derived from: CIM_Dependency //************************************************************************** [ UUID("{db089a12-f250-47aa-b9d0-89806d928ba6}") : ToInstance ] class Win32_OfflineFilesAssociatedItems { [ read : ToSubclass, key : ToInstance ToSubclass DisableOverride, Override("Antecedent") : ToSubclass ] Win32_OfflineFilesCache Ref Antecedent; [ read : ToSubclass, key : ToInstance ToSubclass DisableOverride, Override("Dependent") : ToSubclass ] Win32_OfflineFilesItem Ref Dependent; }; //************************************************************************** //* Instances of: __Win32Provider //************************************************************************** instance of __Win32Provider as $P1 { Name = "Win32_OfflineFilesProvider"; CLSID = "{2DCD1DAF-A110-49c0-BFDB-6FDF557B5FDF}"; ImpersonationLevel = "1"; PerUserInitialization = "TRUE"; }; //************************************************************************** //* Instances of: __InstanceProviderRegistration //************************************************************************** instance of __InstanceProviderRegistration { provider = $P1; SupportsEnumeration = "TRUE"; SupportsGet = "TRUE"; QuerySupportLevels = {"WQL:UnarySelect"}; }; //************************************************************************** //* Instances of: __MethodProviderRegistration //************************************************************************** instance of __MethodProviderRegistration { provider = $P1; }; //* EOF cscwmi.mof