Ajweh's Blog

A technical perspective, from the heart of Jordan!

Last week Tim Mangan and I, wrote a blog titled: “App-V with AppSense: Better Together” in which we’ve included tips and best practices for configuring your App-V with AppSense Environment Manager.

I’ve introduced both products and how do they fit together, what kind of value-added functionality does AppSense Environment Manager provide, some tips on how to configure them both, while Tim gave us some best practices for proceeding with such integration.

Check it out on the Windows Team Blog:

http://windowsteamblog.com/windows/b/springboard/archive/2010/12/16/app-v-with-appsense-better-together.aspx

let me know if you guys have any questions.

see ya!

  • Share/Bookmark

Alright folks, I’ve been goofing around with James O’Neill Powershell Module for Hyper-V and I believe it contains a very powerful set of cmdlets that will definitely save you the hassle of WMI scripting.

I create a lot of Hyper-V  VMs to test various products, some of them live for a couple of weeks, others survive only a few days.

Those VMs are based on Server 2008 R2 base disk, so every time I need a machine I have to create a new Differencing VHD that has the base disk as a parent, then create a new VM and attach the VHD to it. it was okay the first 100 times but then I thought I need an automated way of provisioning my new VMs.

Moreover, If you’re stuck in a large virtualization project, you might also consider accelerating your VM creation process, lucky for you there is SCVMM but it’s not always around.

so, the script I created will ask you for the Virtual Machine’s name, Memory Amount, and Number of CPUs, then automatically will:

  • Create A VM on a predefined path.
  • Create A Differencing VHD from a predefined parent.
  • Attach a predefined network adapter.
  • Attach the created Differencing VHD.
  • Optionally Start then Connect to the VM.

 

First you need to download the Module library from Here, then go to the directory in Program Files (typically C:\Program Files\Modules\Hyper-V” and right click each file then choose “Unblock” so PowerShell stops warning you about each file in the library.

Second, set the execution policy to Unrestricted by the running the command

Set-ExecutionPolicy -ExecutionPolicy Unrestricted

And at Last here’s the script, remember you have to change:

  • $vmParent this is the fill path to your Parent VHD.
  • $vmPath this is your preferred VM Store.
  • $vmSwitch this is your default Virtual Network Adapter that you want to use.

 

#Script Start
Function Instantiate-VM
 {
  #Import the Hyper-V Module
  Import-Module "C:\Program Files\modules\HyperV"            

  #Set annoying error variable to "shut up" mode
  $erroractionpreference = 0            

  #Set variables
  [string]$vmSwitch = "Internal Hyper-V" #Change this to your preferred NIC.
  [string]$parentVHD = "D:\Virtual\Base\Server2008R2.vhd" #Change this to your preferred Parent VHD.
  [string]$vmName = Read-Host "Type the Virtual Machine's name"
  [string]$vmPath = "D:\Virtual\$vmName" #Change this to your preferred VM Store.            

  [int]$vmMemory = Read-Host "How much memory to assign? In MB"
  Trap [Exception]
  {
   Write-Host -BackgroundColor Red -ForegroundColor White "Error, The memory amount should be an integer!"
   break
  } #CloseTrap            

  [int]$vmCPU = Read-Host "How many CPUs to assign? Integer Number"
  Trap [Exception]
  {
   Write-Host -BackgroundColor Red -ForegroundColor White "Error, The memory amount should be an integer!"
   break
  } #CloseTrap            

  #Create Raw Virtual Machine
  New-VM -Name $vmName -Path $vmPath | Out-File -FilePath .\Log.txt -Append -width 50
  Set-VMCPUCount -VM $vmName -CPUCount $vmCPU | Out-File -FilePath .\Log.txt -Append -width 50
  Set-VMMemory -VM $vmName -Memory $vmMemory | Out-File -FilePath .\Log.txt -Append -width 50
  Add-VMNIC -VM $vmName -VirtualSwitch $vmSwitch | Out-File -FilePath .\Log.txt -Append -width 50            

  #Create a Differencing VHD
  New-VHD -VHDPaths $vmPath\$vmName.vhd -ParentVHDPath $parentVHD | Out-File -FilePath .\Log.txt -Append -width 50            

  #Check if the VHD has been created and attach it on success
  $VHDExists = Test-Path $vmPath\$vmName.vhd
  if ($VHDExists -eq $True)
    {
     Add-VMDisk -VM $vmName -ControllerID 0 -LUN 0 -Path $vmPath\$vmName.vhd
      Write-Host -BackgroundColor Green -ForegroundColor Black "Virtual Machine $vmName has been successfully created"             

    } #Close If
  else
    {
      Write-Host -BackgroundColor Red -ForegroundColor White "It seems the disk creation job has not completed, attach it manually once it's done"
    } #Close Else            

  #Start the machine
  $startMachine = Read-Host "Start and Connect to $vmName? Type [Y]ES or [N]O"
  if ($startMachine.toUpper() -eq "Y")
    {
      New-VMConnectSession -VM $vmName
      Start-VM -VM $vmName
    } #Close If            

} #Close Function            

#Call Function
Instantiate-VM            

Now save the script to a ps1 file, i.e. “CreateVM.ps1” and then use a Batch file that has a powershell command that calls the script.

This is what your Batch file should contain:

@echo off
@title Creating a New Virtual Machine
powershell -file %1 CreateVM.ps1
exit

or you know what Download both of them Here, just open up the script file and edit the paths.

Good Night wa rahmato alah wa barakatu.

  • Share/Bookmark

The installation process for MS Exchange can take a lot of time and resources because of the many variances organizations have, that includes the operating system version, the number of domains, the roles required for each domain, the physical locations… etc.

for exchange 2010, its similar to 2007, the Client Access Server and Hub Transport must be installed wherever you have a Mailbox Server Role installed. and so, we’re gonna see how to get that done.

Useful Links:

Download This Video Here! to get a separate page for this video Click Here

This video is for demonstration only, you should always refer to the product’s official handouts for a production environment’s setup.

  • Share/Bookmark

This simple video will demonstrate how to enable the Active Directory recycle bin using PowerShell, as well as deleting and restoring and object using the LDP.exe utility and PowerShell.

unlike the restore used by Server 2003 domains, using Active Directory Recycle Bin will actually preserve all attributes till the state before deletion has took place.

Download This Video Here! to get a separate page for this video Click Here

  • Share/Bookmark

This simple video will demonstrate how to restore deleted active directory objects from a Windows Server 2003 Domain Controller using the LDP.exe support tool, I will create and delete a user account and then restore it using LDP. unlike the Active Directory Recycle Bin deleting objects in Domain Controllers prior to Windows Server 2008 R2 will not preserve any settings except for the SID, GUID, SamId and will change the isDeleted attribute to true.

enjoy =)

