• Products
    • View all products
    • Free trials
    • Identity Governance and Administration
      • Identity Manager
      • Identity Manager Data Governance
      • Starling Connect
    • AD Account Lifecycle Management
      • Active Roles
      • Authentication Services
      • Starling Connect
      • Password Manager
    • Privileged Access Management
      • One Identity Safeguard
      • Safeguard Authentication Services
      • Safeguard for Privileged Analytics
      • Safeguard for Privileged Passwords
      • Safeguard for Privileged Sessions
      • Safeguard for Sudo
    • Access control
      • Defender
      • Starling Two-Factor Authentication
      • Password Manager
    • syslog-ng Log Management
  • Integrations
    • Integrations Overview
    • Cloud Infrastructure
    • Access Management
      • Ping
    • Applications
      • SAP
    • Privileged Access Management
      • Blue Prism
      • HashiCorp
    • Data
    • Compliance
  • Solutions
    • All Solutions
    • Secure the organization
    • Drive operational efficiencies
    • Enable compliance and auditing
    • Support digital transformation
    • Enhance log management
  • Resources
    • Blogs
      • Blogs A to Z
      • AD-Centered IAM
      • Cloud
      • Identity Governance & Administration
      • Privileged Access Management
      • syslog-ng Community
    • Customer Stories
    • Documents
    • Events
    • Webcasts
    • Technical Documentation
    • Videos
    • Whitepapers
  • Trials
  • Support
    • Support Home
    • By Product
      • All Products
      • Active Roles
      • Authentication Services
      • Cloud Access Manager
      • Defender
      • Identity Manager
      • Password Manager
      • Safeguard
      • Starling Identity Analytics & Risk Intelligence
      • Starling Two-Factor Authentication
      • TPAM Appliance
    • Contact Support
      • Overview
      • Customer Service
      • Licensing Assistance
      • Renewal Assistance
      • Technical Support
    • Download Software
    • Knowledge Base
    • My Account
      • My Products
      • My Service Requests
      • My Licenses
      • My Groups
      • My Profile
    • Policies & Procedures
    • Professional Services
    • Technical Documentation
    • One Identity University
    • User Forums
    • Video Tutorials
  • Partners
    • Overview
    • Partner Circle Log In
    • Become a Partner
    • Find a Partner
    • Partner Community
  • Communities
    • Home
    • Blogs
      • Blogs A to Z
      • One Identity Community
      • AD Account Lifecycle Management
      • Cloud
      • Identity Governance & Administration
      • Privileged Access Management
      • syslog-ng Community
    • Forums
      • All Product Forums
      • Active Roles
      • Identity Manager
      • Password Manager
      • Safeguard
      • Unix Access Management
    • Social Networks
      • Facebook
      • LinkedIn
      • Twitter
      • YouTube
One Identity Community
One Identity Community
  • Site
  • User
  • Site
  • Search
  • User
