Powershell and RSS Feeds

Powershell Header

This is a Quick Powershell note how you can use Powershell to read RSS feeds. This is pretty simple you can use the .NET class WebClient.

$rssFeed = [xml](New-Object System.Net.WebClient).DownloadString('http://www.thomasmaurer.ch/feed/')
$rssFeed.rss.channel.item | Select-Object title -First 5

 

How to Upgrade System Center Virtual Machine Manager 2008 R2 to Service Pack 1

System Center Virtual Machine Manager 2008 R2 SP1Today Microsoft released System Center Virtual Machine Manager 2008 R2 SP1. Serivce Pack 1 for Virtual Machine Manager enable the new features from Windows Server 2008 SP1 or Hyper-V Server 2008 R2 SP1 like Dynamic Memory and RemoteFX.

This Guide shows you how you can upgrade System Center Virtual Machine Manager 2008 R2 to Service Pack 1.

  1. Download System Center Virtual Machine Manager 2008 R2 from here or from MSDN or your Partner Network.
  2. Start Setup.exe
    System Center Virtual Machine Manager 2008 R2 SP1
  3. The installer will automatically find existing installations of SCVMM 2008 R2 and will start the upgrade
    System Center Virtual Machine Manager 2008 R2 SP1
  4. The installer finds all installed components
    System Center Virtual Machine Manager 2008 R2 SP1
  5. Choose Database connection
    System Center Virtual Machine Manager 2008 R2 SP1
  6. Now the update is completed. If you have not installed the latest Updates for SCVMM 2008 R2 you also have to update the Agents on the Hyper-V Servers. If you have already installed the latest SCVMM 2008 R2 updates you don’t have to update the agents.
    System Center Virtual Machine Manager 2008 R2 SP1

 

HP Network Interface does not start.

I just installed two new HP ProLiant DL360 G6 with Microsoft Windows Server 2008 R2. Everything worked fine until I installed the HP Support Pack which includes Drivers and Firmware for the HP Server.

This device cannot start. (Code 10)

After I installed the HP ProLiant Support Pack one of my Network Interfaces could not start. I got the following error in the Device Manager:

HP NC382i DP Virtual Bus Device
This device cannot start. (Code 10)

I tried to uninstall the device and rebooted the server but this didn’t work. I had still the same error.

The problem was that just uninstalling the driver does not work, you also have to check the checkbox on “Delete the driver software for this device.”

Delete the driver software for this deviceAfter doing that you can rescan for new hardware and the system will find this adapter again and everything will work fine.

Import Evernote notes to OneNote 2010

Microsoft OneNote 2010Since I work more and more with Windows 7 I had a look at Microsoft OneNote 2010. Before I used Evernote and I was happy with it. But as I saw OneNote and startet using it, I can’t think being without it. There are alot of features I really love and OneNote 2010 is really nice integrated into Windows 7 and the Office products.

So if you wish to migrate from Evernote to Microsoft OneNote 2010 you can do that in diffrend ways.

  • Import Notes via Outlook (send Evernote Notes via email and import them in Outlook via the Send to OneNote button)
  • Export Notes as HTML and Import Them Into OneNote
  • Import Notes via the OneNote Printer

You can read a great HowTo on howtogeek.com

Btw. Microsoft released also OneNote for iPhone

Powershell: Search for String or grep for Powershell

Powershell Header

This shows you how you can search in files for a specific content with Windows Powershell. This “replaces” the Windows command-line utility “findstr”. In the Unix/Linux world you mostly use the command grep for doing the same.

grep syntax

grep (options) files.txt

grep example

grep "text I search" *.log

In Windows Powershell we can use the Select-String to search strings in files

Select-String -Path C:\temp\*.log -Pattern "Contoso"

If you need some more options, for example you need also check subfolders (-Recurse) or you need additional filter for files you wanna check, you can use the Get-Childitem first.

Get-ChildItem C:\temp -Filter *.log -Recurse | Select-String "Contoso" 

If you have to copy all the files with a specific content, you can simply add a Copy-Item cmdlet.

Get-ChildItem C:\temp -Filter *.log -Recurse | Select-String "Contoso" | Copy-Item -Destination C:\temp2

More Information about Select-String:

Continue reading

local.ch App for Windows Phone 7

local.ch Windows Phone 7

Local.ch announced, at the Steve Ballmer Event in Switzerland, the release of the new local.ch App for Windows Phone 7, And now you can start downloading it in the Windows Phone 7 Marketplace.