Powershell / Quest commandLets to get a list of all users logon scripts from Active Directory profile tab and export to .CSV File

Posted on 2011-04-26
Medium Priority
Last Modified: 2012-08-14
Powershell / Quest commandLets to eport a list of all users logon scripts from Active Directory profile tab and export to .CSV File
Question by:mjm21
  • 2
LVL 57

Expert Comment

by:Mike Kline
ID: 35467191
Take a look at this question I helped with, that didn't include powershell (I used adfind) but the second question does




LVL 12

Accepted Solution

rlandquist earned 2000 total points
ID: 35467239
Run this command in an elevated PS window
Get-QADUser -IncludedProperties scriptPath -SizeLimit 0 | select name,scriptPath | export-csv c:\temp\logonscript1.csv

Open in new window


Author Comment

ID: 35467524

$dc = 'domain controller.your domain.net:389'
$Ou = "ou=location,DC=your domain,DC=net"
Get-QADUser -IncludedProperties scriptPath -SizeLimit 0 -dc $dc -searchroot $ou| select name,scriptPath | export-csv c:\temp\logonscript1.csv

Author Comment

ID: 35467561
Thanks for you help.

Mkline71 - how can you tell addfind to run on a paricular OU?

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Wouldn't it be nice if objects in Active Directory automatically moved into the correct Organizational Units? This is what AutoAD aims to do and as a plus, it automatically creates Sites, Subnets, and Organizational Units.
A walk-through example of how to obtain and apply new DID phone numbers to your cloud PBX enabled users that are configured in Office 365. Whether you have 1, 10 or 100+ users in your tenant, it's quite easy to get them phone-enabled and making/rece…
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…
This video shows how to use Hyena, from SystemTools Software, to update 100 user accounts from an external text file. View in 1080p for best video quality.

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question