By David Wiseman (Administrator)Created 05 May 2009
My Rating:
Vote
Rating:
Not Rated
Views:7551
Downloads:74
Source:

Move Group Members to OU (Organizational Unit)

Language:  VBScript

Compatibility

Windows XP Unknown Windows 2003 Unknown
Windows 2000 Unknown Windows NT Unknown
Vista Unknown Windows 2008 Yes
Description

Script to move all the members of an Active Directory group to a specified container/OU (organisational unit).


Notes

Change values in "Setup" section as required.

strGroupPath = The ADsPath of the group to bind to.  This is the distinguished name of the group prefixed with "LDAP://". 

strNewOUPath = The ADsPath of the OU where you want to move the group members to.  This is the distinguished name of the OU prefixed with "LDAP://". 

Tip: You can find the distinguished name of an object by using ADSIEdit.

Note: This script will not identify nested members or primary group members.

 
Code

Line Numbers: On  Off      Plain Text
' *********************** Setup ***********************
strGroupPath = "LDAP://CN=MyGroup,OU=MyOU,DC=wisesoft,DC=co,DC=uk"
strNewOUPath = "LDAP://OU=NewOU,DC=wisesoft,DC=co,DC=uk"
*******************************************************

set objOU = GETOBJECT(strNewOUPath)
set objGroup = GETOBJECT(strGroupPath)

for each objMember in objGroup.Members
	objOU.MoveHere objMember.ADsPath,vbNullString
next

 


Got a useful script? Click here to upload!


 

  Post Comment
Order By:  
User Comments
      

Posted On: 9/18/2018 2:13:09 AM

jinyi918 asics shoes nike shoes true religion jeans outlet kate spade coach handbags pandora charms nhl jersey manolo blahnik ralph lauren uk ugg boots ultra boost 3.0 ralph lauren polo pandora charms canada goose outlet coach outlet canadian goose coach outlet golden goose adidas nmd jordan shoes pandora outlet christian louboutin air max 90 ugg outlet coach outlet champion clothing christian louboutin outlet canada goose jacket christian louboutin longchamp outlet nike shoes canada goose outlet kate spade outlet true religion jeans nike huarache salomon shoes ugg outlet red bottom shoes coach outlet online coach outlet longchamp outlet basketballl shoes golden goose true religion hermes belt giuseppe zanotti christian louboutin north face true religion adidas outlet nike shoes ugg outlet clearance adidas yeezy canada goose outlet ralph lauren polo prada handbags coach outlet clarks outlet ralph lauren polo coach outlet pandora charms kate spade outlet michael kors outlet canada goose outlet canada goose outlet jordan 4 fitflops clearance ralph lauren ralph lauren polo coach outlet ugg boots ray ban sunglasses tory burch outlet coach outlet online dsquared2 adidas shoes louboutin shoes pandora jewelry moncler outlet ralph lauren polo nike outlet factory hugo boss canada goose jackets red bottom shoes michael kors outlet nike shoes red bottom shoes bottega veneta nike tn coach outlet factory coach outlet golden goose true religion jeans michael kors outlet jordan uk superdry uk supreme clothing canada goose outlet christian louboutin outlet ray ban sunglasses fitflops clearance ugg boots clearance hermes belt ralph lauren uk clarks outlet christian louboutin outlet clarks shoes converse trainer mbt shoes off white outlet coach outlet canada goose outlet coach outlet tod's outlet salomon shoes nike blazers coach outlet moncler outlet jordan shoes north face true religion jeans champion sportswear ecco shoes ugg boots clearance ugg boots off white clothing christian louboutin outlet ed hardy uk nike air max canada goose outlet ugg outlet boots coach outlet skechers shoes christian louboutin outlet christian louboutin shoes mbt shoes off white jordan pandora outlet moncler jackets reebok outlet ralph lauren polo moncler outlet jordans coach factory outlet longchamp moncler outlet moncler jacket jordan shoes nike outlet kate spade outlet kate spade handbags coach outlet hugo boss soccer shoes mlb jerseys clarks shoes prada shoes pandora jewelry off white shoes ralph lauren uk coach outlet online moncler outlet kate spade outlet ferragamo shoes lacoste polo ray ban sunglasses coach factory outlet pandora outlet louboutin shoes ugg outlet golden goose christian louboutin outlet michael kors outlet ecco shoes ugg outlet christian louboutin jordan shoes jordans valentino shoes supreme michael kors outlet kate spade outlet canada goose adidas yeezy coach factory outlet canada goose outlet fitflops clearance vibram five fingers coach outlet canada goose coach outlet online nike shoes canada goose canada goose outlet louboutin shoes coach outlet ralph lauren polo ray ban sunglasses ray ban sunglasses moncler jackets adidas superstar pandora charms pandora supreme clothing coach factory outlet nike shoes outlet oakley sunglasses christian louboutin shoes dsquared2 jordan 8 ferragamo belt true religion jeans outlet ugg boots outlet fitflops clearance ralph lauren polo issey miyake pandora jewelry yeezy boots 350 air max 90


