Creating ZIP archive from a Batch script

A challenge

While writing a data collection script, I had a requirement to compress some files into a single archive. At first, it did not sound too challenging (Windows has integrated ZIP supported via Send To Compressed (zipped) folder since Windows XP), but it seems it is not so easy if you throw few extra requirements for this task:

  1. Do not use any 3rd party tools (e.g. command line executable of 7-Zip).
  2. Everything needs to be within a single file (no external VBS or PowerShell scripts).
  3. Folder, which will be compressed, contains few levels of sub-folders.
  4. Directory structure must be preserved during compression.

After reading some Microsoft documentation, many online forums and trying many differing things, I finally came up with the solution. Continue reading

Setting up IPv6 in my home network

As soon as Microsoft released Windows Server 2012 R2 images on MSDN, I decided it is time for me to upgrade my home environment. I will probably dedicate a separate post on my home infrastructure, while leaving this post for one of the decisions I made for my environment – using IPv6.

Setting static IPv6 addresses

Currently, I have 6 Windows Server machines in my environment, so the first thing I needed to do was setting static IPv6 addresses on them, starting with my domain controller/DNS server.

To make things easier for me, I used this online tool to generate a unique local address range prefix, which I am going to use in my environment. For the sake of example, let’s say the prefix that was generated for me was fdd1:b9ea:da43:964e::/64. Having it, I set IP addresses on my servers as following: Continue reading

Installing Samba 4 domain controller on Raspberry Pi running Archlinux ARM

Let’s try it

On December 11, 2012, Samba 4 was released, bringing few very interesting features, Active Directory Compatible Server being one of them. What that means is that you can set up Active Directory, supporting Group Policies, Roaming Profiles, replication and other ADDS features without having to use Windows Server.

Finally finding some extra time, I decided to give it a try on my Raspberry Pi which was just lying unused. “The reason to have a domain controller at home, on Raspberry Pi?” you ask? Well, mainly it is “just because I can”.

If you would like to try this as well, here goes a little guide I came up to make the things easier for you.

Installing Archlinux ARM on Raspberry Pi

Installing Archlinux ARM does not really differs from installation of any other Linux distribution on Raspberry Pi, so if you done this before, you can skip this part of the guide. If you did not, here is how to do that:

Continue reading

Getting Windows Phone 7.8 update on Nokia Lumia phones

The newest update

A few hours ago today, Microsoft started rolling out Windows Phone 7.8 update for Nokia Lumia devices: 510, 610, 710, 800 and 900. The update provides the following features:

  • Customizable sizes of the tiles
  • Updated splash screen, displaying the new Windows Phone 8 logo
  • Updated icons for some built-in Hubs (Games, Office, Store)
  • 20 accent colors (that is double than before)
  • Dynamic Bing wallpaper and lock screen notifications

Anyhow, Microsoft is releasing Windows Phone updates depending on the carrier and the country. That means, Zune might still show that your phone is up-to-date (“Your phone is up to date“), even some users are already reporting they are getting updates.

Forcing the update

The trick below is not new, as it is not some very big secret either. Just follow the steps below to force the update for your phone:

Continue reading

Skype 6.1 integration with Outlook doesn’t work

Yesterday (January 10th), Microsoft released new version of Skype – 6.1.32.129. The main feature of this new version is integration with Outlook. That allows you to reach your Skype contacts directly from Outlook, in the same way as you could with Communicator/Lync before. You can see screenshot of this feature in the image above the post.

That was one of the Skype features I was really looking forward, so I got disappointed when I saw it is not working after the update. Also, after doing some searching, I found that I am not the only one having this issue – many people are reporting the same issue on Skype support forums. I though it would be cool to find the cause of this.
Continue reading