Get .NET Framework Version of an assembly (dll/exe) using PowerShell

i just had to find the required framework version for a compiled .NET assembly (just to make sure, that the selected Application Pool in IIS was set to the righte Framework Version).

——–

$fileBrowser = New-Object System.Windows.Forms.OpenFileDialog -Property @{
 Filter = 'Assemblies (*.dll & *.exe)|*.dll'
 MultiSelect = $true}
 [void]$fileBrowser.ShowDialog()
 $files = $fileBrowser.FileNames
  
 foreach($file in $files)
 {
 $version = [System.Reflection.Assembly]::ReflectionOnlyLoadFrom($file).ImageRuntimeVersion;
 echo "$($file) is using Framework: $version"
 }
 

————–

Disabling Java Automatic Updates on a Terminal Server 32-bit and 64-bit Registry Redirection (Wow6432Node)

On a recently setup Windows Server 2008 R2 terminal server, Java was installed, and by default the JRE will enable automatic updates for all users. No daily users have administrative privileges, but all users are prompted to install updates. No users can actually install the available updates, nor can they disable the update check via the Control Panel.

Continue reading

Update a VMware ESX 4.1 Host

To scan for updates

esxupdate -m https://hostupdate.vmware.com/software/VUM/PRODUCTION/main/esx/vmw/vmw-ESXi-4.1.0-metadata.zip scan

Stage updates

esxupdate -m https://hostupdate.vmware.com/software/VUM/PRODUCTION/main/esx/vmw/vmw-ESXi-4.1.0-metadata.zip stage

Enter Maintenance Mode

vim-cmd /hostsvc/maintenance_mode_enter

Apply updates

esxupdate -m https://hostupdate.vmware.com/software/VUM/PRODUCTION/main/esx/vmw/vmw-ESXi-4.1.0-metadata.zip update

Exit Maintenance Mode

vim-cmd /hostsvc/maintenance_mode_exit

Finally Reboot

reboot

Send text messages directly from any e-mail program (Outlook, Thunderbird..)

eSMS by Dolphin Systems allows you to send and receive text messages from any e-mail program.
You must have a Swisscom mobile phone number for using eSMS.

Ready for immediate use

Before you can use eSMS, you have to register via text message; follow the relevant user manual for this. You can then use eSMS immediately.

Billing directly on your mobile phone

The billing of SMS messages is done via the mobile phone bill or prepaid credit from the mobile number given at registration. The costs per SMS (160 characters) is CHF 0.20.

The advantages

  • Very easy setup

  • Send and receive SMS

  • Direct answers back

  • Contacts from Outlook adress book

  • Preview of the transmission order

  • Delayed transmission

Very easy to use

pdfeSMS Manual for MS Outlook 2010

pdfeSMS Manual for MS Outlook 2007

For users of MS Outlook 2003 and other e-mail programs:

pdfeSMS Manual for all e-mail programs

Logitech Anywhere Mouse MX in Windows 7 64bit

Today I bought a Logitech Anywhere Mouse MX. I didn’t expect, that it can be so complicated to install and configure that mouse. Well, it was the so called USB Receiver which made problems – The Windows 7 64bit System didn’t find a suitable driver for that micro-device.

Continue reading

WerFault.exe – Windows Error Reporting Shortcomings

Today I’ll write about Windows Error Reporting on Windows Server 2008 R2 / Windows 7, a set of Windows technologies that capture software crash and hang data from end users.

See this post as a summary of what I’ve learned when analyzing Windows Error Reporting feature and it’s ‘shortcomings’

Continue reading

Modify the Computer icon text to show logged on username in Windows Server 2008 (R2)

Changing the text on the Computer icon on your Remote Desktop Services Session Host is handy when a user calls you and you want to know which Session Host the user is logged on. The procedure to do this has changed since Windows Server 2003.

Continue reading

Finding process that locks a DLL

You want to replace a dll on a system, but you get access denied, although you’re admin, have the necessary rights.. so which process is locking the particular file/library. I know, there is handles.exe from Sysinternal Suite, and plenty other tools that do the trick.But, you don’t need third-party tools to get the answer, just use tasklist.exe or PowerShell.  

Continue reading