Posted On March 31, 2019

Quick 1-Liner to List Domain Controllers and ReadOnly Statuses

kimconnect 0 comments
blog.KimConnect.com >> Codes >> Quick 1-Liner to List Domain Controllers and ReadOnly Statuses
PS C:\WINDOWS> Get-ADDomainController -Filter * | select Name,IsReadOnly

Name       IsReadOnly
----       ----------
MONKEY       False
BABOON       False
GIRAFFE      False
LION   FALSE
KIMCONNECT   True
KIMDISCONNECT True
WHAT        True
NOWAY        True
WEBDC01      True
WEBDC02      True
SSO01        True

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post

Import A WMWare.PowerCLI from Behind the Proxy

VMWare PowerCLI is a must for Administrators. Here's a quick script to install it. If…

PowerShell: Set Autologon for Windows

Current Version: function setAutoLogon($username,$password){ $regWinlogon='REGISTRY::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon' $regKeyUsername='DefaultUserName' $regKeyPassword='DefaultPassword' $kegKeyAutologin='AutoAdminLogon' $regKeyDefaultDomain='DefaultDomain' function testCredential($username,$password){ # Get current…

PowerShell: Manually Create Failover Cluster SMB Shares

# Set three variables$shareName="someShare"$smbServer="someClusteredVServer"$sharePath="S:\Shares\someShare"# Generate Domain Admins label$subdomain=(net config workstation) -match 'Workstation domain\s+\S+$' -replace '.+?(\S+)$','$1'$domainadmins="$subdomain`\Domain…