Active Roles Community
Active Roles Community
Wiki Active Roles Script Center
  • Forum
  • Ideas
  • Wiki
  • More
  • Cancel
  • New
  • All tags
  • Script Center
  • Active Roles
  • Best Practices
  • FAQs
  • homedirectorys
  • move user home folders
  • Powershell
  • Script Center: C#
  • Script Center: JavaScript
  • Script Center: PowerShell
  • Script Center: PowerShell useful
  • Script Center: VBScript
  • Tips and How-to's
  • Active Roles Script Center

    Daniel.Bishop
    Daniel.Bishop

    Welcome to the Active Roles Script Center.

    These examples are provided as is, without warranty of any kind, either expressed or implied, including but not limited to the warranties or merchantability and/or fitness for a particular purpose.


    If you want…

    • over 1 year ago
    • Active Roles Community
    • Wiki
  • PowerShell Library Source Code

    Terrance.Crombie
    Terrance.Crombie

    # *****************************************************************************
    # Best Practices Library For PowerShell
    # *****************************************************************************\
    #
    # Copyright One Identity
    #
    #
    #========================…

    • over 1 year ago
    • Active Roles Community
    • Wiki
  • Calculate user mailbox size

    Terrance.Crombie
    Terrance.Crombie

    DESCRIPTION

    This script calculates user mailbox size for a given user.

    SCRIPT

    #*********************************************************************************

    # THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND,

    …
    • over 1 year ago
    • Active Roles Community
    • Wiki
  • Home Folder Move with User Moves

    Terrance.Crombie
    Terrance.Crombie

    Here is a Powershell script that can be used to have a user's Homedirectory change and move from one school location to another.

    NOTES

    Add this code as a Powershell Script Module. Then add it to your Policy as a "Script Execution Policy".…

    • over 1 year ago
    • Active Roles Community
    • Wiki
  • Review for user personal data

    Terrance.Crombie
    Terrance.Crombie

    DESCRIPTION

    • Create two virtual attributes and apply them to the user class:

    edsvaIamAgreed - boolean, non-stored, single-valued

    edsvaAgreedDate - generalized time, stored, single-valued

    • Customize Web UI form with user personal data, and add to this…
    • over 1 year ago
    • Active Roles Community
    • Wiki
  • Group management

    Terrance.Crombie
    Terrance.Crombie

    These VBScript samples are relevant to Active Directory group management

    • over 1 year ago
    • Active Roles Community
    • Wiki
  • Prohibite a permission propagation to AD

    Terrance.Crombie
    Terrance.Crombie

    DESCRIPTION

    This script policy sample demonstrates a permission propagation (aka Sync permission to Active Roles) prohibition.

    This policy should be applied to the ATLinks container (CN=AT Links,CN=Configuration)


    Note This code may use functions from…

    • over 1 year ago
    • Active Roles Community
    • Wiki
  • VBScript Library source code

    Terrance.Crombie
    Terrance.Crombie

    '*********************************************************************************

    ' THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND,

    ' EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED…

    • over 1 year ago
    • Active Roles Community
    • Wiki
  • Script policy sample

    Terrance.Crombie
    Terrance.Crombie

    An example of a well-formed Active Roles script policy that uses the suggested library.

    SCRIPT

    '*********************************************************************************

    ' THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF…

    • over 1 year ago
    • Active Roles Community
    • Wiki
  • User logon name generation without national characters

    Terrance.Crombie
    Terrance.Crombie

    DESCRIPTION

    A common Active Roles query is how to replace national characters (for ex: æ,ø,å) with general Latin characters (for ex: ae, o, a) in generated user logon name (sAMAccountName) based on a user first & last names that can contain these national…

    • over 1 year ago
    • Active Roles Community
    • Wiki
  • Building a Managed Unit Dynamically

    Terrance.Crombie
    Terrance.Crombie

    DESCRIPTION

    The query-based Managed Units in ARS are all full "Subtree" searches of the provided container. In some cases this is undesirable; rather a "Onelevel" search is needed instead.

    The code below is intended to capture object…

    • over 1 year ago
    • Active Roles Community
    • Wiki
  • Renaming a user post-creation

    Terrance.Crombie
    Terrance.Crombie

    DESCRIPTION

    The purpose of this script is to rename a user immediately post-creation to include the description (or any other arbitrary attribute) as part of the name.

    This cannot be enforced in the Active Roles Console client prior to creation since…

    • over 1 year ago
    • Active Roles Community
    • Wiki
  • Create/Delete local user accounts, basing upon creation/deletion of user accounts in Active Directory

    Terrance.Crombie
    Terrance.Crombie

    DESCRIPTION

    No description


    Note This code may use functions from the Active Roles Script Policy Best Practices. Please, follow the link to obtain instructions and code for those functions.


    SCRIPT

    '**************************************************…

    • over 1 year ago
    • Active Roles Community
    • Wiki
  • Prevent copying an attribute on user copy

    Terrance.Crombie
    Terrance.Crombie

    DESCRIPTION

    When you copy a user account, certain attributes are copied. The default list of attributes to copy is defined in the Active Directory schema. Attributes that should be copied when the object is copied have a 16th bit set in the seachFlags…

    • over 1 year ago
    • Active Roles Community
    • Wiki
  • Copy additional attributes on user copy

    Terrance.Crombie
    Terrance.Crombie

    DESCRIPTION

    This script sample demonstrates how to copy additional attributes on user copy.

    In script sample, change arrAttributeList to list of your additional attributes


    Note This code may use functions from the Active Roles Script Policy Best Pra…

    • over 1 year ago
    • Active Roles Community
    • Wiki
  • How to enable cross-domain moving of user accounts

    Terrance.Crombie
    Terrance.Crombie

    DESCRIPTION

    Active Roles has the ability to move a user account between domains, but by default, this ability is hidden on the user interface. Possible, an error will be raised during cross-domain moving if a moving user is a member of a global group…

    • over 1 year ago
    • Active Roles Community
    • Wiki
  • Re-locates users according to a value set in a virtual attribute

    Terrance.Crombie
    Terrance.Crombie

    DESCRIPTION

    Re-locates users in the TestOU Users container according to the value set in the edsvaLOS-U attribute.


    Note This code may use functions from the Active Roles Script Policy Best Practices. Please, follow the link to obtain instructions and…

    • over 1 year ago
    • Active Roles Community
    • Wiki
  • Move a user to some OU upon creation

    Terrance.Crombie
    Terrance.Crombie

    DESCRIPTION

    The corporate policy may demand all newly created user should be located in special OU This script demonstrates how to meet this requirement.

    Note:  Check "Wait while post-event handlers complete operation" checkbox on policy entry UI.…

    • over 1 year ago
    • Active Roles Community
    • Wiki
  • Validate moving operations

    Terrance.Crombie
    Terrance.Crombie

    DESCRIPTION

    Validate moving operations. Apply this script policy to the Active Directory node.


    Note This code may use functions from the Active Roles Script Policy Best Practices. Please, follow the link to obtain instructions and code for those functions…

    • over 1 year ago
    • Active Roles Community
    • Wiki
  • User Provisioning - Home Drive Location and Profile based on UserID

    Terrance.Crombie
    Terrance.Crombie

    DESCRIPTION

    Here's what I put together for creating and renaming our users. It does the following:

    1. Creates home drives in two different locations based on the first letter of the SamAccountName (A-L and M-Z). It creates the folders and handles the…
    • over 1 year ago
    • Active Roles Community
    • Wiki
  • Populate user attributes based on another attribute - e.g. 'Company'

    Terrance.Crombie
    Terrance.Crombie

    DESCRIPTION

    This script demonstrates how to populate specific user attributes based on a change in a different user attribute.


    Note This code may use functions from the Active Roles Script Policy Best Practices. Please, follow the link to obtain instructions…

    • over 1 year ago
    • Active Roles Community
    • Wiki
  • Stamping manager DN by given manager Id

    Terrance.Crombie
    Terrance.Crombie

    DESCRIPTION

    This script policy sample stamps the "manager" attribute (DN syntax) by given "manager' employee id" value during user creation and modification.

    The sample assumes that the user class schema is extended by edsvaM…

    • over 1 year ago
    • Active Roles Community
    • Wiki
  • Custom script-based User Logon Name Generation policy

    Terrance.Crombie
    Terrance.Crombie

    DESCRIPTION

    No description


    Note This code may use functions from the Active Roles Script Policy Best Practices. Please, follow the link to obtain instructions and code for those functions.


    SCRIPT

     

    '**************************************************…

    • over 1 year ago
    • Active Roles Community
    • Wiki
  • Custom script-based PVG-policy with possible values list

    Terrance.Crombie
    Terrance.Crombie

    DESCRIPTION

    This is an example of a script-based PVG-policy with a possible values list. It may be used instead of a regular PVG-policy to provide more functionality.


    Note This code may use functions from the Active Roles Script Policy Best Practice…

    • over 1 year ago
    • Active Roles Community
    • Wiki
  • Simplified version of the script-based PVG-policy with a possible values list

    Terrance.Crombie
    Terrance.Crombie

    DESCRIPTION

    This is a simplified version of the script-based PVG-policy with a possible values list.


    Note This code may use functions from the Active Roles Script Policy Best Practices. Please, follow the link to obtain instructions and code for those…

    • over 1 year ago
    • Active Roles Community
    • Wiki
  • View related content throughout Active Roles Community
  • More
  • Cancel
>
  • Company
    • About Us
    • Buy
    • Careers
    • Contact Us
    • News
  • Resources
    • Blogs
    • Customer Stories
    • Documents
    • Events
    • Videos
  • Support
    • Professional Services
    • Renew Support
    • Technical Support
    • One Identity University
    • Support Service
  • Social Networks
    • Facebook
    • Instagram
    • LinkedIn
    • Twitter
    • YouTube
  • © 2023 One Identity LLC. ALL RIGHTS RESERVED.
  • Legal
  • Terms of Use
  • Privacy
  • Community Feedback & Support
  • Cookie Preference Center