Archive for the ‘Programming’ Category

Dynamic and interactive filtering in Powershell

Filtering in Powershell are one of the most expressions i’m use for drill down get-cmdlet results. There are so much situations we would like to have some simple and clear technique to see the results in different views.   As an Example I will use get-process with three views:   SlowMotion (More about here.)  Startet Services  Stopped [...]

Crud for Turbogears with MyGeneration

Why Some years ago i was doing Webdevelopment with ASP Classic from Microsoft. For creating my Crud’s i was choosing MyGeneration at this time. I got experience with MyGeneration and was very happy how fast i got up Editable Tables. But for now, im playing with Turbogears at it makes alot of fun. Some Months [...]

SHA1 Hash from a String

There is not that much to say. Attached is a Script that generates a SHA1 Hash from a String. Why for me? We have several Servers they are storing files in a specified format on different folders. I should write a Powershell Script who grab the content of each file and save the replace string back. For [...]

Exchange Format File has the wrong Signature

One week ago we deployed the Powershell Execution Policy AllSigned on our Servers.When i opened the Exchange Management Shell after that, the following red banner says “Hello” to me in Powershell. There were errors in loading the format data file:Microsoft.Exchange.Management.PowerShell.Admin, D:\Program Files\Microsoft Exchange\bin\Exchange.format.ps1xml : File skipped because of validation exception: “File D:\Program Files\Microsoft Exchange\bin\Exchange.format.ps1xml cannot be loaded. The [...]

Store Configurations in Powershell

Some Scripts need to store configuration values in Ini- or XML-Files. What is the best way to do that? Ini-Files Using Ini-Files in Powershell is a challenge. Microsoft Currently has no real Access Solution for Ini-Files. The Community give us some ways to use a workaround. Two other Methods are: Method 1: Google Groups Thread [...]

Quick Powershell Bundle for Intype

My Daily Work give me allot cases witch i can do with Powershell Scripts. So far i don’t know any Script-Editor who support highlighting for Powershell Syntax. It is possible that Intype become for me the next regular editor. I hope this bundle gives advantage to more script developers like me, but don’t expected to [...]

Diskusage in Powershell

Here is a small Snippet who shows you the Size of all Diskdrives in Powershell. It works also in remotly. function global:DiskUsage {     param([string]$servername = "localhost")       $pingresult=(Get-WmiObject -Class Win32_PingStatus -Filter "Address=’$servername’" -ComputerName . | select Statuscode)     if($pingresult.Statuscode -ne $null -and $pingresult.Statuscode -eq 0)     {         get-wmiobject Win32_LogicalDisk -computername $servername -filter [...]

Wiederherstellung von Dateien auf CD/DVD/HD

  Es gibt immer wieder Situationen die es erfordern Dateien auf brutalste Weise wieder verfügbar zu machen. Manchmal hilft es schon die CD von Schmutzresten zu befreien in dem man Sie im Geschirrspüler wascht. Es kann aber auch diese Gratis-Software [1] helfen leichen wiederherzustellen. [1] CD/DVD recovery software – Zip Recovery Toolbox – freeware Bookmark It

Installations vorgang auf dem System kontrollieren

Es kommt immer mal vor das nach einer Installation die Änderungen die im System vorgenommen wurden kontrollieren möchten. Zum Beispiel könnten folgende Informationen interessant sein: Dateien die ins System kopiert werden Registry einträge Das Programm inctrl5 [1] übernimmt diese Aufgabe hervoragend. [1] Download inctrl5 bei PcMag Bookmark It

Editplus in einer neuen Version

Seit mittlerweile knapp einem halben Monat, genau genommen seit dem 14. November 2006, ist Editplus [1] 2.30 verfügbar. Interessant sind folgende neuen Funktionen: Code Folding ‘Find in Directory’ Command ‘Trim trailing spaces on save’ Option Alle Bugfixes Weitere Details können auf der Whats new [2] Seite entnommen werden. Seit geraumer Zeit (ungefähr 5 Jahre) bin [...]