Export AD Groups as bat file

:::: Batch Script Start ::::
@ECHO OFF
SETLOCAL EnableDelayedExpansion

SET FileName=C:Report.csv
SET AG=0
SET EG=0
SET CT=0
SET NE=0
SET GN=

FOR /F %%T IN (‘DSQuery * -Filter “(&(objectClass=Group))” -Limit 0’) DO SET /a AG+=1 >NUL
FOR /F %%T IN (‘DSQuery * -Filter “(&(objectClass=Group)(^!member=*))” -Limit 0’) DO SET /a EG+=1 >NUL
SET /a NE=!AG!-!EG!

ECHO Total Groups in Active Directory %AG% out of them %EG% are empty.&&ECHO.
ECHO Group,Members>“!FileName!”
TITLE Exporting !NE! Non-Empty AD Groups.

FOR /F “delims=” %%G IN (‘DSQuery * -Filter “(&(objectClass=Group)(member=*))” -Limit 0’) DO (
   FOR /F “delims=” %%v IN (‘DSQuery * %%G -l -q -Attr Name -Limit 0’) DO SET GN=%%v
   SET /a CT+=1 >NUL
   ECHO !CT!. Exporting: !GN!
   FOR /F “delims=” %%M IN (‘DSGET Group %%G -Members’) DO (
       FOR /F “delims=” %%U IN (‘DSQuery * %%M -l -q -Attr displayName’) DO (
       ECHO !GN!,%%U>>“!FileName!”)))

TITLE Export complete.
ECHO.&&ECHO Export complete, please check ’!FileName!’ file.
EXIT /B 0
:::: Batch Script End ::::

starmendotnet:

Can you believe it!? The critically acclaimed, fan favorite, certified stinky Super NES classic EarthBound is ON SALE in the North American Wii U eShop! This is a limited time deal, and a once in a lifetime chance to add this gem to your digital entertainment collection.

Rabid fans have been known to spend hundreds of dollars for the pleasure of owning their very own copy. Why part with so much of your hard-earned dough when you can have the same experience for a mere fraction of the cost!

Would you pay $800 for this game? How about $600? $400 smack-a-roos? Does $200 sound like a real bargain. Well sit back, because I’m about to blow your socks off!


$6.99!!


This smokin’ hot deal is part of the third week of @nintendo’s Winter Warm-Up Sale in the Wii U eShop. The game normally sells for $9.99 (because it’s just that good), but you can get it for this bargain price until February 4th. Tell your neighbors. Tell your mailman. Write your pen pal!

BUT WAIT! There’s more. This digital copy of EarthBound comes with a 100% free, no strings attached, copy of the original Player’s Guide straight from the Pros at Nintendo Power! WHOA!! You can take a peek right here, on this handy website Nintendo made for the Wii U Virtual Console release of the game. (Even if you don’t buy the game, you can still look at the digital guide to your heart’s content. Maybe it’ll even give that extra nudge you need to get this great game. Did I mention it’s a great game!!)

Add viewing restrictions to your Plex Media Server

Sign into your Plex server. :32400/web

Go to Settings > Users > Add User 

Select create A Managed User

Name the user > Next

Select Restrictions on the left and select all desired viewing rights in the ratings area for each media type > Add.


If you’re enabling viewing restrictions it would be wise to add a PIN to admin users. Directions can be found here.