Posts Tagged ‘m$’

Adding and troubleshooting KMS keys

Thursday, October 29th, 2015

On the KMS host:

Use Volume Activation Tools to add a new host key or:

cscript.exe c:\windows\system32\slmgr.vbs -ipk XXXXX-XXXXX-XXXXX-XXXXX-XXXXX

To see what keys have been deployed and what the status is:

cscript.exe c:\windows\system32\slmgr.vbs /dlv all

To activate (requires http/s access from the KMS host):

cscript.exe c:\windows\system32\slmgr.vbs /ato activation.ID

where Activation ID is a string you get from running ‘cscript slmgr.vbs /dlv all’.

On the KMS client:

To manually force the activation of Windows OS (requires 1688/tcp access to the KMS host):

cscript.exe c:\windows\system32\slmgr.vbs /ato

To manually force the activation of Windows Office (requires 1688/tcp access to the KMS host):

cscript.exe c:\"program files (x86)"\"microsoft office"\office14\ospp.vbs /act

SharePoint 2010 with OpenLDAP authentication

Wednesday, July 18th, 2012

A relevant piece from web.config that worked for me allowing SharePoint 2010 authenticate against OpenLDAP. OpenLDAP is powered by Ubuntu 10.04.2 LTS (lucid) and OpenLDAP 2.4.21 (installed from packages).


Three points to mention:

1. As you can see I’m using SSL — make sure to import your certificates through mmc.

2. agentname is allowed to search ‘ou=People,dc=domain,dc=org’. In ACL language:

 access to dn.subtree="ou=People,dc=domain,dc=org"
    by dn.regex="cn=(.*),ou=Agents,dc=domain,dc=org" read
    by * none

3. I had to enable ‘allow bind_v2’ in slapd.conf to allow agentname to query OpenLDAP, otherwise I was getting ‘historical protocol version requested, use LDAPv3 instead‘.

All in all it was a hell of an exercise!

How to disable IPv6 in Windows Vista

Friday, August 8th, 2008

Disabling IPv6 in Windows Vista could be done using one of the following methods. Both methods will disable IPv6 on all networks adapters, excluding IPv6 loopback interface (excluding tunnel as well if you follow the first approach).


How to insert image into PDF file

Saturday, July 19th, 2008

Yesterday, I’ve been asked a question about how to insert an image into PDF file with Adobe Acrobat installed? Well, it came out that it’s not as straightforward as it supposes to be. Anyway, here we go.


How to disable autorun in Windows XP

Wednesday, July 2nd, 2008

With all these nasty worms going wild nowadays disabling autorun becomes a must-have decision. It’s all mainly because of USB flash drives getting infected with bunch of stuff. Not a big deal for office environment because no one should have administrative rights, however, in a home environment, where PCs are usually shipped with admin rights granted by default, people get into a mess almost immediately. Anyways, here is what I do to disable autorun in AD environment.


Dealing with Cannot delete file: Access is denied error

Wednesday, June 25th, 2008

This morning I’ve been fighting with “Cannot delete file: Access is denied” error under Vista Enterprise while trying to reinstall Adobe Acrobat 7.0 Professional. Don’t know what went wrong initially but activation get corrupted and Adobe was closing immediately after opening any pdf file. While trying to uninstall the package it failed to delete several dll files leaving Adobe half-removed. There was nothing wrong with permissions, nor I was able to trace by whom this dlls were locked. After googling and reading several similar cases on Adobe forum I came across to small piece of code which did the trick for me. The software is called Unlocker and it’s free. Try it – it worked for me, so I was finally able to delete and reinstall Adobe.