Windows PowerShell is a great tool and, if you are using it frequently, one of the things you might want to do is to customize the default command prompt. This is actually a quite common activity among Linux users; hence, there are many tutorials on doing that as well. In case you want to do this kind of customization to Windows PowerShell, please follow the guidance below.
Changing the prompt
The text displayed as the prompt for each line in the PowerShell is defined with Prompt() function. You are free to override this function (hence, change the command prompt) the same way you can override any other function – by defining the function in the default user profile script. The profile scripts can be defined at one of the following locations: Continue reading
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:
- Do not use any 3rd party tools (e.g. command line executable of 7-Zip).
- Everything needs to be within a single file (no external VBS or PowerShell scripts).
- Folder, which will be compressed, contains few levels of sub-folders.
- 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
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
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:
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: