Creating and applying a patch with diff and patch


this post describes to save and apply changes to an source file.
More »

Advertisment to support

Openssl: Setup an intermediate CA


first ramp up your root CA as described in my previous post.
Steps to create a intermediate CA. Create the intermediate CA structure in filesystem
More »

Windows: Create a Windows PE boot medium


I will describe here how to create a Windows PE based boot media, a USB Stick or a boot CD, with some customization:
Language settings

  • Language settings
  • Keyboard settings
  • Additional drivers
  • Autostart a program
  • Add Powershell
  • Add .NET Environment
  • Add WMI Support

More »

VMware ESXi: Error while cloning a Disk to 2gbsparse format


since ESXi 5.1 it is no more possible to create or clone a disk by using the 2gbsparse disk format. Because it is not supported as a VMFS vitual disk format. This disk format is only part of the Desktop Products of VMware, like VMware Workstation or VMware Player.

However in earlier version the command line tool vmkfstools could create disks and clone disks in such format. If you try this in ESXi 5.1 or later version a

~ # vmkfstools -i Disk.vmdk clone.vmdk -d 2gbsparse
“The system cannot find the file specified.”

error occurs.
More »

Powershell: Some basic XML handling with Powershell and .NET

Hi everybody,

here are some fundamentals to handle XML Files with powershell.

The following commands uses these XML File

<config description="Config file for testing">
    <system description="Document Management">
        <document authorFirstName="Kirk" authorSurname="Author1" date="20130503 01:15:43" description="Document Hammet" index="3">C:\temp\doc0001.txt</document>
        <document authorFirstName="Lars" authorSurname="Author5" date="20130503 10:05:42" description="Document Ulrich" index="4">C:\temp\doc0002.txt</document>
        <document authorFirstName="Cliff" authorSurname="Author5" date="20130612 11:54:33" description="Document Burton"  index="6">C:\temp\doc0051.txt</document>
        <document authorFirstName="Jason" authorSurname="Author2" date="20130806 04:02:41" description="Document Newsted"  index="1">C:\temp\doc0041.txt</document>
        <document authorFirstName="Robert" authorSurname="Smith" date="20131202 07:12:03" description="Document Trujillo"  index="2">C:\temp\doc0012.txt</document>
        <document authorFirstName="James" authorSurname="Smith" date="20130211 09:05:59" description="Document Hetfield"  index="5">C:\temp\doc0003.txt</document>

Creating  a XML File, create a document root, create subelements, add and set attributes, save the file

# Create a new XML File with config root node
[System.XML.XMLDocument]$oXMLDocument=New-Object System.XML.XMLDocument
# New Node
# Append as child to an existing node
# Add a Attribute
$oXMLRoot.SetAttribute("description","Config file for testing")
$oXMLSystem.SetAttribute("description","Document Management")
# Save File

Loading an existing XML File, read an element, do some XPATH queries

More »

Original Theme by Schiy · Powered by WordPress