Posts

Showing posts from August, 2021

Windows Time not synchronizing - “Access is denied” error

Cause Registry replace malfunctioned the permission Solution Try the following to reset your Windows Time configuration to the defaults. From an elevated Command Prompt run: net stop w32time w32tm /unregister w32tm /register net start w32time

Command ipconfig /registerdns, failed and returned error: Registration of DNS records failed: not enough storage is available to complete this operation.

Image
Error Scenario: Command ipconfig /registerdns, it was failed and returned error: Registration of DNS records failed: not enough storage is available to complete this operation. However, it seems that we have enough memory Cause: Dynamic Update was enabled in the server Solution : Disabled Dynamic Update from server registry. registry for **HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\Tcpip\Parameters** If the value of DisableDynamicUpdate = 1, change it to 0 and reboot your machine.

Active Directory Replication Error 1722: The RPC server is unavailable

Error message: 1. CALLBACK MESSAGE: Error contacting server 20547b77-7bc2-486a-2cfb-9638a89d99dbd._ msdcs.xxx.com (network error): 5 (0x5):     Access is denied. 2. SyncAll exited with fatal Win32 error: 8440 (0x20f8): The naming context specified for this replication operation is invalid. 3. The RPC server is unavailable. 0x800706ba (WIN32: 1722 RPC_S_SERVER_UNAVAILABLE) Scenario:   Repadmin Syncall command gives one of the above error  Replication doesn't work properly. Cause: Such errors mostly encountered if a DC was renamed, rebuilt, re-promoted with same name and IP. Solution: GUID entry for the old server was mapped with Domain Controller CNAME entry in DNS records. Replace the GUID of new server with Old in CNAME record (Find the GUID from Site & Services> Server name> NTDS Properties) Use Elevated CMD in case of Access Denied

the term ‘connect-msolservice’ is not recognized as the name of a cmdlet function

  Step-1 : Open Windows PowerShell in administrator mode. Then run the following commands serially. If you have installed already  AzureAD PowerShell commands , then run the below command to uninstall. uninstall-module AzureAD Step-2: Then run the below commands one by one. install-module AzureAD install-module AzureADPreview install-module MSOnline Step-3: Then you can run the below command to connect to Azure from Powershell. Import-Module MSOnline $credentials = Get-Credential Connect-MsolService -Credential $credentials

Create bulk test user accounts in active directory using PowerShell

 C opy paste the below code into a PowerShell window in your test lab and change –Path parameter to match your OU structure where you want to place the accounts and execute the script. You will see test accounts with in a minute. Please note this above code is for lab purpose only where you want 100 or 1000 dummy user accounts for testing purpose. If you want to create users in production environment, you might want to set the required attribute values accordingly (like display name, telephone, etc). Import-Module ActiveDirectory foreach ( $i in 1 ..5 00 ) { $AccountName = "TestUser{0}" -f $i $Password = Convertto-secureString -string "testme123" -AsPlainText -force New-ADUser -Name $AccountName -AccountPassword $Password -Path "OU=Labaccounts,DC=ad,DC=live,DC=com" -Enabled: $true }