Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

powershell get list of groups and members

$Groups = Get-ADGroup -Properties * -Filter * -SearchBase "OU=Groups,DC=corp,DC=ourcompany,DC=Com" 
Foreach($G In $Groups)
{
    Write-Host $G.Name
    Write-Host "-------------"
    $G.Members
}
Comment

powershell how to see all groups

Get-ADGroup -filter * -properties GroupCategory | ft name,groupcategory
Comment

PREVIOUS NEXT
Code Example
Python :: make coordinate cyclic in python 
Python :: make longitude -180 to 180 
Python :: how to make a forever loop in python 
Python :: python multi line print 
Python :: how to delete records in pandas before a certain date 
Python :: python print string separated by comma 
Python :: Python pandas drop any row 
Python :: how to convert png to pdf with python 
Python :: Entry border color in tkinter 
Python :: python boxplot show mean 
Python :: how to edit variables with functions in python 
Python :: password combination python 
Python :: Add a quit button Tkinter 
Python :: python break when key pressed 
Python :: python format decimal 
Python :: how to print all rows in pandas 
Python :: pyperclip copy paste 
Python :: python ignore exception 
Python :: language detection python 
Python :: python code to open windows command prompt 
Python :: RuntimeError: Please set pin numbering mode using GPIO.setmode(GPIO.BOARD) or GPIO.setmode(GPIO.BCM) 
Python :: how to check the type of a variable in python 
Python :: binary search tree iterator python 
Python :: python json load file 
Python :: format percentage python 
Python :: media django 
Python :: python telegram bot send image 
Python :: python count hex 
Python :: no migrations to apply django 
Python :: find first date python 
ADD CONTENT
Topic
Content
Source link
Name
3+5 =