by Jason Zheng | Nov 5, 2018 | Active Directory
DFS sometimes will give you an error after update: Error 1068: The dependency service or group failed to start. Some windows updates will automatically disable Remote Registry service, enabling this service will let you enable DFS service.
by Jason Zheng | Oct 23, 2018 | Active Directory
Get Local Users: get-localuser Create Local User: $Password = Read-Host -AsSecureString New-LocalUser “NEW_ACCOUNT_NAME” -Password $Password -FullName “USER_FULL_NAME” -Description “Description of this account.” Add to Group:...
by Jason Zheng | Oct 23, 2018 | Active Directory
Add computer to ETC/Hosts Management Host Get authentication server allow values. [powershell](Get-Item wsman:localhost\client\trustedhosts).value[/powershell] Note: This command is needed if you want to fix Kerberos authentication errors. [powershell]Set-Item...
by Jason Zheng | Oct 23, 2018 | Active Directory
Create new Domain User: New-ADUser -SAMAccountName “testuser” -DisplayName “Test User” -AccountPassword (ConvertTo-SecureString -AsPlainText “testpassword” -Force) Force Change Password on Logon: Set-ADUser -Identity...
by Jason Zheng | Oct 23, 2018 | Active Directory
Install Domain Services install-windowsfeature AD-Domain-Services The -WhatIf command allows a preview of the Powershell command before execution. Remove after testing. Install a Forest Active Directory Install-ADDSForest -CreateDnsDelegation:$false -DatabasePath...