Find Duplicate User Principal Names in an Active Directory Forest
This PowerShell example finds user accounts with the same non-empty User Principal Name (UPN) in an Active Directory forest and exports the matching accounts to […]
This PowerShell example finds user accounts with the same non-empty User Principal Name (UPN) in an Active Directory forest and exports the matching accounts to […]
This example exports enabled Active Directory users and their direct group memberships to CSV. It corrects a variable-name mismatch in the earlier version that prevented […]
This report lists enabled computer accounts running a server operating system that have a recorded logon within the last 60 days. It searches each domain […]
There is no excerpt because this is a protected post.
We can use PowerShell to test remote port connectivity without installing telnet and with the use of the Test-NetConnection command. To check if the remote […]
#Share Folder Path $FolderPath = dir -Path “\\server1.vmwarenterprise.com\Reports\” -Recurse -Directory -Force$Report = @()Foreach ($Folder in $FolderPath) {$Acl = Get-Acl -Path $Folder.FullNameforeach ($Access in $acl.Access){$Properties = […]
foreach($d in (get-adforest).domains){$v = Measure-Command {get-addomaincontroller -Filter * -Server $d}Write-Output “Took $($v.TotalSeconds) to Enumerate DCS in $d “}
Created domain account in each domain add it to domain admin group $domains = (get-adforest).domainsforeach($domain in $domains){$accountname = ‘s-coe-‘+($domain -split “.”)[0]+’-DA’$accountpass = Read-Host -Prompt ‘Enter […]
Some Enterprise Organisations do not allow us to use any software on their networks a. Any software to be installed would need to be tested, […]
#get all AD users in forest with name like v- and status is enable $allusers = (get-adforest).domains| %{get-aduser -filter {SamAccountName -like “v-*” -and Enabled -eq […]
Copyright © 2026 VMWare Enterprise. All Rights Reserved.