Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

Apostrophe in OU in AD

$
0
0

Hi,

I need to list all users from OU, just have code:

Import-Module ActiveDirectory
Get-ADUser -Filter * -SearchBase “ou=Users,# name,dc=company,dc=cz”

Problem is, that my subfolder OU (company --> Users --> # name) has terrible name '# name', so I think I need apostrophe on it.

Can anyone shed some light on this? Thank You.


Viewing all articles
Browse latest Browse all 21975

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>