Search found 3 matches

by Tim Lilienthal
Tue Aug 23, 2022 3:50 am
Forum: PowerShell
Topic: Hashtable empty only in use of Powershell Studio 2022
Replies: 3
Views: 1294

Re: Hashtable empty only in use of Powershell Studio 2022

I think I undertstood what you meand. I'm pretty new to Scripting. Just did simple request and 1 liners alot. Just started 1-2 weeks ago to work alot more with whole scripts. So need to learn alot :D This is my final result: Get-ADObject -filter ('name -like "*mitarbeiter*" -and ObjectClas...
by Tim Lilienthal
Tue Aug 23, 2022 3:28 am
Forum: PowerShell
Topic: Hashtable empty only in use of Powershell Studio 2022
Replies: 3
Views: 1294

Re: Hashtable empty only in use of Powershell Studio 2022

Thank you very much for your response! I'll change a few things. I don't want to be smartass, just to prove why I thought it could work like this: (this is what ISE gives back - Same script as on last post) Name Value ---- ----- Mitarbeiter-TP --------------- OU=Mitarbeiter-TP,OU=*********,OU=Stando...
by Tim Lilienthal
Tue Aug 23, 2022 12:04 am
Forum: PowerShell
Topic: Hashtable empty only in use of Powershell Studio 2022
Replies: 3
Views: 1294

Hashtable empty only in use of Powershell Studio 2022

Hello guys, I'd like to compare the OU-Path of an AD-User and create an autoselection of the correct OU in an combobox. My idea is to write the code as a function where it searchs for all organizationalUnits and put them into a hashtable . The Script I wrote for it was tested in PowerShell ISE and i...