Powershell "select" not outputting 1 digit data - Overclock.net - An Overclocking Community

Forum Jump: 

Powershell "select" not outputting 1 digit data

 
Thread Tools
post #1 of 3 (permalink) Old 05-01-2019, 10:41 AM - Thread Starter
^^That's my user name^^
 
KSIMP88's Avatar
 
Join Date: Jan 2005
Location: Your moms
Posts: 9,836
Rep: 395 (Unique: 286)
Powershell "select" not outputting 1 digit data

I'm trying to use the following command to display a list of users in Active Directory.
Code:
Get-ADUser -SearchBase "OU=??,OU=??,OU=??,DC=??,DC=??,DC=??,DC=??" -Filter * | select surname,Initia
ls,givenname,Initials
?? were used to mask irrelevant information that I need not share. When I use the above script, I get output similar to:

Lastname, Firstname
Lastname, Firstname
Lastname, Firstname
Lastname, Firstname
Lastname, Firstname
Lastname, Firstname

Each name obviously is different. It seems to ignore the value for "Initials". I checked myself and "Initials" is definitely the property name. I also tested using other properties that could only have a one digit value, and they don't show in the list as well, as if I never requested them. Is there a way to force the output? Yes, I could export the fullname, and deconcatenate in excel, but I want to know how to create a single script. Thanks for any help!

Hodor, hodor hodor hodor hodor. Hodor hodor hodor hodor hodor hodor, hodor hodor. Hodor, hodor hodor, hodor hodor hodor hodor. -Hodor


KSIMP88 is offline  
Sponsored Links
Advertisement
 
post #2 of 3 (permalink) Old 05-03-2019, 11:51 AM - Thread Starter
^^That's my user name^^
 
KSIMP88's Avatar
 
Join Date: Jan 2005
Location: Your moms
Posts: 9,836
Rep: 395 (Unique: 286)
Shameless bump

Hodor, hodor hodor hodor hodor. Hodor hodor hodor hodor hodor hodor, hodor hodor. Hodor, hodor hodor, hodor hodor hodor hodor. -Hodor


KSIMP88 is offline  
post #3 of 3 (permalink) Old 05-09-2019, 06:37 AM - Thread Starter
^^That's my user name^^
 
KSIMP88's Avatar
 
Join Date: Jan 2005
Location: Your moms
Posts: 9,836
Rep: 395 (Unique: 286)
Notta?

Hodor, hodor hodor hodor hodor. Hodor hodor hodor hodor hodor hodor, hodor hodor. Hodor, hodor hodor, hodor hodor hodor hodor. -Hodor


KSIMP88 is offline  
Reply

Quick Reply
Message:
Options

Register Now

In order to be able to post messages on the Overclock.net - An Overclocking Community forums, you must first register.
Please enter your desired user name, your email address and other required details in the form below.
User Name:
If you do not want to register, fill this field only and the name will be used as user name for your post.
Password
Please enter a password for your user account. Note that passwords are case-sensitive.
Password:
Confirm Password:
Email Address
Please enter a valid email address for yourself.
Email Address:

Log-in



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Show Printable Version Show Printable Version
Email this Page Email this Page


Forum Jump: 

Posting Rules  
You may post new threads
You may post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off