This guide will teach you how to take a powershell script, turn it into a scheduled task, and have the output of the script be emailed to you. The script I’m going to be demoing here is a simple disk space check that runs on a list of servers you define. For every server in the list with a drive that has less than 20% of storage left, the drive and amount of disk space left will be shown.
Before we begin working with the script, we must first prepare our server for powershell. Windows 2008 Server may already have powershell preinstalled. If it is, you will be able to find it in START > Accessories > Windows Powershell. If it is not there, then you will have to install it by going into control panel, programs and features, and turn windows features on or off, and enabling Windows Powershell.
I just recently purchased a new PC which I have turned into my VMware ESXi 5.0 Whitebox. More posts to come soon as I prepare my virtual environment!
Intel i5 processor
This screen shows the ESXi host management console. It’s a custom version of Linux designed by VMware to be a baremetal hypervisor and leave a minimal footprint on the host.
With the ESXi host prepared, we are now ready to navigate to the IP address of the host to install VMware Virtual Infrastructure Client on my laptop. This will be used to remotely manage the host and virtual machines.
This the welcome screen you receive when navigating the host’s IP address. On this page, vmWare provides you tools needed to remotely manage the ESXi host.
Using VMware Virtual Infrastructure client to access the host. I logged into the host using the root credentials, but once my servers are configured access will be delegated through Active Directory user accounts with the required security group privilege.
Preparing for Windows Server 2008 to be installed as a virtual machine. This will be my Primary Domain Controller on my network.
Installing Windows Server 2003. This will just be a member server on the domain and will have VMware virtual infrastructure client installed on it. That way, if I don’t have my primary Windows laptop I can still VPN back to that server and access the ESXi host using that virtual machine. This machine will also run automated tasks, scripts, and handle backups.
A quick view of the usage statistics with both virtual machines running.
In this article, I will attempt to explain to the best of my ability how to perform a physical to virtual migration.
- Knowledge of vmWare vSphere 4 and Virtual Infrastructure Client
Before we proceed, you will need to head over to http://www.vmware.com/products/converter/ and download the free vCenter Converter.
- Launch vCenter Converter
- Click “Convert Machine” located at the top left menu
- Fill in the info for your remote powered on machine. IP address will be the physical machine you wish to convert. Supply your administrative credentials for the username and password. (DOMAIN/USERNAME for username).
- Click “View source details”
- Choose to “Automatically uninstall the files when the import succeeds”
- Once the conversion prep is complete, you will receive a pop-up displaying the information gathered from the physical machine. Click close on this window.
- Click next and you will be taken to the destination screen. This is where you will tell it to go to your Virtual Infrastructure. The “server name” will be your vCenter server. For username and password, supply your administrative credentials. (DOMAIN\USERNAME for username).
- Click next and you will be asked to name your newly created VM. I have a naming scheme in place for certain types of servers. (Example: SERVER_NAME_nfs for file servers and SERVER_NAME_bdc for domain controllers).
- Click next and select which Host in your Cluster you wish for this vm and also on the right hand side select which datastore you would like to use to store this VM.
- Click next and verify the settings for this VM. Make any needed adjustments here before proceeding. (Example: I needed to make a change on the diskspace on the last P2V I did. The physical machine C: drive was 279GB and I wanted it to be 250GB since I had a decent amount of space unused on the drive and don’t plan to go past 250GB with it anytime soon). Also make sure the number of vCPUs and amount of RAM is set to your liking.
- Click next then finish. The conversion task will begin so sit back, grab a cold soda and wait for it to complete!
Recently, I came across this amazing article that shows you how to turn your Ubuntu desktop/server into a Mac File Server or Time Machine volume. Not only does it allow you to share files between the two computers, but it will also automatically mount your Time Machine volume and begin the backup process. I have followed this article and am currently using this setup on my home network. If you have any questions about this article or need help, please post it in the comments.
Click here to read the article!
Recently, my company’s sharepoint administrator left her job and I was given the reins to sharepoint. Growing up with FaceBook, Myspace, and HTML knowledge, editing sharepoint became a piece of cake. It wasn’t until I was asked to edit our Document Library’s List Column that I ran into trouble. Editing the List Columns the traditional way by going into your Modify Site Settings didn’t seem to work so I found a workaround.
- Edit your document library in the datasheet (Excel)
- Right click the column you wish the change and choose edit
- Add in any settings you’d like
- Save and exit
I hope this helps!
While installing Apache 2 on my Linux server, which runs Ubuntu 10.10, I came across this error:
chris@chrism-laptop:~$ sudo /etc/init.d/apache2 restart
* Restarting web server apache2
apache2: Could not reliably determine the server's fully qualified domain name,
using 127.0.1.1 for ServerName
To solve this problem simply issue this command:
sudo gedit /etc/apache2/httpd.conf
The file will be blank by default so don’t worry! Type this into the blank document and save:
Now, issue the restart command for apache.
sudo /etc/init.d/apache2 restart
Hope this helps!
Note: This is most useful in a LAN (Local Area Network) where the computer you are trying to wakeup is on the same router as you are. Wakeup packets get squashed when hopping routers.
Scenario: You have a computer in the same building as you are in and you would like to wake it up (from shutdown, standby, or sleep) without actually walking over to it and pressing the power button. (Assuming that this computer is on the same network as you are and uses the same gateway/router)
First, you will need Wakeup 1.01 which you can download here. Within the ZIP file you will find wakeup.exe. Copy that to a new folder C:\wakeup101\ (which you will create).
Next, open up a command prompt (START -> RUN -> CMD). Change the directory to the wakeup folder by using this command
Your command line should now read
C:\wakeup101>. In order to wake up a computer you will use this command:
Refer to the picture below for how I issued this command!