Posted On: 9/28/2018 1:26:23 AM

ugg outlet canada goose outlet cheap jerseys air jordan 4 polo ralph lauren ugg outlet christian louboutin outlet coach outlet online polo ralph lauren michael kors outlet pandora outlet ugg outlet canada goose outlet canada goose outlet true religion jeans vibram fivefingers adidas nmd shoes moncler jackets true religion outlet yeezy boost ugg outlet air max 90 uggs outlet nike huarache pandora jewelry ugg boots clearance michael kors outlet michael kors handbags canada goose outlet canada goose outlet pandora charms true religion jeans nfl jerseys wholesale canada goose jackets coach outlet christian louboutin outlet coach outlet christian louboutin outlet longchamp handbags michael kors outlet michael kors outlet pandora charms christian louboutin outlet christian louboutin outlet canada goose jackets adidas yeezy michael kors outlet polo ralph lauren valentino outlet coach outlet pandora jewelry pandora outlet mont blanc pens air max 90 birkenstock outlet nike trainers nike outlet lebron james shoes coach outlet adidas outlet kate spade outlet polo outlet hermes birkin kate spade outlet moncler outlet uggs outlet ray ban sunglasse mont blanc pens michael kors handbags polo ralph lauren coach outlet coach outlet coach outlet online canada goose jackets coach outlet store online coach outlet online mbt shoes polo ralph lauren coach outlet pandora jewelry moncler outlet canada goose outlet pandora jewelry michael kors outlet michael kors outlet pandora outlet coach factory outlet ray ban sunglasses canada goose outlet michael kors outlet ugg outlet canada goose jackets michael kors outlet coach outlet ralph lauren uk christian louboutin outlet michael kors outlet oakley sunglasses wholesale polo outlet coach outlet adidas outlet nfl jerseys wholesale christian louboutin outlet nike shoes canada goose jackets cheap nfl jerseys lebron james shoes coach outlet kate spade outlet polo shirts christian louboutin outlet ferragamo outlet cheap ugg boots michael kors outlet clearance superdry clothing michael kors handbags oakley sunglasses wholesale coach outlet coach outlet canada canada goose outlet michael kors outlet north face jackets kate spade outlet cheap ugg boots polo ralph lauren canada goose outlet true religion outlet store kate spade outlet michael kors outlet coach outlet online fred perry polo shirts ultra boost christian louboutin outlet prada outlet christian louboutin outlet kate spade outlet off white clothing kate spade outlet moncler jackets kate spade outlet christian louboutin outlet air jordan shoes coach outlet online kate spade outlet pandora outlet christian louboutin outlet moncler jackets polo ralph lauren mbt shoes ugg outlet coach outlet ugg outlet ralph lauren polo michael kors handbags ralph lauren outlet coach factory outlet cheap jordans chaussures christian louboutin michael kors outlet ugg outlet kate spade outlet canada goose jackets polo outlet michael kors outlet nfl jerseys pandora outlet coach outlet coach factory outlet ray ban sunglasse supreme uk michael kors outlet nfl jerseys canada goose jackets coach outlet true religion outlet scarpe mbt michael kors outlet air max 2017 nfl jerseys wholesale pandora jewelry outlet cheap jordans coach outlet online ray ban outlet nfl jerseys wholesale michael kors outlet coach factory outlet michael kors outlet christian louboutin outlet canada goose outlet coach outlet oakley sunglasses wholesale michael kors outlet clearance supreme outlet mont blanc pens coach factory outlet cheap mlb jerseys true religion jeans nba jersey mlb jerseys wholesale ray ban sunglasses canada goose outlet christian louboutin outlet oakley sunglasses nike shoes cheap nfl jerseys birkenstock shoes ed hardy clothing oakley sunglasses mulberry handbags ralph lauren shirts michael kors outlet nike outlet coach outlet michael kors outlet polo ralph lauren cheap nfl jerseys ugg boots michael kors outlet coach outlet asics running shoes pandora charms michael kors outlet nfl jerseys wholesale pandora charms pandora charms uggs outlet uggs outlet christian louboutin mbt shoes canada goose outlet tory burch outlet coach factory outlet pandora charms michael kors outlet coach outlet yeezy boost ralph lauren sale clearance mulberry handbags adidas nmd mlb jerseys canada goose outlet coach outlet michael kors outlet ugg outlet kate spade outlet ugg outlet ray ban sunglasse adidas yeezy mulberry handbags coach outlet mbt shoes nike outlet michael kors outlet pandora outlet mbt shoes ugg boots nike shoes outlet coach factory outlet michael kors outlet clearance coach outlet online coach outlet north face jackets ugg outlet polo outlet yeezy boost polo ralph lauren christian louboutin outlet polo ralph lauren ralph lauren polo shirts coach outlet online adidas nmd ugg outlet coach outlet coach outlet fitflops sale clearance pandora outlet valentino outlet nike shoes coach outlet michael kors handbags canada goose jackets michael kors handbags canada goose outlet fitflops sale clearance ray ban sunglasses cheap oakley sunglasses polo outlet moncler outlet canada goose outlet adidas yeezy shoes coach outlet nfl jerseys oakley sunglasses wholesale polo ralph lauren kate spade outlet ray ban sunglasses canada goose jackets adidas outlet coach outlet pandora outlet michael kors outlet coach outlet coach outlet online cheap ray bans sunglasses coach outlet michael kors outlet lunette ray ban michael kors taschen michael kors outlet true religion outlet nike outlet christian louboutin outlet ugg boots pandora charms air jordan retro coach outlet mont blanc pens nhl jerseys red bottom shoes true religion outlet mbt shoes louboutin shoes michael kors outlet asics shoes canada goose jackets polo ralph lauren gucci outlet christian louboutin outlet coach outlet coach outlet canada goose rolex watches michael kors handbags coach factory outlet michael kors outlet pandora charms sale clearance canada goose outlet polo ralph lauren pas cher oakley sunglasses michael kors outlet giuseppe zanotti outlet canada goose outlet polo outlet canada goose outlet moncler jackets christian louboutin outlet coach factory outlet nike outlet coach outlet online nike outlet tory burch outlet kate spade handbags fred perry polo fred perry polo shirts red bottom shoes cheap ugg boots coach outlet cheap nfl jerseys coach outlet ralph lauren shirts true religion jeans christian louboutin boutique north face jackets prada handbags christian louboutin outlet nfl jerseys christian louboutin outlet pandora jewelry polo ralph lauren mcm handbags moncler outlet true religion outlet polo ralph lauren polo outlet cheap nfl jerseys coach outlet cheap ugg boots coach outlet online pandora jewelry pandora jewelry mbt shoes pandora outlet nfl jerseys pandora charms coach outlet uggs outlet coach outlet online longchamp outlet coach outlet nike air max ugg boots ugg boots michael kors handbags canada goose jackets adidas superstar shoes cheap snapbacks giuseppe zanotti outlet adidas shoes michael kors outlet red bottom shoes fitflops sale clearance pandora charms christian louboutin outlet canada goose outlet coach outlet polo ralph lauren fitflops sale clearance christian louboutin outlet coach outlet mulberry handbags oakley sunglasses michael kors outlet michael kors handbags gucci outlet michael kors outlet moncler outlet north face jackets mcm outlet puma outlet coach outlet nhl jerseys cheap jordans uggs outlet hermes belts manolo blahnik outlet cheap ugg boots michael kors outlet ralph lauren outlet ugg outlet north face jackets adidas outlet ralph lauren outlet polo ralph lauren ed hardy kate spade outlet ugg outlet canada goose jackets ralph lauren polo christian louboutin shoes uggs outlet canada goose jackets pandora charm ugg boots clearance cheap nfl jerseys canada goose jackets pandora jewelry cheap jerseys kate spade outlet yeezy boost ugg outlet michael kors outlet uggs outlet nike kyrie 3 off-white canada goose outlet pandora outlet lacoste outlet nike shoes michael kors outlet michael kors outlet oakley sunglasses tory burch outlet coach outlet ralph lauren outlet ugg boots ralph lauren outlet kate spade outlet polo ralph lauren christian louboutin outlet pandora outlet michael kors outlet ugg outlet coach outlet red bottoms michael kors outlet uggs canada ugg boots nike outlet polo ralph lauren uggs outlet coach outlet christian louboutin outlet converse adidas nmd pandora jewelry coach outlet true religion jeans yeezy boost 350 coach outlet polo outlet christian louboutin outlet fred perry outlet michael kors handbags oakley sunglasses ray ban sunglasses polo ralph lauren uggs outlet canada goose outlet canada goose outlet canada goose jackets michael kors handbags clarks shoes adidas yeezy pandora charms oakley sunglasses kate spade outlet prada outlet ferragamo shoes tory burch outlet valentino outlet polo outlet coach outlet online uggs canada true religion jeans canada goose outlet coach outlet online christian louboutin shoes pandora outlet pandora outlet michael kors outlet kate spade outlet michael kors uk michael kors outlet michael kors outlet canada goose jackets cheap jordans polo outlet ugg boots longchamp outlet michael kors outlet christian louboutin outlet michael kors outlet pandora outlet ray ban sunglasse supreme ugg boots michael kors outlet rolex watches kobe bryant shoes moncler outlet canada goose vans shoes michael kors outlet michael kors outlet kebirong20180928

