Import-Module ActiveDirectory
$Groups = Get-ADComputer -Filter * | Select -Expand Name
Foreach($G In $Groups)
{
WMIC /node:$G process create call “net time /’ntpaddress’ /set”
}
net time /’ntpaddress’/set
Import-Module ActiveDirectory
$Groups = Get-ADComputer -Filter * | Select -Expand Name
Foreach($G In $Groups)
{
WMIC /node:$G process create call “net time /’ntpaddress’ /set”
}
net time /’ntpaddress’/set
$dir1 = Read-Host
$dir2 = Read-Host
Clear-Host
Get-ChildItem -path $dir1 | Format-Table Name
/usr/bin/ruby -e “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)”
takes a bit to install
‘brew cask install powershell’
to upgrade
brew update
brew cask upgrade powershell
Import-Module ActiveDirectory
$Groups = Get-ADGroup -Properties * -Filter * -SearchBase “DC=,DC=”
Foreach($G In $Groups)
{
$G.Name
“————-”
$G.Members
}