2014/05/15

This file does not have a program associated with it for performing this action

Wired... Since some days i'm not able to use the "run with" command within my windows 8(.1). I always fot the error message:

This file does not have a program associated with it for performing this action. Please install a program or, if one is already installed, create an association in the Default Programs control panel.

 or in german

Der Datei ist kein Programm zum Ausführen dieser Aktion zugeordnet. Installieren Sie ein entsprechendes Programm, oder erstellen Sie in der Systemsteuerung unter "Standardprogramme" eine Zuordnung wenn bereits ein Programm installiert ist.




After a longer search i finally found a working solution [1]. After importing the following registry entries the error was gone.

[-HKEY_CLASSES_ROOT\Unknown]

[HKEY_CLASSES_ROOT\Unknown]
"AlwaysShowExt"=""
"TypeOverlay"=""
"QueryClassStore"=""

[HKEY_CLASSES_ROOT\Unknown\DefaultIcon]
@=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,\
  00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,73,00,68,00,\
  65,00,6c,00,6c,00,33,00,32,00,2e,00,64,00,6c,00,6c,00,2c,00,30,00,00,00

[HKEY_CLASSES_ROOT\Unknown\shell]
@="openas"

[HKEY_CLASSES_ROOT\Unknown\shell\InvokeDefaultVerbInOtherProcess]
"ProgrammaticAccessOnly"=""

[HKEY_CLASSES_ROOT\Unknown\shell\InvokeDefaultVerbInOtherProcess\command]
"DelegateExecute"="{e44e9428-bdbc-4987-a099-40dc8fd255e7}"

[HKEY_CLASSES_ROOT\Unknown\shell\Open]
"ProgrammaticAccessOnly"=""
"MultiSelectModel"="Single"

[HKEY_CLASSES_ROOT\Unknown\shell\Open\command]
@=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,\
  00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,4f,00,70,00,\
  65,00,6e,00,57,00,69,00,74,00,68,00,2e,00,65,00,78,00,65,00,20,00,22,00,25,\
  00,31,00,22,00,00,00
"DelegateExecute"="{e44e9428-bdbc-4987-a099-40dc8fd255e7}"

[HKEY_CLASSES_ROOT\Unknown\shell\openas]
@=hex(2):40,00,25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,\
  00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,73,00,\
  68,00,65,00,6c,00,6c,00,33,00,32,00,2e,00,64,00,6c,00,6c,00,2c,00,2d,00,35,\
  00,33,00,37,00,36,00,00,00
"MultiSelectModel"="Single"

[HKEY_CLASSES_ROOT\Unknown\shell\openas\command]
@=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,\
  00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,4f,00,70,00,\
  65,00,6e,00,57,00,69,00,74,00,68,00,2e,00,65,00,78,00,65,00,20,00,22,00,25,\
  00,31,00,22,00,00,00
"DelegateExecute"="{e44e9428-bdbc-4987-a099-40dc8fd255e7}"

[HKEY_CLASSES_ROOT\Unknown\shell\OpenWithSetDefaultOn]
"ProgrammaticAccessOnly"=""
"MultiSelectModel"="Single"

[HKEY_CLASSES_ROOT\Unknown\shell\OpenWithSetDefaultOn\command]
@=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,\
  00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,4f,00,70,00,\
  65,00,6e,00,57,00,69,00,74,00,68,00,2e,00,65,00,78,00,65,00,20,00,2d,00,6f,\
  00,76,00,65,00,72,00,72,00,69,00,64,00,65,00,20,00,22,00,25,00,31,00,22,00,\
  00,00
"DelegateExecute"="{e44e9428-bdbc-4987-a099-40dc8fd255e7}"



[1] http://www.eightforums.com/tutorials/34736-open-choose-default-program-error-fix.html
Tired of a huge amount off IIS logs?

$Location = [adsi]"IIS://localhost/w3svc" | select LogFileDirectory | %{$_.LogFileDirectory}
Dir "$Location\w3svc1\*.log" | ?{$_.LastWriteTime -lt (Get-Date).AddDays(-14)} | del



Add a scheduled task and call the powershell script using a cmd-wrapper
 
powershell.exe -command "& 'PathToYourScriptAbove.ps1'

2014/04/22

Renew Exchange Server certificate - How to convert binary request to base64

The renew exchange server certificate function within the exchange server console provides you with a binary request file. Your (Windows) CA accepts only a base64 request file. Convert the binary to base64 the following easy way:


certutil -encode binary.req base64.txt

2014/03/27

Live Migration failed with error 0x00002745

I just got a strange error message during a failed live migration.

Type: Error
Event-ID: 21502
Source: Hyper-V-High-Availability

Message:   

”Virtual Machine {server}' live migration did not succeed at the source
 ....
Could not send data to the remote node: An Established connection was aborted by the software in your host machine (0x00002745)


or in german stating

"Es konnten keine Daten vom Remoteknoten empfangen werden: Eine bestehende Verbindung wurde softwaregesteuert durch den Hostcomputer abgebrochen. (0x00002745)"

Long story short:  Live Migration failed, we tried a quick migration which worked "well" but couldn't start the VM. After opening the console of the vm and trieing to start the saved quick migrated state we saw the real error "not enough memory available"