Skip to primary content
Skip to secondary content

server1.dk

Tech Tips

server1.dk

Main menu

  • Home

Tag Archives: Active Directory

Get all Active Directory DC’s via Powershell

Posted on September 21, 2020 by Henrik
Reply
$allDCs = (Get-ADForest).Domains | %{ Get-ADDomainController -Filter * -Server $_ }
Posted in Uncategorized | Tagged Active Directory, powershell | Leave a reply

Redeem Azure AD invite without an email

Posted on January 2, 2020 by Henrik
Reply

Replace the “tenantname” part of the URL with your tenant name

Visit https://portal.azure.com/#@tenantname.onmicrosoft.com

And login with the account that was invited

Posted in Uncategorized | Tagged aad, Active Directory, Azure | Leave a reply

Remove all members from AD group

Posted on October 12, 2016 by Henrik
Reply
$ADgroup = "testgroup"
Get-ADGroupMember $ADgroup | ForEach-Object {Remove-ADGroupMember $ADgroup $_ -Confirm:$false}
Posted in Uncategorized | Tagged Active Directory, powershell | Leave a reply

Powershell wait for AD object to be created

Posted on June 21, 2016 by Henrik
Reply
while (!(Get-ADgroup -Filter { Name -like "the_AD_object"}))
{
write-host wait
    start-sleep -m 1000
} 
Posted in Uncategorized | Tagged Active Directory, ad, powershell | Leave a reply

Find group membership of Active Directory user

Posted on October 20, 2015 by Henrik
Reply
(Get-ADUser userName –Properties MemberOf | Select-Object MemberOf).MemberOf
Posted in Uncategorized | Tagged Active Directory, powershell | Leave a reply
Recommended by server1.dk

Tags

  • 32bit
  • 64bit
  • Active Directory
  • ad
  • array
  • Azure
  • azure ad
  • azure function
  • cmd
  • costcenter
  • curl
  • datalake
  • Exchange
  • Exchange 2016
  • gateway
  • hashtable
  • integer
  • linux
  • network
  • nuget
  • ping
  • pip
  • policy
  • ports
  • powershell
  • print
  • public folder
  • random
  • remote
  • REST
  • Roles
  • rsat
  • sms
  • sql
  • SSL
  • string
  • tags
  • tcp
  • text message
  • Virtual Machine
  • windows
  • Windows 10
  • Windows 11
  • windows server
  • Windows Update

Recent Posts

  • You can’t access this shared folder because your organization’s security policies block unauthenticated guest access April 25, 2025
  • Download Windows 11 trial without registration March 18, 2025
  • Link to download English version of Windows Server 2025 without registration December 23, 2024

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org
Proudly powered by WordPress