Archive for May, 2011

AutoExit 2011 Beta-2 For Windows Home Server 2011

May 31, 2011

It’s been a while since Beta-1 of AutoExit for WHS 2011 was released, but now you can rest assured Beta-2 is here!

This version mostly fixes issues that were present in Beta-1 and it had been made fully compatible with the release version of WHS 2011.
A new feature in this beta is that you can now also add non-WHS machines (which don’t have the WHS Client Connector software installed)

You can download it from the ASoft site.
Please report your bugs via this feedback page.

Advertisement

Newsletter

May 27, 2011

You can now subscribe to the ‘ASoft Newsletter’; news/updates will be posted to this mailinglist so that you can easily stay up-to-date with ASoft and its products.

How to retrieve the product type of Windows Home Server 2011

May 22, 2011

Windows Home Server 2011 has three product editions:

  • Windows SBS 2011 Essentials incorporates best-of-breed 64-bit product technologies for data backup and restore, remote access, file and printer sharing, and quick connection to the cloud—in one fully integrated solution.
  • Windows Home Server 2011 is the server platform that’s designed specifically for families and how they access their digital data. It helps to simplify and connect your family’s photos, videos, music, and TV by providing a familiar and easy way to share, store, stream, and automatically protect what’s most important. It supports up to 10 users.
  • Windows Storage Server 2008 R2 Essentials is the ideal storage server solution to help home-based and small business owners keep important data automatically backed up, protected, organized, and accessible from virtually anywhere. Built on the Windows Server 2008 R2 operating system, it streamlines access to centralized files for up to 25 users.

If you are writing an addin and you want to know what version your addin is running on, then this simple class will be very helpful to you.

The way we retrieve this information is via the Windows API GetProductInfo:
private const int PRODUCT_HOME_SERVER = 0x22;
private const int PRODUCT_SB_SOLUTION_SERVER = 0x13;
private const int PRODUCT_HOME_PREMIUM_SERVER = 0x32;

[DllImport(“kernel32.dll”)]
private static extern bool GetProductInfo(int dwOSMajorVersion, int dwOSMinorVersion, int dwSpMajorVersion, int dwSpMinorVersion, outuint pdwReturnedProductType);

///<summary>
/// WHS Edition
///</summary>
public enum WHSEdition
{
///<summary>
/// Unknown Edition
///</summary>
Unknown = 0,
///<summary>
/// Windows Home Server 2011
///</summary>
Standard = 1,
///<summary>
/
// Windows Small Business Server 2011 Essentials
///</summary>
SmallBusinessEssentials = 2,
///<summary>
/// Windows Storage Server 2008R2
///</summary>
StorageServer = 3
}

///<summary>
/// Retrieves the WHS Edition that the application is running on
///</summary>
///<returns>WHSEdition</returns>
public static WHSEdition GetWHSEdition()
 {
uint pdwReturnedProductType;

GetProductInfo(Environment.OSVersion.Version.Major,
Environment.OSVersion.Version.Minor,
0,
0,
out pdwReturnedProductType);

switch (pdwReturnedProductType)
{
case PRODUCT_HOME_SERVER: return WHSEdition.Standard;
case PRODUCT_SB_SOLUTION_SERVER: return WHSEdition.StorageServer;
case PRODUCT_HOME_PREMIUM_SERVER: return WHSEdition.SmallBusinessEssentials;
default: return WHSEdition.Unknown;
}
}

You can download the class sourcefile here.

.NET Version Detector XI is here

May 18, 2011

A new version of .NET Version Detector has been released.
It’s a minor update but with a very useful feature!

It’s now possible to use a the commandline to run .NET Version Detector without its user interface and create a report that is saved to a file of your choice.
You can do it like this: dotnet.exe <pathtofile>
Example: dotnet.exe c:\temp\asoft_netver.txt

You can download the latest version here.