Having to synchronize some data among a Debian linux cluster, i settled on using csync2 for the job.
Here’s a short guide to set it up.
Read the rest of this entry »
I was given the task to rewrite the login script for a company, they had 4 sites and about 20 login scripts for various purposes.
So I wrote a general one which took care of all the general stuff.
You may look at my earlier post about an inventory script, because this script will use that one.
You may get this message when you open up Exchange Management Console (EMC) for Exchange 2010.
"Connecting to remote server failed with the following error message : The WinRM client received an HTTP server error status (500), but the remote service did not Include any other information about the cause of the failure. It was running command 'Discover-ExchangeServer -UseWIA $true ..."
And you may also not be able to connect to your Exchange server from Exchange Management Shell together with the following error message:
"VERBOSE: Connecting to servername.domainname.local New-PSSession : [servername.domainname.local ] Connecting to remote server failed with the following error message : The WinRM client received an HTTP server error status (500), but the remote service did not include any other information about the cause of the failure."
(the same shows up 3 times)
Read the rest of this entry »
As far as I know, after some googling I couldn’t find any program that could take backups of Virtual Machines running on Hyper-V Core when the .VHD files were located on a Cluster Shared Storage.
If you read my previous post you can probably understand you aren’t able to install any advanced programs in the Core-version either because many required runtime files and libraries aren’t available.
Therefore I decided to write a PowerShell script that would export the machines to a network storage server.
Updated 2010-05-12 14:40 UTC +1 (Various fixes/Added option to exclude some virtual machines)
Read the rest of this entry »
Microsoft Windows Hyper-V Server 2008 R2 is a free version much like Windows Server 2008 R2 Core, except it comes with the Hyper-V role preconfigured.
The only thing you will have to take in consideration before installing such a server is that Hyper-V Server 2008 R2 only comes with a PowerShell/CMD-prompt. So to configure such a server you should learn some Windows commands and PowerShell cmdlets.
I was recently asked to inventory approx 200 client computers of what programs they had installed, the specifications (cpu/ram/hdd) etc. So I was being lazy as most IT-techs are and wrote a script that I later on implemented into their usual login script.
It creates a simple .txt-file on a pre-mapped network drive and appends new batch runs into the same file.
After a successfull inventory run, the script creates a empty file (flag.txt) in the global var %appdata% where the current logged in user allways has write access. And the next time the script runs, it will check if the file flag.txt exists and exit if it does.
As I wrote, this script can be used together with a login script.
start \\servername\full_unc_path\inventory.bat
So in my desperate need to make some application shortcut look pretty in linux, i needed to extract the icon from a windows exe.
The icoutils package provides some very nice tools, one of them being wrestool which i used.
Read the rest of this entry »
So i was troubled with how to open and display a psd file with PHP’s imagick component.
I came to the following result, apparently imagick imports all the layers, and by using the image iterator, you can go through them.
The iterator index 0 is the whole image merged together.
By using this simple code, notice the setIteratorIndex(), i succesfully displayed a few multilayered psd files.
<?php // ********************* // * Developed by: * // * Gofolo Consulting * // * www.gofolo.com * // ********************* $im = new Imagick('Visitkort_Ver1.psd'); $im->setIteratorIndex(0); $im->setImageFormat('png'); header("Content-Type: image/png"); echo $im; ?>
So I work with many servers and many customers. Usually I had to write a new backup script for every new customer and server. Therefore I figured I might as well just write a template that I can copy/paste everytime I have to implement a robocopy backup script. So here goes.
I’ve already mentioned I work with many customers and servers. Everytime I install a new server that hosts printers I have to handwrite a loginscript that connects/maps the printers on the clients. So I made a template for that as well. There is only a few variables needed to change for it to rock. Check it out.
Meta