# \#powershell

**URL:** https://community.netwrix.com/tag/powershell/45.md

[Latest](https://community.netwrix.com/latest.md) · [Categories](https://community.netwrix.com/categories.md) · [Tags](https://community.netwrix.com/tags.md)

---

## [PowerShell in NTP](https://community.netwrix.com/t/powershell-in-ntp/137521)

<div class="topic-metadata">

**Author:** [@ACDunn3](https://community.netwrix.com/u/ACDunn3)\
**Replies:** 2\
**Last updated:** [August 24, 2026, 9:01pm UTC](https://community.netwrix.com/t/powershell-in-ntp/137521 "2026-08-24T21:01:56Z")

</div>

Is there any detailed information regarding the use of PowerShell in NTP? Things such as will AD modules like Get-ADUser work? Also things like sending email or SIEM outputs via the script? Detailed breakdown of the $…

---

## [Custom PowerShell Scripts and Valuted Credentials](https://community.netwrix.com/t/custom-powershell-scripts-and-valuted-credentials/131895)

<div class="topic-metadata">

**Author:** [@DavidHenry](https://community.netwrix.com/u/DavidHenry)\
**Replies:** 6\
**Last updated:** [June 2, 2026, 11:31am UTC](https://community.netwrix.com/t/custom-powershell-scripts-and-valuted-credentials/131895 "2026-06-02T11:31:03Z")

</div>

Hey everyone, I am working on building out an integration with one of our internal systems and Netwrix Privilege Secure and came across an interesting dilemma. I have a custom PowerShell action that will query the remote…

---

## [How to create a PowerShell connector for provisioning](https://community.netwrix.com/t/how-to-create-a-powershell-connector-for-provisioning/121886)

<div class="topic-metadata">

**Author:** [@hazem.taouai](https://community.netwrix.com/u/hazem.taouai)\
**Replies:** 0\
**Last updated:** [February 2, 2026, 9:38am UTC](https://community.netwrix.com/t/how-to-create-a-powershell-connector-for-provisioning/121886 "2026-02-02T09:38:13Z")

</div>

Introduction If an application is not listed among the standard Netwrix Identity Manager connectors, this does not represent a limitation to integration. As long as the application exposes an interface such as LDAP, SQL,…

---

## [How to create a PowerShell connector for synchronization](https://community.netwrix.com/t/how-to-create-a-powershell-connector-for-synchronization/120326)

<div class="topic-metadata">

**Author:** [@hazem.taouai](https://community.netwrix.com/u/hazem.taouai)\
**Replies:** 1\
**Last updated:** [January 5, 2026, 10:23am UTC](https://community.netwrix.com/t/how-to-create-a-powershell-connector-for-synchronization/120326 "2026-01-05T10:23:29Z")

</div>

Introduction If an application is not listed among the standard Netwrix Identity Manager connectors, this does not represent a limitation to integration. As long as the application exposes an interface such as LDAP, SQL,…

---

## [Use cases for Application user and task automation](https://community.netwrix.com/t/use-cases-for-application-user-and-task-automation/119822)

<div class="topic-metadata">

**Author:** [@Benjamin](https://community.netwrix.com/u/Benjamin)\
**Replies:** 3\
**Last updated:** [December 22, 2025, 12:47pm UTC](https://community.netwrix.com/t/use-cases-for-application-user-and-task-automation/119822 "2025-12-22T12:47:19Z")

</div>

Hi, I’m currently reviewing the available resources, but I haven’t been able to find a concrete implementation scenario that explains how to authenticate to NPS server using an application account (API key + client cert…

---

## [PSExec Commands to Domain Controller](https://community.netwrix.com/t/psexec-commands-to-domain-controller/115560)

<div class="topic-metadata">

**Author:** [@brandern](https://community.netwrix.com/u/brandern)\
**Replies:** 3\
**Last updated:** [October 14, 2025, 8:29pm UTC](https://community.netwrix.com/t/psexec-commands-to-domain-controller/115560 "2025-10-14T20:29:46Z")

</div>

My anti-virus (Crowdstrike) is flagging PSExec commands from my audit server (which only has Netwrix Auditor on it and was created in the last 3 months) and my primary domain controller. When I review Netwrix Auditor doc…

---

## [Last Logon report in Netwrix Enterprise Auditor](https://community.netwrix.com/t/last-logon-report-in-netwrix-enterprise-auditor/114789)

<div class="topic-metadata">

**Author:** [@rpaufve](https://community.netwrix.com/u/rpaufve)\
**Replies:** 3\
**Last updated:** [October 1, 2025, 7:46pm UTC](https://community.netwrix.com/t/last-logon-report-in-netwrix-enterprise-auditor/114789 "2025-10-01T19:46:39Z")

</div>

Hi - I had found a PowerShell script that pulls the Last Logon attribute for all user objects against all domain controllers. It then compares and finds the newest logon and generates a csv. Is there a way to get Audit…

---

## [Working on backup and restore scripts for Directory Manager](https://community.netwrix.com/t/working-on-backup-and-restore-scripts-for-directory-manager/15901)

<div class="topic-metadata">

**Author:** [@shimonek](https://community.netwrix.com/u/shimonek)\
**Replies:** 12\
**Last updated:** [September 23, 2025, 8:59pm UTC](https://community.netwrix.com/t/working-on-backup-and-restore-scripts-for-directory-manager/15901 "2025-09-23T20:59:37Z")

</div>

I am working on a script that will allow me to create a backup of our Directory Manager groups. I am having a hard time finding documentation that describes how to retrieve some of the necessary group properties using P…

---

## [Custom PowerShell Action Permissions](https://community.netwrix.com/t/custom-powershell-action-permissions/113042)

<div class="topic-metadata">

**Author:** [@DavidHenry](https://community.netwrix.com/u/DavidHenry)\
**Replies:** 4\
**Last updated:** [September 2, 2025, 4:26pm UTC](https://community.netwrix.com/t/custom-powershell-action-permissions/113042 "2025-09-02T16:26:45Z")

</div>

I’m just posting as I have come to a realization that I can’t find any documentation on what permission level custom PowerShell actions run at. More specifically, when discussing the possibility of creating a custom Powe…

---

## [Getting Started with the API and PowerShell Module - A Beginner's Guide](https://community.netwrix.com/t/getting-started-with-the-api-and-powershell-module-a-beginners-guide/111025)

<div class="topic-metadata">

**Author:** [@dpiazza](https://community.netwrix.com/u/dpiazza)\
**Replies:** 2\
**Last updated:** [July 30, 2025, 6:24pm UTC](https://community.netwrix.com/t/getting-started-with-the-api-and-powershell-module-a-beginners-guide/111025 "2025-07-30T18:24:46Z")

</div>

:desktop\_computer: Overview For users just getting started writing PowerShell scripts utilizing Privilege Secure for Access Management’s PowerShell module and API, I wanted to post a simple script that teaches the basics…

---

## [Scripting Assignment of Resources to Resource Groups](https://community.netwrix.com/t/scripting-assignment-of-resources-to-resource-groups/109592)

<div class="topic-metadata">

**Author:** [@dpiazza](https://community.netwrix.com/u/dpiazza)\
**Replies:** 0\
**Last updated:** [July 1, 2025, 7:35pm UTC](https://community.netwrix.com/t/scripting-assignment-of-resources-to-resource-groups/109592 "2025-07-01T19:35:26Z")

</div>

What Problem Does This Solve? Creating Resource Groups based on LDAP Queries or other external information is a topic that comes up on occasion. There isn’t a way to this natively within Privilege Secure, but we can mana…

---

## [Using PowerShell to Update Managed Resource Service Accounts at Scale](https://community.netwrix.com/t/using-powershell-to-update-managed-resource-service-accounts-at-scale/17250)

<div class="topic-metadata">

**Author:** [@dpiazza](https://community.netwrix.com/u/dpiazza)\
**Replies:** 0\
**Last updated:** [June 12, 2025, 9:54pm UTC](https://community.netwrix.com/t/using-powershell-to-update-managed-resource-service-accounts-at-scale/17250 "2025-06-12T21:54:52Z")

</div>

What Problem Does This Solve? Someone recently asked me how they can quickly update the service account for thousands of managed resources in Privilege Secure. When they try to do that through the UI, they’re not able to…

---

## [Custom Powershell to Update File Dependencies with Service Account passwords](https://community.netwrix.com/t/custom-powershell-to-update-file-dependencies-with-service-account-passwords/14919)

<div class="topic-metadata">

**Author:** [@Jerome.diggs](https://community.netwrix.com/u/Jerome.diggs)\
**Replies:** 2\
**Last updated:** [May 30, 2025, 10:24pm UTC](https://community.netwrix.com/t/custom-powershell-to-update-file-dependencies-with-service-account-passwords/14919 "2025-05-30T22:24:10Z")

</div>

Overview I was recently asked if you can use NPS to update various configuration files that have passwords embedded in them. Typically, you’ll see this with various applications that store service account passwords. In…

---

## [Retrieving Custom Fields From Connection Profiles](https://community.netwrix.com/t/retrieving-custom-fields-from-connection-profiles/16111)

<div class="topic-metadata">

**Author:** [@DavidHenry](https://community.netwrix.com/u/DavidHenry)\
**Replies:** 2\
**Last updated:** [May 30, 2025, 2:40pm UTC](https://community.netwrix.com/t/retrieving-custom-fields-from-connection-profiles/16111 "2025-05-30T14:40:20Z")

</div>

Good morning everyone, I am posting to see if anyone has worked with the custom fields in the connection profiles. I have created a custom field as shown below, but I can’t seem to find any reference to it within the act…

---

## [Check For Logged in User Custom PowerShell](https://community.netwrix.com/t/check-for-logged-in-user-custom-powershell/15846)

<div class="topic-metadata">

**Author:** [@DavidHenry](https://community.netwrix.com/u/DavidHenry)\
**Replies:** 1\
**Last updated:** [May 28, 2025, 8:26pm UTC](https://community.netwrix.com/t/check-for-logged-in-user-custom-powershell/15846 "2025-05-28T20:26:34Z")

</div>

Overview After speaking with another user in the discussion board about how they could check for a signed in user session before provisioning another activity, I created the code explained below. I can see some value fro…

---

## [Adding Requester to Google Workspace Role](https://community.netwrix.com/t/adding-requester-to-google-workspace-role/15284)

<div class="topic-metadata">

**Author:** [@DavidHenry](https://community.netwrix.com/u/DavidHenry)\
**Replies:** 8\
**Last updated:** [May 28, 2025, 6:38pm UTC](https://community.netwrix.com/t/adding-requester-to-google-workspace-role/15284 "2025-05-28T18:38:07Z")

</div>

Overview I had been tasked with investigating if Netwrix could be used to handle a specific use case revolving around self elevation of privileges within the Google Workspace suite. After poking around between both the…

---

## [NPSD/NPSAM better 2gether](https://community.netwrix.com/t/npsd-npsam-better-2gether/15307)

<div class="topic-metadata">

**Author:** [@kevin.horvatin](https://community.netwrix.com/u/kevin.horvatin)\
**Replies:** 0\
**Last updated:** [May 22, 2025, 7:24pm UTC](https://community.netwrix.com/t/npsd-npsam-better-2gether/15307 "2025-05-22T19:24:31Z")

</div>

Overview If you have NPS-AM and NPS-D monitoring your organization, you will find that using Protect Mode in NPS-D will start to remove your local administrator accounts you are managing with NPS-AM. This article talks a…

---

## [PowerShell Data Collector](https://community.netwrix.com/t/powershell-data-collector/7053)

<div class="topic-metadata">

**Author:** [@simon.mccusker](https://community.netwrix.com/u/simon.mccusker)\
**Replies:** 0\
**Last updated:** [April 11, 2025, 7:47am UTC](https://community.netwrix.com/t/powershell-data-collector/7053 "2025-04-11T07:47:35Z")

</div>

PowerShell Data Collector The PowerShell Data Collector in Netwrix Access Analyser is a highly powerful & versatile tool. You can: Pass configuration variables from the Console GUI Use credentials stored in Connection…

---

## [Custom PowerShell to logoff disconnected sessions](https://community.netwrix.com/t/custom-powershell-to-logoff-disconnected-sessions/590)

<div class="topic-metadata">

**Author:** [@kevin.horvatin](https://community.netwrix.com/u/kevin.horvatin)\
**Replies:** 4\
**Last updated:** [February 21, 2025, 3:53pm UTC](https://community.netwrix.com/t/custom-powershell-to-logoff-disconnected-sessions/590 "2025-02-21T15:53:53Z")

</div>

I was recently asked if you can use NPS to disconnect idle sessions automatically on the resource you are connecting to. In order to do this you can create an Activity that will run a custom PowerShell step and can con…
