DA creates a role, NewRole of class type Role, with tasks to start a service, manage printer documents, and create a new file share.
Set RoleObj = Con.Create("role",
'Create a new 'Role' named "NewRole". Roles have class type "role".
' Add following tasks in the newly created role
'Add task for rights to start a service
'Add task for rights to perform administrative tasks on the print job operations
'Add task for rights to Create file share
'To commit the changes to directory
Set RoleObj = Nothing
'releasing the object
Connecting to Roles Container