Download This Video Here! to get a separate page for this video Click Here

This video is for demonstration only, you should always refer to the product’s official handouts for a production environment’s setup.

  • Share/Bookmark

this is the second part of the video Sequencing Office 2010 (Beta) with App-V 4.6 Sequencer – Part 1 , I had to cut them in half  because the video’s size and duration was getting out of control =)

Download This Video Here! to get a separate page for this video Click Here

This video is for demonstration only, you should always refer to the product’s official handouts for a production environment’s setup.

  • Share/Bookmark

This video is to try out the Office 2010 64-bit as a virtual application, I have bypassed some steps that you might need to do in an actual production environment.

below you will find some links to help you out in the process to get it working in a production environment, in my test lab I am running App-V 4.5 SP1 on Windows Server 2008 R2 and both of the Client and Sequencer are running the version 4.6 on Windows 7 64-bit architecture. Part 2 can be found Here

Useful Links:

Download This Video Here! to get separate page for this video Click Here

This video is for demonstration only, you should always refer to the product’s official handouts for a production environment’s setup.

  • Share/Bookmark

The installation process for the Client and Sequencer is pretty simple, little prerequisites has to be there, and those that are not there by default will be installed by the installation wizard.

For the App-V 4.6 Client just as any previous version it can easily be installed remotely using the ESD software that you’re organization might already be using, an example could be SCCM 2007 or SMS 2003.

Useful Links:

Note: If the track hangs/stops at any location, just move the video forward a little bit

Download This Video Here! to get a Separate page for this video Click Here

This video is for demonstration only, you should always refer to the product’s official handouts for a production environment’s setup.

  • Share/Bookmark

Hello there! Here is the demonstration video for installing App-V Server which includes the App-V Management Server, App-V Management Service, and the App-V Management Console.

I’m using the Microsoft Desktop Optimization Pack 2010 (MDOP 2010) which includes the App-V 4.6 versions of the sequencer and the client, but no changes on the server side.

Useful links:

Download the Video Here! to get a seperate page for this video Click Here

This video is for demonstration only, you should always refer to the product’s official handouts for a production environment’s setup.

  • Share/Bookmark

Hey hey! how are you guys doing? here is the long awaited App-V overview video, since it’s just an Overview, the installation and deeper look at each component are not explained.

this video should give you a head start with App-V knowing what it is, I could go on for hours and hours talking about it but I always do my best to limit my video to be around 25 minutes.

during the next week (hopefully) there will be 2 new videos: Installing App-V 4.6 (yes 4.6!) All components ofcours! and Infrastructure Optimization (IO) using Virtualization, in which I will talk about how to take advantage of Presentation, Desktop, Application, and Server virtualization to optimize the infrastrcture.

Also, I want you to check out these two FREE ebooks, written by Mitch Tulloch
1. Understanding Microsoft Virtualization Solutions: From the Desktop to the Datacenter, Second Edition
2. Understanding Microsoft Virtualization Solutions: From The Datacenter To The Desktop
Download This Video!

  • Share/Bookmark
3 visitors online now
1 guests, 2 bots, 0 members
Max visitors today: 11 at 12:27 am UTC
This month: 14 at 10-01-2014 06:02 pm UTC
This year: 54 at 02-02-2014 06:46 pm UTC
All time: 66 at 05-05-2013 10:10 am UTC