Posts

Showing posts from July, 2014

Old trick I forgot. Find the Computer OS / SP via CMD

Seems the older I get the more I forget. Here's a simple command to find the OS / Service Pack C:\Windows\system32>systeminfo | findstr /B /C:"OS Name" /C:"OS Version" OS Name:                   Microsoftr Windows Serverr 2008 Standard OS Version:                6.0.6002 Service Pack 2 Build 6002

Microsoft Erroneous RDP Error Message -

Image
I received the following error message when trying to RDP to a remote server: Remote Desktop cannot verify the identity of the remote computer because there is a time or date difference between your computer and the remote computer. Make sure your computer's clock is set to the correct time, and then try connecting again. Connecting to the VM's console I verified the date and times were exact. (see image below) Turned out the server had lost it's connection in the domain. Dropping and re-adding to the domain fixed the issue.

HOWTO list local administrators on the Windows CMD

Technical notes, my online memory: HOWTO list local administrators on the Windows com... : To get a list of local admins: net localgroup administrators I love it when I find these tid bits, especially when this person's blog is "my online memory"

Random TS Sessions disconnected

http://www.sjogrens.nu/?p=81 Thanks Daniel. Getting disconnected from your RDP session? Posted on February 29, 2012 by Daniel Are you using remote desktop against a Windows 7 machine and gets randomly disconnected? Many organizations are enabling Remote Desktop through Group Policy. There is a little problem with this approach. Normally, Remote Desktop is turned off by default, you can see the default setting in this registry key: [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server] “fDenyTSConnections”=dword:00000001 When you enable the Group Policy Computer Configuration > Policies > Administrative Templates > Windows Components > Remote Desktop Services > Remote Desktop Session Host > Connections > Allow users to connect remotely using Terminal Services, it will create the registry key fDenyTSConnections under [HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows NT\Terminal Services] But everytime your computer does a gpupdate...

FROM: IT Walk Thru: Finding all VMs with thick hard drives

Found this PowerCLI  code very helpful! Thanks Benj IT Walk Thru: Finding all VMs with thick hard drives : Get-VM | Get-HardDisk | where-object {$_.StorageFormat -eq 'Thick'} | select-object -expandproperty Parent -unique | sort

PowerCLI Notes Get VM Name from MAC Address

PowerCLI Notes I was looking to see if a particular server still existed. It had an app licensed by MAC address. This little line of code helped me to find the MAC did not exist. So I built a new VM and gave it this MAC and re installed the app. ~~~~~ Connect-VIServer VSPHERE01 Get-VM | Get-NetworkAdapter | Where {$_.MacAddress -eq “00:50:56:9B:29:1C”} | Format-List