User Management Resource Administrator



Online Manual: "User Management Resource Adminstrator"
Go to: User Management Resource Administrator homepage

Script Action: Delete directory

Function

Delete the directory tree, including all files and subdirectories. Optionally, you can delete the specified directory itself. The directory tree is specified by a single directory name. The name must have the syntax: \\\\COMPUTER\\Share\\Directory_To_Delete or DRIVE:\\Directory\\Directory_To_Delete (local drive). If the directory to delete corresponds with a remote share (\\\\COMPUTER\\Shared_Dir_To_Delete), you can use the administrative share (\\\\COMPUTER\\DRIVE$) to delete the directory tree.");

Deployment

This action is typically used in a script that is intended to remove user accounts and all of the associated resources. More generally, the action can be used to delete one or more directory trees. To access the directory that must be deleted, a share is used. In case the specified directory must be deleted as well, and the directory is specified as \\SERVERNAME\ShareName, the specified share cannot be used to delete the directory. In this case, another share must be used to delete the directory. By default, the administrative share (\\SERVERNAME\C$, \\SERVERNAME\D$) is then used to delete the directory. If this share cannot be used, an error occurs.

Properties

Property Name

Description

Typical setting

Remarks

Directory name

The name of the directory tree to delete. All files, directories and subdirectories will be deleted from the specified directory. Optionally, you can delete the specified directory itself. The directory name must have the syntax: \\\\COMPUTER\\Share\\Directory_To_Delete or DRIVE:\\Directory\\Directory_To_Delete. If the directory to delete corresponds with a remote share (\\\\COMPUTER\\Shared_Dir_To_Delete), you can use the administrative share (\\\\COMPUTER\\DRIVE$) to delete the directory tree.

 

 

Delete directory option

A flag indicating if the specified directory itself (property: 'Directory name') must be deleted.

No

If not specified, the default value No is applied.

Delete read-only files and directories

A flag indicating if read-only files and directories must be removed as well. Default value: TRUE. To delete the read-only files and attributes, the read-only attribute is reset first.

Yes

If not specified, the default value Yes is applied.

Always use administrative share

A flag indicating that the administrative share must be used to delete the directory. The administrative share is by default only used if the specified directory must be deleted and the directory corresponds with a share (Syntax: \\\\COMPUTER\\Shared_Dir_To_Delete).

No

If not specified, the default value No is applied.

Never use administrative share

A flag indicating that the administrative share should not be used to delete the directory. The administrative share is by default only used if the specified directory must be deleted and the directory corresponds with a share (Syntax: \\\\COMPUTER\\Shared_Dir_To_Delete).

No

If not specified, the default value No is applied.

Use backup and restore privileges

A flag indicating that backup and restore privileges must be used to delete the directory. This property is required in case the logged on user has no access rights to the directories and files that must be deleted. The logged on user must have the corresponding access rights configured on the target computer to use these privileges successfully. See the online help for more information.

No

If not specified, the default value Yes is applied. The access rights are configured using policies. Depending on the environment, Domain security, Domain Controller Security or Local Security policies apply. The backup and restore privileges are configured by settings the Backup files and directories and Restore files and directories policies of the User Rights Assignment for the logged on user account.

Ignore error

A flag indicating that errors must be ignored when a directory tree is deleted.

No

This flag can be used to prevent error messages when a directory for instance does not exist.

 

More information:
Security - Overview

Principle of operation

Project operations - Input data

Project operations - Manage script actions

Project operations - Variables

Script Action: Create Directory

Script Action: Copy directory

Help on help

 




Home | Products | Support | Pricing | Download | Press | About Us | Contact | Sitemap
QUICK LINKS: Mass / Bulk Import Software | Network Monitoring Software | Disk Quota Management
QUICK LINKS: User and Active Directory Management | Remote Desktop Control | Free Software