SMB Share

Created Thursday 14 June 2012 

Microsoft Hyper-V Server 8 Release Candidate and Microsoft Hyper-V Server 2008 R2 ship with built-in support for Windows network shares.
This came in handy, since I needed a network share for data exchange and my Hyper-V machine has a decent hard drive.

 

The old way in cmd.exe:

 

mkdir c:\Datanet share DataShare=c:\Data /remark:"For department 123." /unlimited /GRANT:Everybody,Full :: READ, CHANGE, FULL:: net share DataShare /delete

 

The new way in Powershell 3.0:

 

new-item -Path C:\ -Name Data -ItemType directoryNew-SmbShare -name DataShare -path C:\Data -FullAccess Administrators -ReadAccess Users

 

This is a nice solution. If you need a quick fileserver, install Microsoft Hyper-V Server 8 on a machine and create a share. Installing Hyper-V Server does not take long. 

Vhd boot

Created Thursday 14 June 2012 

Boot from vhd is a relativly new feature, introduced with Windows Vista. It is not virtualization. It is boot on real hardware from a virtual hard disk.
It is lik dual boot, only the disk is a virtual disk. 

Add a Native-Boot Virtual Hard Disk to the Boot Menu
gives an overview of the whole process. 

I followed the directives from this article
BCDBoot–one of my new best friends
and achieved my goal. Dual boot of my Windows 7 and a Windows Server 2012 Release Candidate vhd available via boot menu. 

I needed it, because only one of my computers has virtualization support. And I prefer it over dual boot. 

Virtual Hard Disks can be mounted with Powershell:
PowerShell: How to Mount a Virtual Hard Disk (VHD) 

I encountered a problem after configuring vhd boot for the Windows Server 2012 Release Candidate vhd.
It would not boot because I lacked hard disk space on the host system. That was my fault, not an error with the vhd.
After deleting some files everything worked fine.