Setup KMS Server for Windows Server 2008 R2 or Windows 7

Open the command prompt and run the following command:

cscript c: \ \ System32 \ slmgr.vbs / ipk xxxxx-xxxxx-xxxxx-xxxxx-xxxxx

Enter the product key xxxxx Windows Server . It is also able to activate . The following text appears when the command is successful.

® Windows Script Host Version 5.7
Copyright © Microsoft Corporation. All rights reserved.
Installed product key xxxxx-xxxxx-xxxxx-xxxxx-xxxxx successfully.
The installation of the KMS server is complete. The server installs itself on port 1688. This port must be opened to be put in the firewall. To change the port the following command can be used.

Slmgr.vbs / SPRT xxxx
Once the firewall is open and the key is installed, the KMS server service has to be restarted. Do this by using the following command:

slsvc & net stop & net start slsvc

To check whether the data will be registered correctly in the DNS, the following command:

nslookup-type = srv _vlmcs._tcp

Here, the following output should appear:

_vlmcs._tcp.test.local SRV service location:
priority = 0
weight = 0
port = 1688
svr hostname = kms.wardvissers.local
internet address = 192.168.150.7 kms.wardvissers.local

Clients / Servers

The clientele / servers need to connect to the KMS host will automatically find the host by dns. When the client / server using a MAK key is activated. Should this be put back to a KMS client key. These keys are released by Microsoft. When this key is set on the client / server will automatically look for a KMS host. When not present, the client / server activation.

KMS client keys:

Windows 7 Enterprise: 33PXH-7Y6KF-2VJC9-XBBR8-HVTHH
Windows Server 2008 Standard: TM24T-X9RMF-VWXK6-X8JC9-BFGM2
Windows Server 2008 Enterprise: YQGMW-MPWTJ-34KDK-48M3W-X4Q6V
Windows Server 2008 R2 Standard – YC6KT-GKW9T-YTKYR-T4X34-R7VHC
Windows Server 2008 R2 Enterprise – 489J6-VHDMP-X63PK-3K798-CPX3Y

The following commands can the key be changed from MAK to KMS here are the xxxxx is one of the above keys.

slmgr.vbs / ipk xxxxx-xxxxx-xxxxx-xxxxx-xxxxx
Note: To ensure that the client is forced to activate the command to be executed on the client.
slmgr-ato

It can happen that the RMS server returns the following message. This is because the KMS server is just beginning to work with 25 clients and 5 servers.

You can find here the list with error codes & solutions: http://support.microsoft.com/kb/938450

Special thanks to:Harm Hoekstra

Post to Twitter

MMC could not create the snap-in. CLSID: FX:{18ea3f92-d6aa-41d9-a205-2023400c8fbb} error

I was able to solve this problem by the procedure below.

1. Navigate to the following directory:

x64 OS
C:\\.NET\Framework64\v2.0.50727\CONFIG

x86
C:\Windows\Microsoft.NET\Framework\v2.0.50727\CONFIG

2. Copy the ‘machine.config’ file to desktop just in case before you go to 3rd step.

3. Rename machine.config to machine.config.old which is locating in the directory above.

That’s it Winking smile

Post to Twitter

GAL Photos in Exchange 2010 and Outlook 2010

With Exchange 2010 and Outlook 2010 & Lync & Sharepoint 2010 you can finally get photos into your global address list (GAL) and see just who’s who on your emails. You can do this on 2 way’s