xiaoou
Posted On: 10/4/2018 5:40:26 AM

20181004 xiaoou stussy hoodie tory burch outlet online reebok shoes ugg boots clearance coach outlet online longchamp outlet store polo ralph lauren swarovski outlet store reebok shoes football shirts coach outlet online swarovski jewellery canada goose outlet puma shoes mulberry uk michael kors outlet mlb jerseys moncler jackets canada goose outlet store kobe shoes cheap ray ban sunglasses longchamp handbags true religion outlet uk christian louboutin shoes tods outlet online pandora charms sale clearance burberry outlet sale true religion jeans ugg boots clearance canada goose jackets uggs outlet canada goose jackets polo ralph lauren polo ralph lauren burberry canada cheap ray ban sunglasses canada goose jackets coach outlet online mlb jerseys ugg boots clearance kate spade outlet online michael kors outlet online adidas yeezy boost barbour women jackets canada goose jackets sale van cleef arpels jewelry cheap nhl jerseys michael kors outlet online cheap football shirts ray ban sunglasses outlet coach outlet online longchamp outlet online mizuno shoes asics running shoes ralph lauren polo ugg canada ferragamo shoes polo outlet factory store mont blanc outlet jordan 12 kd shoes bvlgari outlet canada goose coats nike air huarache cheap ugg boots ferragamo shoes canada goose outlet cheap jordan shoes coach factory outlet coach outlet nike outlet online nfl jerseys polo ralph lauren outlet true religion jeans ugg outlet uggs outlet uggs outlet supreme t shirts ralph lauren shirts cheap jordan shoes christian louboutin shoes true religion jeans sale kobe 9 elite coach outlet online coach outlet store pandora outlet nike outlet store coach outlet jordan 4 michael kors outlet online converse shoes sale cheap jordan shoes nfl jersey wholesale tory burch outlet online uggs outlet ugg boots clearance michael kors outlet christian louboutin shoes adidas nmd runner moncler coats coach outlet store online michael kors outlet clearance canada goose jackets nike shoes outlet christian louboutin shoes supreme t shirts ugg outlet michael kors outlet online air max 90 moncler jackets michael kors outlet clearance oakley sunglasses wholesale balenciaga shoes ugg boots clearance nike air max 1 ralph lauren uk denver broncos jersey ralph lauren polo coach outlet prada sunglasses for women coach factory outlet ugg outlet stores cheap ugg boots michael kors outlet swarovski outlet store cheap oakley sunglasses jordan shoes montblanc pens outlet nike air max soccer jerseys wholesale michael kors wallets for women ugg outlet michael kors bags nike roshe run chrome hearts online store ralph lauren polo michael kors outlet online ugg outlet canada goose outlet giuseppe zanotti shoes chrome hearts outlet store soccer cleats swarovski jewelry cheap oakley sunglasses canada goose outlet store fitflops shoes pandora jewelry hermes outlet store michael kors outlet online polo ralph lauren shirts canada goose coats ralph lauren outlet gucci outlet online coach outlet online cheap oakley sunglasses michael kors uk malone souliers moncler jackets cheap jordan shoes off-white clothing air jordan shoes polo ralph lauren shirts tory burch outlet online pandora charms sale clearance ralph lauren shirts tory burch outlet stores uggs outlet canada goose jackets outlet nike air huarache ugg outlet polo ralph lauren outlet michael kors outlet clearance ysl outlet online swarovski uk christian louboutin shoes suicoke sandals nike air max 90 adidas wings shoes coach factory outlet kate spade sale cheap soccer jerseys supreme t shirts michael kors canada coach outlet canada goose outlet store coach handbags outlet wellensteyn outlet canada goose outlet store longchamp handbags sale polo ralph lauren outlet red bottoms mbt christian louboutin shoes michael kors outlet ralph lauren polo mulberry bags michael kors outlet online ferragamo shoes air jordan shoes cheap jordan shoes cheap ray ban sunglasses cazal outlet michael kors outlet online kate spade handbags adidas shoes coach outlet store online louboutin shoes ugg boots on sale canada goose outlet store pandora charms sale clearance adidas store christian louboutin shoes coach outlet ferragamo outlet canada goose outlet store nike revolution air max 2015 los angeles lakers jerseys cheap oakley sunglasses nhl jerseys coach outlet tory burch outlet online mulberry handbags air jordan shoes christian louboutin outlet christian louboutin outlet moncler outlet online ugg outlet uggs outlet cheap jordan shoes michael kors outlet clearance michael?kors?outlet?online uggs outlet moncler outlet store north face outlet air force 1 shoes cheap ray ban sunglasses hermes birkin bag coach outlet online fred perry polo canada goose outlet store james harden shoes kate spade sale coach outlet online gucci bags fila sneakers michael kors outlet online adidas y3 shoes cheap ugg boots ed hardy outlet ugg outlet coach outlet michael kors outlet online ralph lauren outlet coach outlet online michael kors outlet lacoste shirts ugg boots clearance kate spade air jordan shoes ferragamo shoes nike shoes outlet coach outlet michael kors outlet online michael kors outlet online fitflops kate spade handbags michael kors outlet online michael kors outlet clearance ugg boots ugg outlet north face denail jacket clearance cheap jerseys wholesale oakley sunglasses wholesale oakley sunglasses wholesale mulberry outlet,mulberry handbags outlet fitflops tory burch handbags coach outlet online cheap jerseys wholesale cheap jordans yeezy boost uggs outlet pandora charms sale clearance herve leger dresses foamposite shoes ravens jerseys 49ers jersey canada goose jackets outlet canada goose outlet coach outlet online polo ralph lauren outlet jordan 3 jordan shoes uggs outlet michael kors outlet clearance michael kors factory outlet canada goose jackets manolo blahnik outlet moncler outlet online christian louboutin shoes birkenstock shoes adidas crazy mulberry handbags sale true religion outlet canada goose outlet online broncos jerseys cheap nba jerseys lebron shoes pandora charms sale clearance louboutin outlet burberry outlet store uggs outlet uggs outlet jordan 4 jordan shoes nike air force 1 kate spade handbags salomon outlet christian louboutin shoes swarovski outlet store nike uk store nobis jackets coach outlet burberry outlet online jordan retro cheap ray ban sunglasses fitflops sale clearance ugg boots clearance pandora outlet michael kors outlet clearance coach factory outlet michael kors handbags outlet air jordan retro christian louboutin shoes nike shoes outlet canada goose jackets true religion uk toms outlet uggs clearance hermes outlet store light up shoes christian louboutin shoes true religion jeans coach outlet online michael kors outlet online canada goose outlet pandora charms sale clearance longchamp pas cher michael kors outlet online mulberry handbags nike shoes outlet prada outlet online cheap nba jerseys uggs outlet christian louboutin shoes canada goose jackets new balance outlet coach outlet online canada goose outlet store cheap jordans kate spade sale michael kors outlet uggs outlet canada goose outlet store nfl jerseys mbt gucci outlet store undefeated shoes mcm backpacks texans jerseys canada goose outlet supreme clothing uk michael kors outlet online true religion outlet kobe bryants shoes christian louboutin shoes canada goose jackets uggs outlet cheap jordans free shipping true religion outlet ray ban sunglasses outlet canada goose jackets outlet tory burch outlet online air jordan shoes canada goose outlet store christian louboutin pas cher toms outlet coach factory store uggs outlet uggs outlet ray ban sunglasses outlet cheap jordans for sale air jordan shoes longchamp pliage longchamp pliage cheap ugg boots birkenstock shoes fitflops sale clearance marc jacobs sale canada goose outlet bottega veneta outlet online michael kors outlet online jordan shoes canada goose jackets pandora outlet coach outlet online coach outlet clearance chrome hearts online store christian louboutin shoes mishka snapbacks mulberry handbags adidas outlet online under armour outlet blackhawks jerseys pandora outlet moncler coats ralph lauren outlet coach outlet online true religion jeans pandora charms adidas nmd r1 coach factory outlet coach outlet canada goose jackets cheap nhl jerseys coach outlet online moncler outlet online pandora charms michael kors outlet online hermes belts pandora jewelry polo ralph lauren christian louboutin shoes mbt outlet cartier bracelet san antonio spurs tory burch outlet online louboutin shoes fitflops shoes vans sneakers nike factory store jimmy choo shoes coach factory outlet fitflops ralph lauren outlet ray ban sunglasses mulberry uk cheap basketball shoes cheap ray ban sunglasses true religion outlet coach factory outlet ugg outlet cheap oakley sunglasses coach handbags on sale 2018 world cup jerseys michael kors canada goose canada goose jackets givenchy handbags golden state warriors off white clothing cleveland cavaliers jerseys true religion outlet coach outlet longchamp outlet pandora jewelry camisetas futbol baratas cheap jordan shoes ugg boots clearance longchamp bags ugg outlet coach outlet canada goose outlet store kate spade sale christian louboutin shoes ugg boots tory burch outlet online cheap ray ban sunglasses longchamp handbags polo ralph lauren outlet michael kors outlet online nike shoes outlet fitflops sale clearance ray ban sunglasses outlet true religion outlet coach canada ugg outlet supra shoes sale lacoste polo cheap jordans canada goose outlet store ralph lauren outlet nike blazer pas cher michael kors uk adidas yeezy boost kate spade sale fitflops sale clearance pandora outlet kate spade handbags new york knicks links of london jewellery pandora charms sale clearance michael kors outlet clearance yeezy boost 350 nike air max 2017 michael kors handbags tory burch outlet online ferragamo shoes sale ralph lauren outlet pandora charms sale clearance ecco outlet gucci outlet online christian louboutin shoes ralph lauren femme coach outlet online north face outlet true religion outlet store kate spade outlet online polo outlet online snapbacks wholesale miu miu shoes prada shoes for men moncler outlet store toms outlet canada goose outlet store christian louboutin shoes true religion outlet ferragamo shoes ralph lauren polo canada goose jackets outlet adidas outlet online canada goose jackets nike air max 97 colts jerseys canada goose jackets pandora charms sale clearance cheap nba jerseys jordan shoes michael kors outlet online oakley sunglasses wholesale jordan retro canada goose jackets michael kors outlet clearance ugg boots gucci outlet online true religion outlet mbt coach outlet online mont blanc pens nike air max 90 coach outlet store cheap jerseys wholesale mulberry bags uggs outlet valentino shoes michael kors outlet online 20181004