Archive

Archive for the ‘Microsoft’ Category

Hyper-V Remote Management Configuration Utility

April 30th, 2010 christian No comments
HVRemote reduces the manual configuration steps needed for Hyper-V Remote Management down to a few simple commands. Logo_windows-server-2008-hyper-v-logo-v_2

 

  • HVRemote can diagnose common configuration errors.
  • HVRemote is locale neutral, although output is in English only.
  • HVRemote can configure all combinations of workgroup and domain joined clients and servers.
  •  

    http://code.msdn.microsoft.com/HVRemote

    Windows Help File: Navigation to the Webpage was canceled

    April 27th, 2010 christian No comments

    It seems it’s not clear for everyone. When you download a compiled HTML Help file from the internet, the file get’s tagged as insecure. Now when you open the file, the content get’s block unless you remove the lock..

    Screenshot (this is not an error of this page ;)

    CHM_Help_File_Navigation_to_the_webpage_was_canceled

    To unlock the the file, just right-click it in explorer and chose properties. Under Genereal you’ll find an unlock button

    CHM_Help_File_Properties_Unlock_button

    that’s it. Now you can open the and read the file as usual..

    PowerShell: About SessionConfiguration and how to change them

    April 24th, 2010 christian No comments

    Remote Access Without Admin Privileges

    In PowerShell v.2, remote access is available only to users who hold local administrator privileges. So, even if you do have appropriate remote access to a machine, , you cannot remotely access the system if you are not an Admin. This is not a technical limitation, though, just a safe default. You should use this line to change it :

    Set-PSSessionConfiguration -Name Microsoft.PowerShell -showSecurityDescriptorUI

    Categories: PowerShell Tags: PowerShell

    PowerShell: Generate PC Lists using Foreach-Object and -f Operator

    April 24th, 2010 christian No comments

    Generate PC Lists

    One easy way of creating lists of PC names or IP address ranges etc is a simple pipeline like this:

    1..40 | Foreach-Object { ‘PC-W7-A{0:000}’ -f $_ }

    Use the -f operator to format the number. In this example, it will always be three-digit.

    Categories: PowerShell Tags: PowerShell

    PowerShell: Sort-Object

    April 24th, 2010 christian No comments

    You can use Sort-Object to sort simple variable types. Have a look at the following:

    ‘Tom’, ‘Chris’, ‘Judy’, ‘Alan’ | Sort-Object

    Input can come from a different command. If you’d like to get seven random lottery numbers, you should try this:

    1..49 | Get-Random -Count 7 | Sort-Object

    You’ll find that when you feed complex objects into Sort-Object, you should specify the object property you want to sort on (or else Sort-Object will pick one by itself):

    Get-ChildItem $env:windir | Sort-Object Length

    Here are some more examples:

    Get-HotFix | Sort-Object InstalledOn

    Get-ComputerRestorePoint | Sort-Object Description

    Categories: PowerShell Tags: PowerShell

    VS.NET: Missing item templates in Visual Studio

    April 23rd, 2010 christian No comments

    Today, when I started visual studio and wanted to Add new Item to an existing project / solution, I found that the Template for Silverlight Child Window was missing from my visual studio 2010 templates.

    Logo Microsoft Visual Studio

    Read more…

    VS.NET: Cannot implicitly convert type ‘SomeType[]‘ to ‘System.Collections.ObjectModel.ObservableCollection<[Namespace].SomeType>’

    March 23rd, 2010 christian No comments
    There seems to be a known bug / issue in Visual Studio 2010 RC when dealing with Service References (to a WCF Service). The Collection Type of the Service Reference is set to custom and you start getting compilation errors like:
    Cannot implicitly convert type ‘SomeType[]‘ to ‘System.Collections.ObjectModel.ObservableCollection<[Namespace].SomeType>’   
    Logo Microsoft Visual Studio

    Read more…

    Categories: Microsoft, Visual Studio 2010 Tags: VS.NET

    Netsh AdvFirewall: Manage Windows Firewall using NetShell

    March 19th, 2010 christian No comments
    Ok, this one’s about managing your Windows Firewall with Advanced Security (WFAS).

    Today, most companies disable the Windows Firewall. Why? i think this has several reasons. One reason probably is that they think the LAN is safe and there is no need for a Firewall – negligent! Other reasons might be: laziness, missing understanding / know how, too less time.. Ok, in this post i want to write down some of my own experiences when managing the Windows Firewall with Advanced Security (WFAS) but also i want to show you, that there are easy ways to manage the WFAS using the Netsh command line tool.

    Logo_cmd

    Read more…

    Microsoft Exchange 2007 / 2010 – Statistics using Exchange Management Shell (EMS)

    March 14th, 2010 christian No comments
    Using Microsoft Exchange 2007 / 2010 Management Shell (PowerShell with extensions), you can pull out some very exciting statistics. That was never that easy in the pre Exchange 2007 era. Logo_ExchangeSvr

    Read more…

    PowerShell: Creating large dummy files with .NET

    March 13th, 2010 christian No comments
    Ok, this one’s is cool i think. Whenever i needed a large dummy file, i opened up notepad, write ASDFASDFASDFA CTRL-A, CTRL-C, CTRL-V,CTRL-V,CTRL-V,CTRL-V. CTRL-A, CTRL-C, CTRL-V,CTRL-V,CTRL-V,CTRL-V,CTRL-V.. Then i saved the file, opened up a CMD-Shell and wrote copy dummyFile.txt+dummyFile.txt+dummyFile.txt until the file was large enough.. ok, there’s fsutil.exe which does the same in a much more efficient manner.. OR, unleash the Power of .NET – no, you don’t have to start programming using Visual Studio, just open up PowerShell.. Logo_PowerShell

    Read more…

    Categories: PowerShell Tags: PowerShell
    WordPress SEO fine-tune by Meta SEO Pack from Poradnik Webmastera