1. Using Powershell Smile

    A minor schema change

    First stop, the AD Schema. A minor schema modification is required to flip the thumbnailPhoto attribute to make it replicate to the Global Catalog.

    1. If you haven’t registered the Schema MMC snap-in on the server you want to make this change on, go ahead and do so using the following command:

      Regsvr32 schmmgmt.dll

    2. Fire up a MMC console (Start -> Run -> MMC) and add the Schema snap-in

    3. In the Schema snap-in, expand the Attributes node, and then locate the thumbnailPhoto attribute. (The Schema snap-in lists attributes by its ldapDisplayName).

    4. In the Properties page, select Replicate this attribute to the Global Catalog, and click OK.

      Figure 1: Modifying the thumbnailPhoto attribute to replicate it to Global Catalog

      Loading pictures into Active Directory

      Now you can start uploading pictures to Active Directory using the Import-RecipientDataProperty cmdlet, as shown in this example:

      Import-RecipientDataProperty -Identity "Ward VIssers" -Picture -FileData ([Byte[]]$(Get-Content -Path "C:\pictures\wardvissers.jpg" -Encoding Byte -ReadCount 0))

      To perform a bulk operation you can use the Get-Mailbox cmdlet with your choice of filter (or use the Get-DistributionGroupMember cmdlet if you want to do this for members of a distribution group), and pipe the mailboxes to a foreach loop. You can also retrieve the user name and path to the thumbnail picture from a CSV/TXT file.

      2. Using a Free tool like Outlook Photos from Exclaimer

      Download the Tool HERE

      The tool is easy to use Smile.

      Prerequisites

      User Preferences

        Domain user – The logged in user’ account is required to be an Active Directory account.

        Domain computer – The computer the user is logged into needs to be joined to an Active
        Directory domain.

        Active Directory permissions – The logged in user must have permission to upload photos to the required Active Directory accounts. (Alternate credentials can be supplied or control of the thumbnailPhoto field can be delegated to the logged in user.)

      Operating System

      • Server 2003 x86 (including all service pack levels).
      • Windows Server 2003 R2 x86 and x64 (including all service pack levels).
      • Windows Server 2008 x86 and x64 (including all service pack levels).
      • Windows Server x86 and x64 (including all service pack levels).
      • Windows Small Business Server 2003 (including all service pack levels).
      • Windows Small Business Server 2008.
      • Windows Small Business Server 2011.
      • Windows XP x86 and x64 (including all service pack levels).
      • Windows Vista x86 and x64 (including all service pack levels).
      • x86 and x64 (including all service pack levels).

      Other Software

      Microsoft Outlook 2010 x86 and x64

      Microsoft .NET Framework 3.5 SP1

      Microsoft Exchange 2010 RTM and above

      Active Directory

      You must be logged into an Active Directory domain to run the application.

      Active Directory Forest
      Domain and Forest functional level of Windows Server 2008 and above.
      For Domain or Forest functional level of Windows Server 2003, the Windows Server 2008 Forest preparation must first be complete.

      Screenshots

        image image

      Post to Twitter

      Group Policy Preferences Data Sources Failed with error 0×80070057

      clip_image002
      Group Policy Data Sources is voltooid.

      Aanvullende gegevens:

      Het voorkeursitem computer ‘Nordined’ in het groepsbeleidsobject ‘De naam van de policy {54A928D5-EAA8-421B-9F12-066B350B6671}’ is niet toegepast, omdat het is mislukt met foutcode ’0×80070057 De parameter is onjuist.’%%100790273

      Oplossing:

      clip_image004

      clip_image006

      Edit Datasources.xml
      <?xml version="1.0" encoding="utf-8"?>

      <DataSources clsid="{380F820F-F21B-41ac-A3CC-24D4F80F067B}"><DataSource clsid="{5C209626-D820-4d69-8D50-1FACD6214488}" name="WARD" image="2" changed="2011-03-02 09:04:35" uid="{2E9E5014-DEA3-4B65-AD9A-B8A6C602E576}" userContext="1" removePolicy="0"><Properties action="U" userDSN="0" dsn="WARD" driver=" Server" description="Ward" username="" cpassword=""><Attributes><Attribute name="SERVER" value="SQLSERVERNAME"/><Attribute name="TRUSTED_CONNECTION" value="Yes"/><Attribute name="DATABASE" value="DATABASENAAM"/></Attributes></Properties></DataSource>

      </DataSources>

      Delete username="" and cpassword=""
      <?xml version="1.0" encoding="utf-8"?>

      <DataSources clsid="{380F820F-F21B-41ac-A3CC-24D4F80F067B}"><DataSource clsid="{5C209626-D820-4d69-8D50-1FACD6214488}" name="WARD" image="2" changed="2011-03-02 09:04:35" uid="{2E9E5014-DEA3-4B65-AD9A-B8A6C602E576}" userContext="1" removePolicy="0"><Properties action="U" userDSN="0" dsn="WARD" driver="SQL Server" description="Ward" ><Attributes><Attribute name="SERVER" value="SQLSERVERNAME"/><Attribute name="TRUSTED_CONNECTION" value="Yes"/><Attribute name="DATABASE" value="DATABASENAAM"/></Attributes></Properties></DataSource>

      Now the policy is deployed succesvol Open-mouthed smile

      Post to Twitter

      Microsoft Assessment and Planning Toolkit 5.5

      The Assessment and Planning Toolkit (MAP) is an agentless, automated, multi-product planning and assessment tool for quicker and easier desktop and server migrations. MAP provides detailed readiness assessment reports and executive proposals with extensive hardware and software information, and actionable recommendations to help organizations accelerate their IT infrastructure planning process, and gather more detail on assets that reside within their current environment. MAP also provides server utilization data for Hyper-V server virtualization planning; identifying server placements, and performing virtualization candidate assessments, including ROI analysis for server consolidation with Hyper-V.

      MAP helps make the following IT planning projects faster and easier:

      • Migration to 7, Server , and Microsoft Office 2010
      • Migration to compatible versions of Internet Explorer
      • Migration to cloud-based services
      • Server virtualization with Hyper-V
      • Server consolidation and migration to Server 2008 R2
      • Assessment of current software usage and client access history for simplified software asset management
      • PC security assessment and migration to Microsoft Forefront Client Security

      You can use MAP to inventory the following technologies:

      • Windows 7
      • Windows Vista
      • Windows XP Professional
      • Office 2010 and previous versions
      • Windows Server 2008 or Windows Server 2008 R2
      • Windows Server 2003 or Windows Server 2003 R2
      • Windows 2000 Professional or Windows 2000 Server
      • ESX
      • VMware ESXi
      • VMware Server
      • Linux variants
      • LAMP application stack discovery
      • SQL Server 2008 R2
      • MySQL
      • Oracle
      • Sybase

      Download MAP 5.5 HERE

      Post to Twitter

      When trying to activate you get 0xC004F074 with description "The Key Management Server (KMS) is unavailable"

      Error:
      image

      The KMS host that is used is very probably a Server 2008 KMS host that cannot standard activate 7 and machines.

      When you do not have Windows Server 2008 R2 KMS host key have then you must have a Volume License agreement so that your request your and R2 kms keys.

      Resolution

      Step 1:
      -If the KMS host a Windows Server 2003 SP2 machine is you have the update from the KB article KB968915 install and restart the machine.
      -If the KMS host a Windows Server 2008 SP2 machine is you have the update from the KB article KB968912 install and start the new machine.
      -If the KMS host one Windows Server 2008 R2 machine is you have to install any further update.

      Step 2:
      You the new KMS host key import now. The commands are as follows:

      1. Uninstall KMS license Key on host – slmgr.vbs /upk

      2. Install Windows Server 2008 R2 KMS license key – slmgr.vbs /ipk <Your Key>

      3. Activate KMS server online: slmgr.vbs /ato

      4. Net Stop slsvc

      5. Net Start slsvc

      The clients can now activate

      Post to Twitter

      Defrag your Virtual Machines (VMs’)

      Just like any other operating system, over time, a disk will become fragmented. Virtual machines are no different. The time that it takes for a disk to become fragmented depends on what data is being added to and removed from the virtual machine hard drive.

      Why use MyDefrag instead of the standard defragger?

      • Much faster.
      • Totally automatic, extremely easy to use.
      • Optimized for daily use.
      • Disk optimization, several strategies.
      • Directories are placed together.
      • Reclaims NTFS reserved areas after disk-full.
      • Maintains free spaces for temporary files.
      • Can defragment very full harddisks.
      • Can defragment very large files.
      • Can defragment individual directories and files.
      • Can be run automatically with the Windows Scheduler.
      • Can be used from the commandline.
      • Can be used as a screen saver.
      • Can be run from cdrom or memory stick.
      • Script language, can be customized.
      • Better voor VCB, VDR, DPM & Snapshots.

      When you run MyDeFrag.exe with /verysilent it detect automatically the OS and then install x86 or x64 version from MyDefrag. It’s always installed at c:\program files. You can deploy it with automatically when installing the OS. Or run it from a network share.

      You can use Group Policy Preferences to schedule it. 
      image

      Post to Twitter

      Event ID 4004 The DFS Replication service stopped replication on the replicated folder at local path C:\Windows\SYSVOL\domain.

      image

      Oplossing Deel 1:
      A newly promoted Windows 2008 domain controller may fail to advertise after completion of DCpromo

      Oplossing Deel 2:
      Error: 997 (Overlapped I/O operation is in progress.)

      DPM Data Protector Manager Agent verwijderd

      DFS Replication service opnieuw opgestart
      image

      Eventviewer
      image 

      En gelukkig werkt alles weer naar behoren.

      Post to Twitter

      Installeren VMWare vSphere 4.0 op Windows 2008 x64 SP2

      1. Zorg dat je werkende 2008 x64 server hebt en werkende Server . Ik heb tijdens deze installatie Server 2008 standaard gebruikt. Maak op de server 2 Databases op aan bijvoorbeeld & vmware udm

      2. Download de Native SQL Client voor 2008 hebt. Downloaden doe je hier: X64 Package (sqlncli.msi) – 7963 KB

      3. Open de System32DNS door het volgende commando uit te voeren in run: %systemdrive%\Windows\SysWoW64\Odbcad32.exe
      Microsoft:
      kb942976
      VMWare:
      kb1010401

      4. Maak 2 Systeem-DSN’s aan, een voor VMware zelf en een voor de update manager
      Zie de volgende scherm afbeeldingen. Doe de volgende stappen dus 2 keer.
      clip_image002
      clip_image004

      clip_image006
      Vul hier de SA gegevens in.
      clip_image008
      Kies hier een van de twee databases die je aangemaakt hebt.
      clip_image010
      clip_image012
      clip_image014

      4. Installeren
      clip_image016
      clip_image018
      clip_image020

      clip_image022
      clip_image024
      clip_image026

      clip_image028
      clip_image030
      clip_image032

      clip_image034
      clip_image036
      clip_image038

      clip_image040

      Post to Twitter