• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2104
  • Last Modified:

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

Powershell / Quest commandLets to eport a list of all users logon scripts from Active Directory profile tab and export to .CSV File
0
mjm21
Asked:
mjm21
  • 2
1 Solution
 
Mike KlineCommented:
Take a look at this question I helped with, that didn't include powershell (I used adfind) but the second question does

http://www.experts-exchange.com/Programming/Languages/Visual_Basic/VB_Script/Q_25011712.html

http://www.experts-exchange.com/OS/Microsoft_Operating_Systems/Server/2003_Server/Q_26211232.html

Thanks

Mike
0
 
rlandquistCommented:
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

0
 
mjm21Author Commented:

$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
0
 
mjm21Author Commented:
Thanks for you help.

Mkline71 - how can you tell addfind to run on a paricular OU?
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Has Powershell sent you back into the Stone Age?

If managing Active Directory using Windows Powershell┬« is making you feel like you stepped back in time, you are not alone.  For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now