Skip to main content

All Questions

0 votes
1 answer
66 views

Trying to build an organizational chart of specific offices

I'm still fairly new to powershell so apologize if this something super basic. We got a request to create a organizational chart that will be exported to a csv and then used for other applications f ...
Spaff_Wallbridge's user avatar
1 vote
1 answer
163 views

How can I speed up the counting of matching entries between two large arrays in Powershell?

I am trying to count the number of matching elements between two large Powershell arrays/collections generated by capturing Active Directory ("AD") data. However, it is very slow. Concept ...
DIV's user avatar
  • 85
0 votes
0 answers
209 views

Converting Powershell output to Python array

I have exported a list of active users from an Active Directory in Powershell through a Python script, I now want to save the list of names as an array in Python so that i can use it further in my ...
Hekkie's user avatar
  • 13
0 votes
1 answer
35 views

Adding a Custom Expression in a Select array of Computers in AD

I am trying to add a custom field in an array of computers searched for in AD. This Variable has a list of computers that contains name and Description $Computers I want to create a custom field ...
Iain Howard's user avatar
1 vote
1 answer
343 views

PowerShell: Add New Value to Array

Using PowerShell I retrieve information from multiple ActiveDirectory groups and output it to a single CSV file. To each row I want to add the name of the group, in addition to the information ...
Falco's user avatar
  • 121
1 vote
1 answer
305 views

PowerShell Active Directory - Can't use array value in filter for Get-ADUser

I have two variables; $test and $accounts[0].upn Both are Strings, both contain the exact same value. When I run: Get-ADUser -Filter "UserPrincipalName -eq '$test'" I get the result I want, ...
rickymartino's user avatar
1 vote
3 answers
699 views

Trying to output a custom powershell object where I can align each line of two different variables containing Category:Description

I'm trying to do an network access control audit by grabbing a user's AD groups, their descriptions and then output them in a way shown by this example: [User] @[1]Groups : @[1]GroupDescription @[2]......
Liam Chaney's user avatar
3 votes
2 answers
1k views

Resize a Byte Array image in PowerShell

I'm trying to resize an image in PowerShell without saving a temporary file and then save it to Active Directory. I'm getting a Byte Array from a database (I have no control over what is sent to me) ...
Blind Trevor's user avatar
0 votes
1 answer
4k views

Getting information from Get-ADPrincipalGroupMembership not working like I hoped

I have a list of users and I need to know what their Active Directory Group memberships are. I need them to group together in a csv something like this with the username, groupname, and grouptype (...
woftt69's user avatar
0 votes
1 answer
43 views

PowerShell array iteration or parsing problem?

I'm new to PowerShell. I'm trying to pull a users Active Directory info based on their job title and place it in a csv file. I have two corresponding arrays, $title and $csvfile. $title[0] corresponds ...
GoodFox's user avatar
  • 15
1 vote
2 answers
1k views

How to get nested group name from groups in AD using powershell

I have a problem need to example in Active Directory using powershell get all groups that are part of a group and so on recursively. So if you have group A that has B and B has C Than I need the names ...
Evo's user avatar
  • 41
0 votes
2 answers
2k views

Rename AD groups using two PowerShell arrays

I'm trying to rename existing AD groups in this way. AD groups starting # to be renamed to the same name without #. For example , I have #dl1 and I wish to get it renamed dl1 (omitting #) Im trying to ...
Aravinda's user avatar
  • 505
1 vote
1 answer
825 views

Cannot add items to Powershell array

I'm relatively new to Powershell but haven't been able to find an answer online. I'm trying to get the number of emails per disabled user in exchange 2010, but also need to get the user's title form ...
NewExAdmin's user avatar
0 votes
0 answers
45 views

powershell command output ,but variables should be picked from excel sheet

I want to use below command I want XXXXXXXXXXXXX (object names) should be pulled from excel sheet or txt Get-QADGroupMember xxxxxx-xxxxx | Select -Property Name,Department | Export-Csv C:\ABc.csv -...
swpanil's user avatar
-1 votes
2 answers
146 views

How to get missing Computernames in a Active Directory OU

I would like to get missing computer hostnames in our Active Directory. Currently we have a naming convention for notebooks: NB-DE-00001 and for PC's: PC-DE-00001 Currently, however, some ...
Bitz0r's user avatar
  • 1

15 30 50 per page