Thursday, March 3, 2016

[WSRV] Check which .NET Framework versions are installed


CMDLET:

Get-ItemProperty -Path “HKLM:SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full” | Format-List Release



https://msdn.microsoft.com/en-us/library/hh925568(v=vs.110).aspx



  1. On the Start menu, choose Run.
  2. In the Open box, enter regedit.exe.
    You must have administrative credentials to run regedit.exe.
  3. In the Registry Editor, open the following subkey:
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full
    Note that the path to the Full subkey includes the subkey Net Framework rather than .NET Framework.
    System_CAPS_noteNote
    If the Full subkey is not present, then you do not have the .NET Framework 4.5 or later installed.
    Check for a DWORD value named Release. The existence of the Release DWORD indicates that the .NET Framework 4.5 or newer has been installed on that computer.


  1. The value of the Release DWORD indicates which version of the .NET Framework is installed.
    Important
    The following table lists the keys of released versions of the .NET Framework only. It doesn't list the keys of preview or pre-release versions.
Value of the Release DWORD
Version
378389
.NET Framework 4.5
378675
.NET Framework 4.5.1 installed with Windows 8.1 or Windows Server 2012 R2
378758
.NET Framework 4.5.1 installed on Windows 8, Windows 7 SP1, or Windows Vista SP2
379893
.NET Framework 4.5.2
On Windows 10 systems only: 393295

On all other OS versions: 393297
.NET Framework 4.6
On Windows 10 November Update systems only: 394254

On all other OS versions: 394271
.NET Framework 4.6.1
On Windows 10 Anniversary Update and Windows Server 2016: 394802

On all other OS versions: 394806
.NET Framework 4.6.2
On Windows 10 Creators Update only: 460798

On all other OS versions: 460805
.NET Framework 4.7
On Windows 10 Fall Creators Update only: 461308

On all other OS versions: 461310
.NET Framework 4.7.1
On Windows 10 April 2018 Update only: 461808

On all other OS versions: 461814
.NET Framework 4.7.2

[EX2010] Configure TLS Certificate for Receive Connectors




Get-ExchangeCertificate


$cert = Get-ExchangeCertificate -Thumbprint E67EC3C8D679AA35D17678FEC51907272B1BAE2

$tlscertificatename = "<i>$($cert.Issuer)<s>$($cert.Subject)"

Set-ReceiveConnector "EX2016SRV1\Client Frontend EX2016SRV1" -TlsCertificateName $tlscertificatename

Wednesday, March 2, 2016

[WSRV] Hyper-V VM doesn't start. “‘General access denied error’ (0x80070005)”



  1. Note the Virtual Machine ID that is listed in the "‘General access denied error’ (0x80070005)" error message.

    For example, consider the following error message:

    ‘VMName’: IDE/ATAPI Account does not have sufficient privilege to open attachment
    ‘E:\VMs\VMName\Disk0.vhd. Error: ‘General access denied error’ (0x80070005). (Virtual
    Machine ID 5FC5C385-BD98-451F-B3F3-1E50E06EE663)

    In this example, the Virtual Machine ID is 5FC5C385-BD98-451F-B3F3-1E50E06EE663.
  2. Open an elevated command prompt.
  3. To give the Virtual Machine ID (SID) access to the .vhd or .avhd file, type the following command, and then press Enter:
    icacls <Path of .vhd or .avhd file> /grant "NT VIRTUAL MACHINE\<Virtual Machine ID from step 1>":(F)
    For example, to use the Virtual Machine ID that you noted in step 1, type the following command, and then press Enter:
    icacls "E:\VMs\VMName\Disk0.vhd" /grant "NT VIRTUAL MACHINE\5FC5C385-BD98-451F-B3F3-1E50E06EE663":(F)
  4. Start the virtual machine.
https://support.microsoft.com/en-us/kb/2249906

[WSRV] List Global Catalog Servers



  • nslookup
  • set type=srv
  • _gc._tcp.domain.local




  • nltest /dsgetdc:alabama.usa /gc




  • netdom query dc



  • Open Active Directory Sites and Services.
  • In the console tree, expand the Sites container, expand the site of the domain controller you want to check, expand the Servers container, and then expand the Server object.
  • Right-click the NTDS Settings object, and then click Properties.
  • On the General tab, if the Global Catalog box is selected, the domain controller is designated as a global catalog server.