May 24th, 2010
Today I was working on how to manage Hyper-V virtual machines using WMI.
This VBS scripts can be modified to suit your needs…
Each script takes one argument “machine name”:
listvm.vbs – display all virtual machines on Hyper-V - this script will create a TXT file (you should edit path and filename inside the script) with all virtual machines that are on Hyper-V host. It will print names of the machines and current state (Running, Off, Saved)
sortvm.vbs - this script alphabeticaly sorts list of virtual machines (you should edit path and filename inside the script)
startvm.vbs – usage: startvm.vbs “Name of your virtual machine” – this script will start the virtual machine
stopvm.vbs – usage: stopvm.vbs “Name of your virtual machine” – this script will turn of (dirty!) your virtual machine
shutdownvm.vbs – usage: shutdownvm.vbs “Name of your virtual machine” – this script will shut down your virtual machine if it is Integration Services aware – it will signal/notify guest operating system to initialize shutdown procedure. It works only on machines that support Hyper-V Integration services.
hardresetvm.vbs – usage: hardresertvm.vbs “Name of your virtual machine” – this script will reset (dirty!) your virtual machine
savestatevm.vbs – usage: savestatevm.vbs “Name of your virtual machine” – this script will save and turn off your virtual machine
I have compiled this scripts using resources regarding Hyper-V and WMI
http://msdn.microsoft.com/en-us/library/cc136992(VS.85).aspx
http://blogs.msdn.com/virtual_pc_guy/
Enjoy, WMI power!
Tags: Hyper-V, Hyper-V WMI, InitiateShutdown, RequestStateChange, vm WMI, WMI
Posted in Uncategorized | No Comments »
May 21st, 2010
NT Konferenca 2010 is almost here…
While preparing my demos for my sessions I needed to install Windows server 2008 R2 Foundation on an HP ML 110 G6 which was given to me for demos…
After unpacking and starting the server I inserted DVD with installation inside… I get this nice screen telling me Validantih HP Platform Please Wait …
After a minute I got this error – a popup windows came up with folowing message:
SBSBIOSLock
could not find the media
If you want to continue your installation you need to get to HP BIOS and change the value on SATA emulation from RAID to AHCI. It worked for me… Well leave me alone I need to finish my installation.
Tags: R2 Foundation, SBSBIOSLock
Posted in Windows server 2008 R2 | 1 Comment »
April 11th, 2010
Hi!
This blog post is about time synchronization with Hyper-V Integration services when you virtualize SBS 2008 server. You should never leave Hyper-V host to “force” time on servers that you virtualize and that are Active Directory servers (at least not PDC that is the root time server for a domain).
By default Hyper-V enables all Integration services components on your virtual machine but it’s better to configure your virtual machine in my case SBS 2008 server that is Active Directory server too with external NTP time source. Becouse if something goes wrong or you have wrong time on your Hyper-V host you can get in troubles when Hyper-V host will push this “bad time” into your virtual machine.
You should also know that by default on boot virtual machine get’s time from your Hyper-V host becouse of that I have writen two articles. First is about configuring your Hyper-V host that is not joined into a domain (so it does not get the right time from AD server) so it can receive the right time from NTP time source.
And the second one about setting correct values on SBS 2008 server and disabling Hyper-V integration services feature Time Synchronization.
Hope it helps…
Time sync in SBS 2008 virtualized on Hyper – part 1.docx
Time sync in SBS 2008 virtualized on Hyper – part 1.pdf
Time sync in SBS 2008 virtualized on Hyper – part 2.docx
Time sync in SBS 2008 virtualized on Hyper – part 2.pdf
Luka
Tags: Hyper-V, integration services, sbs 2008 time synchronization, time synchronization
Posted in Uncategorized | 1 Comment »
January 13th, 2010
Hi… This days I recieved some questions regarding the problem of Outlook 2007 repromting for username and password when connected to Exchange 2007 (mostly in SBS 2008 environments)…
Saso has an explanation for this phenomenon
http://exchange.si/archive/2010/01/12/pow-11-kb973917-and-repeated-login-prompts.aspx
Posted in MS Exchange server 2007 | No Comments »
November 28th, 2009
Posted in Uncategorized | No Comments »
November 22nd, 2009
I found a fantastic solution… to map my cloud storage that I use. Skydrive is Microsoft Live product that offers me 25 GB of storage in Microsoft cloud. As system administrator it would be great if I coud use thist storage as mapped network drive – so I can manage, copy and edit files directly from Windows Explorer window…ž
Ok, there is a free solution… Combination of Skydrive cloud storage and Gladinet client…
http://skydrive.live.com
+
http://www.gladinet.com/
Enjoy your cloud storage as I do
Posted in Uncategorized | 4 Comments »
November 22nd, 2009
Hi! I was having session on Infosek 2009 conference regarding documents, xls, pdfs and other jujcy information that can be found using search engines… How it happens?
It happens when someone needs to publish something in a rush and asks sysadmin to create a public folder on a website on which they start to put documents… It’s all right but the problem is that nobody is monitoring that folder any more and nobody is deleting files that are not in use. So search engines crawl that information and we create a disaster becouse now anyone can search within our documents. So they are not published only for a specific person that should download them but it is published for anyone…
My suggestion is – if you publish documents on a web server for your costumers to be able to download them then PLEASE monitor that directory and delete files immediately after your costumers downloaded them. Also do not use “Directory browsing” feature on web server – it will harden the possibility for search engines to find specific file – you then send to your costumers EXACT URL where specific document can be downloaded.
For this kind of activity when you need a storage space publicly available I suggest that you start using Microsoft Skydrive solution:
http://skydrive.live.com
http://www.windowslive.com/Online/SkyDrive
http://skydriveteam.spaces.live.com/
http://en.wikipedia.org/wiki/Windows_Live_SkyDrive
Posted in Uncategorized | No Comments »
November 20th, 2009
e-mail me for presentation
Posted in Uncategorized | No Comments »
October 30th, 2009
I’d like to use Bing but without photos in background… I do not know why
but I am used to have and use a minimalistic searcher… If you are like me and would like to use Bing without background just use this link:
http://www.bing.com/?rb=0
Happy binging…
Posted in Uncategorized | 2 Comments »