Verifying Active Directory Installation

Check the status of the shared SYSVOL

dcdiag /test:netlogons

Verify DNS registration and functionality

dcdiag /test:dns

Verify communication with other domain controllers

nltest /dclist: <domain name>

Verify replication with other domain controllers

dcdiag /test:replications

Verify the availability of the operations masters

dcdiag /s: domaincontroller /test:knowsofroleholders /verbose 
dcdiag /s: domaincontroller /test:fsmocheck

[via]https://technet.microsoft.com/en-us/library/cc781459%28v=ws.10%29.aspx[/via]

Store VMware PowerCLI login credentials

Connect to VirtualCenter Server and enter credentials

Connect-VIServer -Server <Server>

Save the credentials to the credential store file (By default the credential store file is stored - encrypted - under the user profile directory)

New-VICredentialStoreItem  -Host <Server> -User "<Username>" -Password "<Password>"

[via]https://blogs.vmware.com/PowerCLI/2011/11/have-you-seen-powerclis-credential-store-feature.html[/via]

How to repair or fully rebuild Windows WMI Repository

For Windows Vista and newer try to run the following:

  1. Verify repo (If the result shown as inconsistent, go to step 2)
    winmgmt /verifyrepository
  2. Repair repo
    winmgmt /salvagerepository
  3. Verify repo to check again wmi repository had been repaired successfully
    winmgmt /verifyrepository

To fully rebuild the WMI Repository follow these steps:

  1. Disable and stop the winmgmt service (Disable is important, elso you can't rename the folder in step 2)
  2. Rename C:\Windows\System32\wbem\repository
  3. Enable and start the winmgmt service
  4. Open a CMD prompt as Administrator
  5. Navigate to C:\Windows\System32\wbem\
  6. Run the cmd (this will take a minute or so to complete)
    for /f %s in ('dir /b *.mof') do mofcomp %s
  7. Now run the cmd
    for /f %s in ('dir /b en-us\*.mfl') do mofcomp en-us\%s
  8. Now run the cmd
    for /f %s in ('dir /b de-DE\*.mfl') do mofcomp de-DE\%s
  9. Restart computer

[via]https://support.software.dell.com/de-de/vworkspace/kb/88861[/via]