• Products
    • View all products
    • Free trials
  • Solutions
    • All Solutions
    • All Integrations
  • Resources
    • All Resources
    • Learning Hub
  • 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: PowerShell
  • FAQs
  • Script Center
  • Script Center: VBScript
  • Tips and How-to's
  • 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 4 years 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 4 years ago
    • Active Roles Community
    • Wiki
  • Export Domain Users to a .csv file

    Terrance.Crombie
    Terrance.Crombie

    Here is a simple PowerShell script example on how to export Domain Users to a .csv file for specific attributes:

    samAccountName
    Display name
    First Name
    Last Name
    Description

    Connect-QADService -proxy

    $users = (Get-QADUser -DontUseDefaultIncludedProperties…

    • over 4 years 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 4 years ago
    • Active Roles Community
    • Wiki
  • Get Active Roles Management Shell Module version (with build number)

    Terrance.Crombie
    Terrance.Crombie

    SCRIPT

     

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

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

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

    • over 4 years ago
    • Active Roles Community
    • Wiki
  • How to schedule the Active Roles Management shell

    Terrance.Crombie
    Terrance.Crombie

    DESCRIPTION

    The Active Roles Management Shell can be used externally on a scheduled basis. For this, use Windows Scheduled Tasks and configure the following options:

    Program/Script: PowerShell.exe

    Add arguments (optional): "path\script.ps1"…

    • over 4 years ago
    • Active Roles Community
    • Wiki
  • Alert on pending approval request expiration

    Terrance.Crombie
    Terrance.Crombie

    DESCRIPTION

    This is a sample that sends email with list of pending approval for which there is no decision more than a few days.


    How to use

    To use this script, import this script as a new powershell scheduled task script module and create a new scheduled…

    • over 4 years ago
    • Active Roles Community
    • Wiki
  • Functions for creation of Policy links

    Terrance.Crombie
    Terrance.Crombie

    This set of functions allow the creation of new policy links and blocking of existing policy links via PowerShell.

    EG to create a new policy link to the policy "My User Check" on the Account OU

    CreatePOLink -PolicyObjectIdentity "My User Check…

    • over 4 years ago
    • Active Roles Community
    • Wiki
  • Random Password Generation

    Terrance.Crombie
    Terrance.Crombie

    DESCRIPTION

    This is a random password generation script that allows for values to be specified for minimum number of numeric, lower case letters, and upper case characters. The length is also variable, and will be a random length between $MinPwdLen and…

    • over 4 years ago
    • Active Roles Community
    • Wiki
  • PowerShell: Update Property Generation and Validation policy with a new possible value list

    Terrance.Crombie
    Terrance.Crombie

    DESCRIPTION

    This sample demonstrates how to use PowerShell to add a new value ('zzz') to ARS PGV policy's possible value list


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

    • over 4 years ago
    • Active Roles Community
    • Wiki
  • Active Roles Script Policy Best Practices

    Terrance.Crombie
    Terrance.Crombie

    Best practices

    Don't change the default declaration of event handlers in Active Roles script policies. It can save a lot of time when troubleshooting. Use the Add Event Handlers button from the toolbar of the Active Roles Console when script editing…

    • over 4 years ago
    • Active Roles Community
    • Wiki
  • PowerShell samples

    Terrance.Crombie
    Terrance.Crombie

    The following code samples demonstrate how to work with Active Roles via PowerShell.

    • over 2 years 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
  • © 2025 One Identity LLC. ALL RIGHTS RESERVED.
  • Legal
  • Terms of Use
  • Privacy
  • Community Feedback & Support
  • Cookie Preference Center