Quantcast
Channel: /r/powershell – How to Code .NET
Viewing all articles
Browse latest Browse all 8793

ADSI query help needed

$
0
0

Hi!

Created my first script in PS using ADSI. Goal: get AD account information based on DisplayName property. The input is a csv file which contains users and the header of interest of course is called “displayname”. The script itself can be checked here: http://pastebin.com/jXRdRinz

Now the thing is: if I test the steps manually line by line I get a proper csv file as output. However if I run it on a csv file containing hundreds of users I get an empty file – when opened in Excel the only line is this:



Can someone point me out where the problem lies?

Thank you so much!

submitted by /u/colonial113
[link] [comments]

The post ADSI query help needed appeared first on How to Code .NET.


Viewing all articles
Browse latest Browse all 8793

Latest Images

Trending Articles



Latest Images