09 Aug 2011 @ 6:50 AM 

When creating a base image within an environment provisioned with Citrix Provisioning Server, it is desired to clear all Windows event logs when you create your base image so that your image is as clean as possible.

One way of doing this is by using the GUI… now this will take a lot of time and it’s not something you would want to do weekly.

There must be a way to do this easier, right?
That’s correct, you can clean all Windows event logs with one simple command:

for /F “tokens=*” %1 in (‘wevtutil.exe el’) DO (wevtutil.exe cl “%1″)

And for those of you that would like to use a PowerShell command:

get-eventlog -list |%{$_.clear()}

Post to Twitter

Posted By: Jeff Wouters
Last Edit: 09 Aug 2011 @ 07:20 AM

EmailPermalinkComments (0)
Tags
Tags: , ,
Categories: Citrix, Microsoft, Windows
 04 Aug 2011 @ 2:01 PM 

image

This error is what you get from Citrix Provisioning Server (PVS) when you’ve configured a VLAN inside a template within System Center Virtual Machine Manager (SCVMM)
I’ve found one solution and one workaround for this issue.

Solution
Install all Microsoft and Citrix updates applicable for the SCVMM, XenDesktop and PVS on their respective servers. Keep in mind that the SCVMM Management Console is also installed on the XenDesktop servers so it also has to be updated.

Workaround 
Remove the VLAN setting from the template in SCVMM, create the virtual machines and run the following PowerShell command on a server which has the SCVMM Management Console installed (where the IP number is that of the SCVMM server):

get-vmmserver 10.0.12.130
get-vm | get-virtualnetworkadapter | set-virtualnetworkadapter -vlanenabled $true -VLANID 172

Big fat note
This command will set the VLANID to all offline machines (and will fail for those that are online)! In my case the Hyper-V environment is only used for the VDI guests which all needed the same VLANID, so it worked out just fine…

Post to Twitter

Posted By: Jeff Wouters
Last Edit: 04 Aug 2011 @ 02:01 PM

EmailPermalinkComments (0)
Tags

 Last 50 Posts
 Back
Change Theme...
  • Users » 1
  • Posts/Pages » 251
  • Comments » 430
Change Theme...
  • VoidVoid « Default
  • LifeLife
  • EarthEarth
  • WindWind
  • WaterWater
  • FireFire
  • LightLight

About



    No Child Pages.

Contact



    No Child Pages.