Archive

Archive for November, 2016

The Active Directory integrated DNS zone _msdcs.domain.com was not found

November 22, 2016 Leave a comment

I did not discover this fix. I found this from TechNet forums but have since lost the link.

The fix below helped me resolve this problem.

Problem:
The Active Directory integrated DNS zone _msdcs.domain.com was not found.

Solution:

  • Create a zone called "_msdcs.domain.com"
  • Make it AD integrated
  • Allow secure only updates and Click Finish
  • Go back into the zone properties
  • Change the replication scope to "All DCs in the Forest"
  • Delete the _msdcs folder under domain.com
  • Run an ipconfig /registerdns
  • stop netlogon
  • start netlogon
  • The SRVs should populate shortly, if they already haven’t

Credit goes to users on TechNet Forums.

-Eric

Advertisements

PowerShell – Search any User on Active Directory–updated

November 21, 2016 Leave a comment

Below is an updated script that helps you find any user in AD with details like when the User object was created, modified, lockout time, bad password time, last logon etc.

$user = Read-Host "Enter the name of the user"
Get-ADUser -Filter "sAMAccountName -like ‘*$user*’" |
Get-ADObject -Properties * | fl Name,SamAccountName,UserPrincipalName,DistinguishedName,objectSID,Title,Department,telephoneNumber,` Created,Modified,lockoutTime,`
@{n=’accountExpires’;e={[DateTime]::FromFileTime($_.accountExpires)}},`
@{n=’LastLogon’;e={[DateTime]::FromFileTime($_.LastLogon)}},`
@{n=’badPasswordTime’;e={[DateTime]::FromFileTime($_.badPasswordTime)}},`
@{n=’pwdLastSet’;e={[DateTime]::FromFileTime($_.pwdLastSet)}},`
msExchWhenMailboxCreated

-Eric

VMware – Commands to power on VMs from command line

November 10, 2016 Leave a comment

ESXi 5.x and 6.0

List the inventory ID of the virtual machine with the command:

vim-cmd vmsvc/getallvms | grep <vm name>

Note: The first column of the output shows the vmid.

Check the power state of the virtual machine with the command:

vim-cmd vmsvc/power.getstate <vmid>

Power-on the virtual machine with the command:

vim-cmd vmsvc/power.on <vmid>

ESX 4.0 and ESX 4.1

To list the path of all the virtual machines on the host:

vmware-cmd –l

Get the state of the virtual machine with the command:

vmware-cmd <path to the VMX file> getstate

Power on the virtual machine with the command:

vmware-cmd <path to the VMX file> start
    
-Eric