select A.Name0,c.IPAddress0 as "IP ADDRESS",E.UserName0 as "Lastlogged user"
from v_R_System A inner join
v_FullCollectionMembership B on
A.ResourceID=B.ResourceID
Inner join v_GS_NETWORK_ADAPTER_CONFIGUR C ON
A.ResourceID=C.ResourceID
Inner join v_GS_COMPUTER_SYSTEM E ON A.ResourceID=E.ResourceID
where CollectionID=@COLLID and C.IPEnabled0=’1′ and c.ipaddress0 !=’0.0.0.0′
group by A.Name0,c.IPAddress0 ,E.UserName0
Total Views
Friday, June 21, 2013
Friday, May 3, 2013
Raspberry Pi - First Steps
After I started my first projects on my Pi I have decided to post a quick tutorial on how to set up initially your device.
Windows
Step Two: Hook Up Your Raspberry Pi
Connecting everything to your Raspberry Pi is pretty easy. Start by connecting the HDMI cable from the unit to your television (or monitor). If you're using the analog composite video connection instead, connect it to your television (or monitor) and plug in a set of speakers to the 3.5mm audio jack. If you want your Raspberry Pi to connect to your network and/or the internet, use an Ethernet cable to connect it to your router. If you've set up a computer before, this should all seem familiar.
Step Three: Configure Your Raspberry Pi
Once your Raspberry Pi boots for the first time you'll need to configure a few things. You'll know it's ready for you when you see a Raspi-config window with a pretty big list of settings. You can mess with the others if you feel so inclined, but the only thing you really need to do is expand the file system so you can use up all the space on your SD card. To do so, follow these steps:
Step One: Prepare Your SD Card
First
things first, we need to prepare your SD card for the Raspberry Pi. This
involves formatting it properly and putting Raspbian, the standard
Raspberry Pi operating system, on it. The steps vary depending on
whether or not you're on a Mac, Linux, or Windows PC, so just follow the
instructions for your operating system below.
Windows
- Download the lastest version of Raspbian and unzip the .img file inside. (It's almost 500MB so it may take a little while to download.)
- Download Win32DiskImager and unzip the application (.exe file) inside.
- Insert your SD card into your Windows PC using a card reader.
- Open Win32DiskImager.exe, the application you just downloaded, by double-clicking on it. If you're running Windows 7 or 8, right click on it and choose "Run as Administrator" instead.
- If your SD card isn't automatically detected by the application, click on the drop-down menu at the top right (labeled "Device") and choose it from the list.
- In the image file section of the application, click the little folder icon and choose the Raspbian .img file you just downloaded.
- Click the Write button and wait for Win32DiskImager to do its thing. When it finishes, you can safely eject your SD card and insert it into your Raspberry Pi.
OS X
- Download the lastest version of Raspbian and unzip the .img file inside. (It's almost 500MB so it may take a little while to download.)
- Download RPi-sd card builder (be sure to pick the appropriate version for your installed version of OS X) and unzip the application.
- Insert your SD card into your Mac using a card reader.
- Open RPi-sd card builder. You'll immediately be asked to choose a Raspbian image. Choose the .img file you downloaded earlier.
- You'll be asked if your SD card is connected. Since we inserted it earlier, it is, so go ahead and click Continue. You'll be presented with SD card options. If you only have one inserted, you won't see anything else in the list and it'll be checked. If not, just check only the card you want to use and click OK.
- Enter your administrator password and click OK.
- You'll be asked if the SD card was ejected. This is supposed to happen, as the application needs to unmount it so it can perform a direct copy. Double-check that your SD card is no longer available in the Finder. DO NOT remove it from your USB port. When you're sure, click Continue.
- RPi-sd card builder finishes prepping your SD card, safely eject it and insert it into your Raspberry Pi unit.
RPi-sd card
builder isn't an app so much as it's an Automator action that acts like
one. Some people have reported issues using it, so if you run into
problems just open up the Terminal app (Your Hard Drive → Applications →
Utilities → Terminal) and follow the instructions for Linux.
Linux
- Download the lastest version of Raspbian and unzip the .img file inside. (It's almost 500MB so it may take a little while to download.)
- Open up your Linux terminal emulator of choice.
- Insert your SD card. If it mounts automatically, unmount it but make note of its location (e.g. /dev/disk2s1). Even though the card is unmounted, do not remove it from the reader
- In
the command line, you're going to need to type a single line to copy
the contents of the Raspbian .img file to your SD card. It'll look like
this:
sudo dd if=PATH_TO_IMG_FILE of=PATH_TO_SD_CARD_MOUNT_POINT bs=1m
You'll need to replace PATH_TO_IMG_FILE with the path to the .img file and PATH_TO_SD_CARD_MOUNT_POINT with the path to the SD card mount point. (The bs=1m just specifies the byte size and you don't need to mess with it.) When you're done, the command should look something like this:
sudo dd if=/Users/adachis/Downloads/2012-12-16-wheezy-raspbian.img of=/dev/disk2s1 bs=1m
It's very important that you do not get this information wrong or you could end up writing Raspbian to the wrong disk and cause serious data loss. Be careful! When you're sure you've got everything right, press enter. - You will be prompted for the root password (or your administrator password for those of you on OS X who are using this method). Type it and press enter.
- It'll take some time for the dd command to copy everything over to your SD card. While that happens, it'll probably look like the Terminal froze up. Don't worry, it's still working and will likely take longer than an average 2GB copy to an SD card (so be patient). When it finishes, the command prompt will return and your SD card will be ready. Eject it safely and stick it in your Raspberry Pi.
Step Two: Hook Up Your Raspberry Pi
Connecting everything to your Raspberry Pi is pretty easy. Start by connecting the HDMI cable from the unit to your television (or monitor). If you're using the analog composite video connection instead, connect it to your television (or monitor) and plug in a set of speakers to the 3.5mm audio jack. If you want your Raspberry Pi to connect to your network and/or the internet, use an Ethernet cable to connect it to your router. If you've set up a computer before, this should all seem familiar.
Finally,
you need to connect your Raspberry Pi with a micro USB power adapter. As
mentioned earlier, you need an adapter that can provide at least 700mA
at 5V. Fortunately, you probably already have one. Many smartphone and
tablet chargers utilize micro USB and provide 700mA at 5V (or more). You
can find out by reading the small text on the plug and looking for the output
section. (Note: it may say 0.7A (or higher) instead of 700mA.) When you
have a compatible power adapter on hand, connect it to a micro USB
cable and then connect that cable to the micro USB port on your
Raspberry Pi unit. It'll turn on all by itself and you should see it
boot for the first time.
Step Three: Configure Your Raspberry Pi
Once your Raspberry Pi boots for the first time you'll need to configure a few things. You'll know it's ready for you when you see a Raspi-config window with a pretty big list of settings. You can mess with the others if you feel so inclined, but the only thing you really need to do is expand the file system so you can use up all the space on your SD card. To do so, follow these steps:
- Select expand_rootfs (the second option) and press enter.
- Confirm that you want to expand the file system and let Raspbian do its thing.
- When you're returned to the configuration list, go all the way to the bottom and select the Finish option.
- It'll ask you if you want to reboot. Choose yes.
Your
Raspberry Pi will reboot and take a little longer this time because it
needs to expand the file system. After a about a minute you'll be asked
to log in. You'll need to use the default username and password:
Username: pi
Password: raspberry
Password: raspberry
Once you've logged in, you've got yourself a working Raspberry Pi. Congratulations!
The New Toy - Raspberry Pi rev.B
I just received my new toy and can't wait to start playing with it :)
It is Raspberry Pi Model B with very interesting wooden case (both purchased from Amazon)
It is already up and running and I am starting my work on it :)
Will keep you posted on my progress with different projects.
Cheers,
Petar
It is Raspberry Pi Model B with very interesting wooden case (both purchased from Amazon)
It is already up and running and I am starting my work on it :)
Will keep you posted on my progress with different projects.
Cheers,
Petar
Wednesday, October 10, 2012
WSUS: How to change the location where WSUS stores updates
You accomplish this move with the movecontent command of
WSUSutil.exe, a command-line tool that is copied to the file system of
the WSUS server during WSUS Setup. By default, Setup copies WSUSutil.exe
to the following location:
WSUSInstallationDrive:\Program Files\Microsoft Windows Server Update Services\Tools
You must be a member of the local Administrators group on the WSUS server to use the movecontent command of WSUSutil.exe, and these operations can only be run from the WSUS server itself which must be a 32-bit platform. You must also create the new path for local WSUS update storage prior to using WSUSutil.exe.
The movecontent command takes an optional -skipcopy parameter which enables you to change the location of local WSUS update storage without copying any files. To change the location of local WSUS update storage complete the following steps:
1. Click Start, and then click Run.
2. In the Open box, type cmd, and then click OK.
3. At the command prompt, navigate to the directory that contains WSUSutil.exe.
4. Type the following, and then press ENTER:
wsusutil.exe movecontent contentpath logfile [-skipcopy]
For example, if D:\WSUS1 is the new path for local WSUS update storage, D:\move.log is the path to the log file, and you wanted to copy the old files to the new location, you would type:
wsusutil.exe movecontent D:\WSUS1\ D:\move.log
WSUSInstallationDrive:\Program Files\Microsoft Windows Server Update Services\Tools
You must be a member of the local Administrators group on the WSUS server to use the movecontent command of WSUSutil.exe, and these operations can only be run from the WSUS server itself which must be a 32-bit platform. You must also create the new path for local WSUS update storage prior to using WSUSutil.exe.
The movecontent command takes an optional -skipcopy parameter which enables you to change the location of local WSUS update storage without copying any files. To change the location of local WSUS update storage complete the following steps:
1. Click Start, and then click Run.
2. In the Open box, type cmd, and then click OK.
3. At the command prompt, navigate to the directory that contains WSUSutil.exe.
4. Type the following, and then press ENTER:
wsusutil.exe movecontent contentpath logfile [-skipcopy]
For example, if D:\WSUS1 is the new path for local WSUS update storage, D:\move.log is the path to the log file, and you wanted to copy the old files to the new location, you would type:
wsusutil.exe movecontent D:\WSUS1\ D:\move.log
Tuesday, October 9, 2012
SCCM - Collection Query (Computers with VS 2008 Installed)
select SMS_R_SYSTEM.ResourceID,SMS_R_SYSTEM.ResourceType,SMS_R_SYSTEM.Name,SMS_R_SYSTEM.SMSUniqueIdentifier,SMS_R_SYSTEM.ResourceDomainORWorkgroup,SMS_R_SYSTEM.Client from SMS_R_System inner join SMS_G_System_COMPUTER_SYSTEM on SMS_G_System_COMPUTER_SYSTEM.ResourceID = SMS_R_System.ResourceId where SMS_G_System_COMPUTER_SYSTEM.Name in (select distinct SMS_G_System_COMPUTER_SYSTEM.Name from SMS_R_System inner join SMS_G_System_COMPUTER_SYSTEM on SMS_G_System_COMPUTER_SYSTEM.ResourceID = SMS_R_System.ResourceId inner join SMS_G_System_ADD_REMOVE_PROGRAMS on SMS_G_System_ADD_REMOVE_PROGRAMS.ResourceID = SMS_R_System.ResourceId where SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName like "%Visual Studio 2008%")
SCCM - Device Collection Query (Domain OU Membership)
select
SMS_R_SYSTEM.ResourceID,
SMS_R_SYSTEM.ResourceType,
SMS_R_SYSTEM.Name,
SMS_R_SYSTEM.SMSUniqueIdentifier,
SMS_R_SYSTEM.ResourceDomainORWorkgroup,
SMS_R_SYSTEM.Client from SMS_R_System where SMS_R_System.SystemOUName = "DOMAIN/OU"
SMS_R_SYSTEM.ResourceID,
SMS_R_SYSTEM.ResourceType,
SMS_R_SYSTEM.Name,
SMS_R_SYSTEM.SMSUniqueIdentifier,
SMS_R_SYSTEM.ResourceDomainORWorkgroup,
SMS_R_SYSTEM.Client from SMS_R_System where SMS_R_System.SystemOUName = "DOMAIN/OU"
Saturday, September 29, 2012
SCCM - SQL query (Find last logon user details of computers)
Select distinct
v_R_System.Netbios_Name0 AS "Computer Name",
v_GS_SYSTEM_CONSOLE_USER.SystemConsoleUser0 AS "Console User",
v_GS_SYSTEM_CONSOLE_USER.NumberOfConsoleLogons0 AS "Console Logons",
v_GS_SYSTEM_CONSOLE_USER.TotalUserConsoleMinutes0 AS "Total Minutes on Console",
v_GS_SYSTEM_CONSOLE_USER.LastConsoleUse0 AS "Last Console Use"
from v_R_System INNER JOIN
(SELECT
ResourceID,
SystemConsoleUser0,
NumberOfConsoleLogons0,
TotalUserConsoleMinutes0,
LastConsoleUse0,
ROW_NUMBER() OVER(PARTITION BY ResourceID ORDER BY LastConsoleUse0 DESC) AS Point
FROM
v_GS_SYSTEM_CONSOLE_USER) v_GS_SYSTEM_CONSOLE_USER
ON v_GS_SYSTEM_CONSOLE_USER.ResourceID = v_R_System.ResourceID
AND v_GS_SYSTEM_CONSOLE_USER.Point = 1
Order by v_R_System.Netbios_Name0
Description: This will get you the top console user info who logged in to the machines most recently.
v_R_System.Netbios_Name0 AS "Computer Name",
v_GS_SYSTEM_CONSOLE_USER.SystemConsoleUser0 AS "Console User",
v_GS_SYSTEM_CONSOLE_USER.NumberOfConsoleLogons0 AS "Console Logons",
v_GS_SYSTEM_CONSOLE_USER.TotalUserConsoleMinutes0 AS "Total Minutes on Console",
v_GS_SYSTEM_CONSOLE_USER.LastConsoleUse0 AS "Last Console Use"
from v_R_System INNER JOIN
(SELECT
ResourceID,
SystemConsoleUser0,
NumberOfConsoleLogons0,
TotalUserConsoleMinutes0,
LastConsoleUse0,
ROW_NUMBER() OVER(PARTITION BY ResourceID ORDER BY LastConsoleUse0 DESC) AS Point
FROM
v_GS_SYSTEM_CONSOLE_USER) v_GS_SYSTEM_CONSOLE_USER
ON v_GS_SYSTEM_CONSOLE_USER.ResourceID = v_R_System.ResourceID
AND v_GS_SYSTEM_CONSOLE_USER.Point = 1
Order by v_R_System.Netbios_Name0
Description: This will get you the top console user info who logged in to the machines most recently.
Thursday, September 27, 2012
SCCM - Approve Clients Script
You can find the archive here.
Step 1.
Create the following collection and criteria on your Top SCCM Server and name it per your naming standards
My Collection and Query are both named "All Unapproved Systems".
You will need to Replace YOURDOMAIN with your domain name..
select SMS_R_SYSTEM.ResourceID,SMS_R_SYSTEM.ResourceType,SMS_R_SYSTEM.Name,SMS_R_SYSTEM.SMSUniqueIdentifier,SMS_R_SYSTEM.ResourceDomainORWorkgroup,SMS_R_SYSTEM.Client from SMS_R_System inner join SMS_CM_RES_COLL_SMS00001 on SMS_CM_RES_COLL_SMS00001.ResourceId = SMS_R_System.ResourceId where SMS_CM_RES_COLL_SMS00001.IsApproved= '0' and SMS_R_SYSTEM.ResourceDomainORWorkgroup = 'YOURDOMAIN'
Step 2.
Download the script, modify a few lines of code.
Line 85 = Add your Top SCCM Site Server here.
Line 86 = Add your Top SCCM Site Code here.
SCCM 2012 - SQL query (Find Computer by Serial Number)
SELECT dbo.v_R_System.Name0, dbo.v_GS_COMPUTER_SYSTEM.UserName0, dbo.v_GS_PC_BIOS.SerialNumber0,
dbo.v_GS_COMPUTER_SYSTEM.Manufacturer0, dbo.v_GS_COMPUTER_SYSTEM.Model0
FROM dbo.v_R_System INNER JOIN
dbo.v_GS_COMPUTER_SYSTEM ON dbo.v_R_System.ResourceID = dbo.v_GS_COMPUTER_SYSTEM.ResourceID INNER JOIN
dbo.v_GS_PC_BIOS ON dbo.v_R_System.ResourceID = dbo.v_GS_PC_BIOS.ResourceID
WHERE SerialNumber0 LIKE @SerialNumber
dbo.v_GS_COMPUTER_SYSTEM.Manufacturer0, dbo.v_GS_COMPUTER_SYSTEM.Model0
FROM dbo.v_R_System INNER JOIN
dbo.v_GS_COMPUTER_SYSTEM ON dbo.v_R_System.ResourceID = dbo.v_GS_COMPUTER_SYSTEM.ResourceID INNER JOIN
dbo.v_GS_PC_BIOS ON dbo.v_R_System.ResourceID = dbo.v_GS_PC_BIOS.ResourceID
WHERE SerialNumber0 LIKE @SerialNumber
Wednesday, September 26, 2012
SCCM 2012 - Report Builder 2.0 is not installed ...
If you are using SQL 2008 R2 with ConfigMgr 2012, you`ll probably
receive this error "Report Builder 2.0 is not installed as a click-once
application on report server"
ConfigMgr 2012 is designed to work out of the box with Report Builder 2.0
You’ll need to set a registry key to name the RB 3.0 application manifest. The key in question is “HKLM\Software\Wow6432Node\Microsoft\ConfigMgr10\AdminUI\Reporting\ReportBuilderApplicationManifestName”. Change its value from “ReportBuilder_2_0_0_0.application” to “ReportBuilder_3_0_0_0.application” on any machine from which you want to launch RB 3.0.
Then start the Configuration Manager Administrator console as administrator and it works.
ConfigMgr 2012 is designed to work out of the box with Report Builder 2.0
You’ll need to set a registry key to name the RB 3.0 application manifest. The key in question is “HKLM\Software\Wow6432Node\Microsoft\ConfigMgr10\AdminUI\Reporting\ReportBuilderApplicationManifestName”. Change its value from “ReportBuilder_2_0_0_0.application” to “ReportBuilder_3_0_0_0.application” on any machine from which you want to launch RB 3.0.
Then start the Configuration Manager Administrator console as administrator and it works.
Friday, September 2, 2011
Windows Sysprep
Every time I need to set up a bunch of virtual machines, I have to go back and look up where to find the Sysprep tool and how to use it. Here are the details so I can find it in the future…
In case you haven’t encountered Sysprep before, it is a tool that allows you to create a base OS image (including Windows, Office, Visual Studio, or whatever other applications you want) and then re-package it. You can then create cloned disks (or just copy the whole thing) and when you boot the new disk, it is like booting Windows for the first time, except with all your software installed. You get to choose a new computer name, SIDs are regenerated, etc.
Each version of Windows requires the correct version of Sysprep. Where do you find the correct version of Sysprep? On your install disks in <DVD>:\Support\Tools\Deploy.cab. Although System Preparation tool for Windows Server 2003 Service Pack 2 Deployment claims to install the Sysprep tool, I’ve never been able to make it work on my system. So don’t bother wasting your time. Go to your original install media and grab the file from there.
In case you haven’t encountered Sysprep before, it is a tool that allows you to create a base OS image (including Windows, Office, Visual Studio, or whatever other applications you want) and then re-package it. You can then create cloned disks (or just copy the whole thing) and when you boot the new disk, it is like booting Windows for the first time, except with all your software installed. You get to choose a new computer name, SIDs are regenerated, etc.
Each version of Windows requires the correct version of Sysprep. Where do you find the correct version of Sysprep? On your install disks in <DVD>:\Support\Tools\Deploy.cab. Although System Preparation tool for Windows Server 2003 Service Pack 2 Deployment claims to install the Sysprep tool, I’ve never been able to make it work on my system. So don’t bother wasting your time. Go to your original install media and grab the file from there.
Creating the Sysprep Image
- Open <DVD>:\Support\Tools\Deploy.cab and extract setupcl.exe, setupmgr.exe, and sysprep.exe to C:\Sysprep. (N.B. C: is your system drive. If you installed Windows to another drive letter, use that drive letter rather than C:.)
- Run setupmgr.exe from C:\Sysprep.
- The Setup Manager wizard starts. Click Next…
- Create new… Next…
- Select “Sysprep setup”. Next…
- Select the correct OS version… Next…
- Select “No, do not fully automate the installation”… Next…
- Enter Name and Organization, Time Zone, Product Key, and Workgroup or Domain. The other settings can remain defaulted. Note that you don’t want to specify the computer name since you will be creating multiple computers from the base image and you don’t want to specify the admin password, even encrypted. If the sysprep program can extract the password from the answer file, so can any hacker worth their salt. Click Next… through to the end.
- Finish… Save to C:\Sysprep\sysprep.inf. OK…
- Wait while Setup Manager finishes. Cancel… (Yes, odd way to exit a program that has completed successfully.)
- Run sysprep.exe.
- Click OK.
- Ensure that “Don’t regenerate security identifiers” is UNCHECKED. You want to regenerate the SIDs when each new clone boots.
- Click Reseal, OK to confirm that you want to regenerate SIDs, and wait for the system to shut down.
Creating a Cloned Server
- If you’re using VMWare Workstation, create a linked clone of your Sysprepped server. (You can also create a new linked disk using VirtualPC using File… Virtual Disk Wizard and then creating a new VM using the linked disk.)
- Change any VM settings such as memory. DO NOT change number of processors from 1 to 2 as the HAL (hardware abstraction layer) for uni-processor vs. multi-processor Windows is different. Your system will blue screen if you do this.
- Boot the cloned server.
- The Windows Setup wizard will appear. Next…
- Accept the license agreement. Next…
- Enter a new computer name and administrator password. Next…
- Windows will boot and you can log in with the administrator password you just entered.
- When prompted, click “Yes” to update your product activation.
- Select “Yes, let’s activate Windows over the Internet now”. Next…
- Select “No, I don’t want to register now; let’s just activate Windows”. Next…
- OK…
- Update this server… to go to Microsoft Update.
- Once you’re ensured that your patches are up-to-date, you can close the browser and click Finish… then Yes… on the dialog to start using Windows.
Friday, March 11, 2011
How to fix missing icons in Windows 7
After installing the latest and greatest Mozilla Firefox 3.5 in Windows 7 (RC Build 7100 32-bit) I noticed that after a while the icon went missing. Firefox was still working correctly, and when I checked the icon properties, and the icon was still present. But for some strange reason it wouldn’t show up in on my Desktop, my Start Menu, or my Taskbar, I would just see a broken icon.
The resolution? Rebuilding the Windows 7 Icon Cache.
Follow these directions:
1. Close all folder windows that are currently open.
2. Launch Task Manager using the CTRL+SHIFT+ESC key sequence, or by running taskmgr.exe
3. In the Process tab, right-click on the Explorer.exe process and select End Process
4. Click the End process button when asked for confirmation.
5. From the File menu of Task Manager, select New Task (Run…)
6. Type CMD.EXE, and click OK
7. In the Command Prompt window, type the commands one by one and press ENTER after each command:
Example:
Wednesday, February 23, 2011
Windows 7 or Vista Log On automatically
Type in netplwiz into the start menu search box, hit enter, and you’ll see this screen:
Note: If that doesn’t work, you can type in control userpasswords2 instead.
Uncheck the box that says “Users must enter a user name and password to use this computer”, and then hit Apply. You’ll see a username and password box. Enter in the appropriate information here and hit OK:
Note that these steps work perfectly on XP as well.
Note: If that doesn’t work, you can type in control userpasswords2 instead.
Uncheck the box that says “Users must enter a user name and password to use this computer”, and then hit Apply. You’ll see a username and password box. Enter in the appropriate information here and hit OK:
Note that these steps work perfectly on XP as well.
Tuesday, February 22, 2011
Time machine backup onto network share
Here is how you do it:
REQUIREMENTS
You need to be running Leopard and you’ll need a network share which is larger or equal to your hard drive in your Mac. In my case these shares are in SMB and AFP.
You need to be running Leopard and you’ll need a network share which is larger or equal to your hard drive in your Mac. In my case these shares are in SMB and AFP.
1. Go into Applications / Utilities and open up terminal
2. Copy and paste this command into terminal (all on one line)
2. Copy and paste this command into terminal (all on one line)
defaults write com.apple.systempreferences TMShowUnsupportedNetworkVolumes 1
3. Hit enter / return
4. Mount your network share, in my case my share is off our server called INAS1 and my share is called User-Backups
5. Go to System Preferences and open Time Machine
6. Click on Change Disk
7. Select the share you wish to backup to, I’ve selected User-Backups
6. That’s it, you’re done
4. Mount your network share, in my case my share is off our server called INAS1 and my share is called User-Backups
5. Go to System Preferences and open Time Machine
6. Click on Change Disk
7. Select the share you wish to backup to, I’ve selected User-Backups
6. That’s it, you’re done
Wednesday, February 16, 2011
Create Templates in Hyper-V
Base Virtual Machine
The first thing to do is create a couple or more virtual machines where you run a normal installation of any OS you need. I made myself two different machines, one with Windows 7 and another with Windows Server 2008 R2.I won’t go into details on how you setup a new virtual machine with Hyper-V, you just go through the wizards to create a new machine and you choose which boot device you want to use (physical DVD, ISO file, network share).
When the machine is fully installed and you’re on the desktop, make sure you patch the OS fully. You can additionally install anti virus or other software if needed. Additionally you might want to install the Integration Services, if you are using other OS than Windows 7 and Windows Server 2008.
Both of those comes with Integration Services pre-installed. Avoid everything that you don’t want to have on every new machine.
Step #1: Shut down your machine and make a backup copy of the VHD. This is useful when you in the future want to re-create the base template. Do this copy before you run sysprep.
Step #2: Boot the machine (not the copy you just made) and run sysprep. Sysprep is now included with the latest versions of Windows, you will find it under C:\WINDOWS\SYSTEM32\SYSPREP\SYSPREP.EXE.
Step #3: Configure sysprep to do an OOBE, make sure you check the Generalize button or else it will not create a new SSID. Choose Shutdown in the Shutdown Options.
Step #4: Copy your VHD once again, this time you are making copies of all the new machines you want to create. My advise is to make the finished sysprep image read-only, so you won’t boot and destroy the finished base template.
Creating Virtual Machine From Base Template
Now it’s time to create new virtual machines that will use the sysprepped VHD copies we have made. I created multiple copies of the server that I will use for development and testing. One of them is for Microsoft Office SharePoint Server 2007, one for SharePoint 2010, another for Team Foundation Server 2010 and a bunch of others, even one for Ubuntu Linux.Create a new virtual machine using the wizard as you’ve done before, only that this time you’ll choose to use an existing virtual hard disk.
Start the newly created virtual machine and your new machine will start and ask you a few standard questions like machine name. After a few minutes, you should have a completely new machine that is distinct from the base template, it does not share the same SSID or network MAC address.
Tuesday, January 18, 2011
How to rename your Microsoft Outlook Mail Profile
If you are using MS Outlook (any version), you will notice that there is no way to rename the mail profile from Control Panel (see Figures A and B).


I knew that most of these settings are stored in the registry, so I ran a search for every instance of Profile. I did find where the change was and confirmed my suspicion that this setting can be modified using the registry.
Note: As always, edit the registry at your own risk. Make sure you have a reliable backup of the registry; some erroneous edits could render your system unbootable.
The only way to rename your Mail Profile is through direct editing of the registry.
HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Windows Messaging Subsystem\Profiles\ (Figure C).
2. Now, edit the DefaultProfile key by right-clicking and selecting Modify.
3. Rename the key to how you would like it to appear.
4. Next, right-click the profile you just renamed. It will be located at HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Windows Messaging Subsystem\Profiles\bbird@igius.com.
5. Right-click the profile and click Rename and rename it to the same as above.
6. Close the Registry editor and then re-open the Mail Applet in Control Panel to find that the Mail Profile has been successfully renamed, as shown in Figure D.
Figure A
Figure B
I knew that most of these settings are stored in the registry, so I ran a search for every instance of Profile. I did find where the change was and confirmed my suspicion that this setting can be modified using the registry.
Note: As always, edit the registry at your own risk. Make sure you have a reliable backup of the registry; some erroneous edits could render your system unbootable.
The only way to rename your Mail Profile is through direct editing of the registry.
Figure C
1. Launch Regedit and browse toHKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Windows Messaging Subsystem\Profiles\ (Figure C).
2. Now, edit the DefaultProfile key by right-clicking and selecting Modify.
3. Rename the key to how you would like it to appear.
4. Next, right-click the profile you just renamed. It will be located at HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Windows Messaging Subsystem\Profiles\bbird@igius.com.
5. Right-click the profile and click Rename and rename it to the same as above.
6. Close the Registry editor and then re-open the Mail Applet in Control Panel to find that the Mail Profile has been successfully renamed, as shown in Figure D.
Figure D
Friday, January 14, 2011
Build a Home FTP Server with FileZilla
Upload and download files on your home PC from anywhere by turning it into a personal FTP server. With a home FTP server, you can upload and download files on your home hard drive from the office, your friend's house, or to your laptop while you're on the road using any FTP client. Setting up an FTP server may sound like a complicated undertaking only system administrators can handle, but it's actually quite easy and free with open source software FileZilla. You've already heard of FileZilla's FTP client application, but the FileZilla project also offers a server application for Windows. Today we'll build an FTP server on your Windows PC with FileZilla for easy file transfers from any computer.

Notice you can fine-tune file access rights for each user: grant read-only rights (download only), write rights (to upload files), and whether or not the user can delete files or create directories, too.
If you want to grant several users access to your server all with the same rights and directory access, instead of creating each one individually, set up a user group. For example, if you're sharing your MP3 directory with friends, make a user group called "music fans" with access to the correct directory and add users to that group, which automatically gives them those rights. Then, if you move your music directory you only have to edit the group, not each user in it. To manage user groups, from the Edit menu, choose Groups.
Install the FileZilla FTP Server
The FileZilla server installation is a regular Windows "just press Next" wizard, and for most users, the suggested default settings will work. However, let's take a look at its initial settings anyway, since they'll affect how you work with your server. Here's how to get FileZilla going:- Download the FileZilla server application. Even though the FileZilla FTP client is available for multiple operating systems, the server app is Windows-only.
- Run the server as a Windows Service. First FileZilla will give you the option of how it should start up: as a Windows service or not, automatically or manually. Windows services are processes that run on your PC which you can manage from the Services management pane. There's more on how to manage that below, but at this point, running FileZilla as a Windows service that runs automatically is the default option. If you want your FTP server on by default, choose "Start as service, started automatically (default)" as shown. Otherwise, choose "Start as service, started manually."
In this pane you'll also set the port for the admin interface to use. By default it's 14147, and you're most likely safe leaving it at that. If you do change that port number, make a note of what it is—you'll need it to connect to the server later on.
- Set the server administrative interface to launch automatically (or not). On the final installation dialog, choose whether you want the server admin window to launch automatically when the current Windows user logs on, when any user logs on, or if it should be started manually.
- Run and connect to the server with the admin interface. As the installation wizard completes, set it to start the server admin interface. This is the window where you'll configure your server and monitor its activity. The first time you run the admin interface, it will ask you for the server's address and port. Since the server is running on your PC—the same one the admin interface is running on—its address is
localhost, or127.0.0.1. The default port is 14147 (or whatever you may have changed it to, as noted above), as shown:
If this is the only FTP server you'll be administering (most likely it is), check off the "Always connect to this server" box to bypass this dialog in the future.
Create Server Users
If all's gone well, your server's up and running—but no one can use it yet, since you haven't given anyone permission. To set up a server user, from the Edit menu choose Users. In the Users dialog on the right hand side, hit the Add button to create a new user and assign a password. Then, on the left side, select "Shared Folders" to set what folders that user will have access to on your server. Here I've created a user named gina and granted read access to theC:\data\ directory.Notice you can fine-tune file access rights for each user: grant read-only rights (download only), write rights (to upload files), and whether or not the user can delete files or create directories, too.
If you want to grant several users access to your server all with the same rights and directory access, instead of creating each one individually, set up a user group. For example, if you're sharing your MP3 directory with friends, make a user group called "music fans" with access to the correct directory and add users to that group, which automatically gives them those rights. Then, if you move your music directory you only have to edit the group, not each user in it. To manage user groups, from the Edit menu, choose Groups.
Log into the Server
Now that the server's up and running with users, it's time to log in and try uploading and downloading. Using any FTP client enter the server address, user name and password.- Server address If you're FTP'ing across your home network (like from your upstairs PC to your bedroom PC), you can reach the server by using its internal network address (most likely something like
192.168.xx.xx.) From the command line, typeipconfigto see what that address is. If you want to log into your FTP server over the internet, set up a memorable URL for it and allow connections from outside your network. - User name and password This is one of the users you set up in FileZilla's admin interface, not the server admin user name. If friends, family, and co-workers will be logging into your FTP server, give them each a their specific username and password to log in (along with the server address.)
Starting and Stopping Your Server in Windows Services
Finally, to shut down or restart your FileZilla server running as a Windows service, from Control Panel, Administrative Tools, launch Services. Right-click on the FileZilla FTP Server item on the list to stop it, edit its Properties, or restart it, as shown.How to connect to FTP with a web browser ?
There are a few ways to connect by FTP to a host. The easiest way is using Internet Explorer which has the best ftp support.
In order to connect by FTP with your browser, you should just use the following address:
ftp://YourFtpUser:YourFtpUserPassword@yourdomain.com
However, if your FTP user to connect is similar to user@yourdomain.com then you will have to URL encode it like this:
ftp://YourFtpUser%40YourDomain.com:YourFtpUserPassword@yourdomain.com
In the above case it is important to note what the FTP username is:
YourFtpUser%40YourDomain.com
In order to connect by FTP with your browser, you should just use the following address:
ftp://YourFtpUser:YourFtpUserPassword@yourdomain.com
However, if your FTP user to connect is similar to user@yourdomain.com then you will have to URL encode it like this:
ftp://YourFtpUser%40YourDomain.com:YourFtpUserPassword@yourdomain.com
In the above case it is important to note what the FTP username is:
YourFtpUser%40YourDomain.com
Friday, December 3, 2010
Canon MF3110 printing with Windows 7 64bit
Ever tried to print with your MF3110 device on Windows 7 64bit?
The solution is to download the Windows 7 64 bit printer drivers for the Canon MF5750 and then install the drivers as your LPT1: Printer. Note this same work around should work in theory with the Canon MF3111 model as well.
You know you have the right file because if you go to Canon’s website link here:
http://www.usa.canon.com/consumer/controller?act=ModelInfoAct&tabact=DownloadDetailTabAct&fcategoryid=335&modelid=11148
Select Windows 7 (x64) in the drop down
And download these drivers:
MF5730_5750_MFDrivers_Win_x64_us_EN_7.exe

Install a new Printer and Select these drivers. Set it as the LPT1: port.
Then plug in your MF3110 USB printer and when it looks for drivers “say Have Disk”
Select the drivers for the MF5750 and it should work for you.
I was able to get this configuration working and printed some test pages without issue.
The solution is to download the Windows 7 64 bit printer drivers for the Canon MF5750 and then install the drivers as your LPT1: Printer. Note this same work around should work in theory with the Canon MF3111 model as well.
You know you have the right file because if you go to Canon’s website link here:
http://www.usa.canon.com/consumer/controller?act=ModelInfoAct&tabact=DownloadDetailTabAct&fcategoryid=335&modelid=11148
Select Windows 7 (x64) in the drop down
And download these drivers:
MF5730_5750_MFDrivers_Win_x64_us_EN_7.exe
Install a new Printer and Select these drivers. Set it as the LPT1: port.
Then plug in your MF3110 USB printer and when it looks for drivers “say Have Disk”
Select the drivers for the MF5750 and it should work for you.
I was able to get this configuration working and printed some test pages without issue.
Thursday, November 25, 2010
How to find UDID of iPod/iPad/iPhone using iTunes
- Open iTunes (the Mac or PC app, not iTunes on your iPhone).
- Plug in your iPhone, iPod touch or iPad.
- Click its name under the devices list.
- Ensure you’re on the Summary tab.
- Click on the text that says Serial Number. It should change to say Identifier (UDID).
- Select Copy from the Edit menu.
- Your UDID is now in the clipboard, so you can paste it into an email or message.
Subscribe to:
Posts (Atom)


