Guest User

Untitled

a guest
Jan 29th, 2013
329
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Import-Module ActiveDirectory
  2. $groups = Get-ADGroup -SearchBase "OU=staff,OU=Auto,OU=Groups,DC=domain,DC=co,DC=uk" -Filter * | Select-Object Name | Where-Object { $_.Name -match ".All" } | Sort Name | Select-Object -ExpandProperty Name
  3. foreach($group in $groups)
  4. {
  5.     Write-Output "<option value=`"$group`">$group</option>"
  6. }
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×