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: Display almost anything in a graphical GridView

April 24th, 2010 christian No comments

Out-GridView Dirty Tricks

Out-Gridview is a new cmdlet in PowerShell v.2 which allows you to output objects to a “mini” excel sheet like this:

Get-Process | Out-GridView

However, this only works if .NET Framework 3.51 is installed. While PowerShell requires just .NET 2.0, both Out-GridView and ISE-Editor require 3.51 because of their WPF graphical output.

Out-Gridview will display the same columns you would have seen when you output the objects to the console. You should clone the object first to see all object properties in your gridview:

Get-Process | Select-Object * | Out-Gridview

Categories: No Category Tags: PowerShell

PowerShell: Create a temporary filename

April 24th, 2010 christian No comments

Thanks to Get-Date, you can easily create unique temporary file names with a timestamp:

(Get-Date -format ‘yyyy-MM-dd hh-mm-ss’) + ‘.tmp’

Categories: No Category 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

Google’s Insane Number of Servers Visualized

April 24th, 2010 christian No comments

500x_most-dedicated-servers.jpg

You already just sort of know, logically and instinctively, that Google’s got a ridiculous number of servers working for them. That doesn’t make it any less mind-boggling when visualized. Get ready for a lot of scrolling.

Of course, not all servers are created equal—so “more” is a problematic word here. And I’m betting this wouldn’t look quite so lopsided if big hitters like Microsoft, Yahoo, and Amazon were represented. Regardless, though, such a massive difference of scale is incredibly impressive, even if not entirely surprising.

Note: Contrary to the graphic’s description, iWeb is in fact a “worldwide provider of Internet hosting and IT infrastructure” based in Montreal, and not in any way affiliated with Apple. [Intac via Reddit; Data from Data Center Knowledge]

Categories: Google Tags: Google

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…

WordPress SEO fine-tune by Meta SEO Pack from Poradnik Webmastera