Whenever you’ll need to customize a folder or application icon there are lots of usefull system icons built into MacOS. You can find them in the following folder:
/System/Library/CoreServices/CoreTypes.bundle/Contents/Resources
Whenever you’ll need to customize a folder or application icon there are lots of usefull system icons built into MacOS. You can find them in the following folder:
/System/Library/CoreServices/CoreTypes.bundle/Contents/Resources
If you want to change the Icon for a XenDesktop Catalog to make it easier to differenciate between desktop catalogs:
This can be done via Powershell:
Asnp Citrix.* $ctxIcon = Get-CtxIcon -FileName C:InstallmyIcon.ico -index 0 $brokerIcon = New-BrokerIcon -EncodedIconData $ctxIcon.EncodedIconData $desktopGroup = Get-BrokerDesktopGroup -Name 'MyDesktopGroup' Set-BrokerDesktopGroup $desktopGroup -IconUid $brokerIcon.Uid
During one of my current projects, I needed to create lots of virtual machines on a VMware vSphere 5 environment. These virtual machines were used as Citrix XenApp Worker servers provisioned by Citrix Provisioning Services (PVS). Therefore, we additionally needed to configure a static MAC address on each virtual machine.
For faster deployment and better documentation, I decided to do the word with the VMware Powershell interface called PowerCLI:
http://www.vmware.com/go/powercli
# -------------------------------------------------- # Connect to vCenter Server # -------------------------------------------------- connect-viserver –server "myVCenter.domain.local" # -------------------------------------------------- # Create new VMs from Template # -------------------------------------------------- New-VM -Name NewVM01 -Template W2K8R2_Datacenter_ENU -Datastore "SAN-Datastore-01" -VMHost "esx01.domain.local" New-VM -Name NewVM02 -Template W2K8R2_Datacenter_ENU -Datastore "SAN-Datastore-01" -VMHost "esx02.domain.local" # -------------------------------------------------- # Setting DRS Rules to separate NewVM01 and NEWVM02 # -------------------------------------------------- New-DrsRule -Name "Never on the same Host" -Cluster "Production" -Enabled $true -KeepTogether $false -VM "NewVM01", "NewVM02" # -------------------------------------------------- # Setting static MAC Addresses # -------------------------------------------------- Get-VM "NewVM01" | Get-NetworkAdapter | Set-NetworkAdapter -MacAddress "00:50:56:1A:00:01" -Confirm:$false Get-VM "NewVM02" | Get-NetworkAdapter | Set-NetworkAdapter -MacAddress "00:50:56:1A:00:02" -Confirm:$false
Another interesting VBScript Function I created in the past for larger scripting projects. This will give you the ability to “outsource” code from your main script file. This function is known and built into other languages such as C++, .NET, PHP, etc. for years.
PHP-Include Reference: http://php.net/manual/de/function.include.php
(functionality is pretty much the same in my VBScript function)
' ##################################################################### ' ## ' ## (C) 2011 Michael Miklis (michaelmiklis.de) ' ## ' ## ' ## Filename: Include.vbs ' ## ' ## Version: 1.0 ' ## ' ## Release: Final ' ## ' ## Requirements: -none- ' ## ' ## Description: Include function for external Code-Files ' ## ' ## This script is provided 'AS-IS'. The author does not provide ' ## any guarantee or warranty, stated or implied. Use at your own ' ## risk. You are free to reproduce, copy & modify the code, but ' ## please give the author credit. ' ## ' #################################################################### Option Explicit Include("C:code.inc.vbs") '______________________FUNCTIONS & SUB ROUTINES_______________________ Sub Include(strFilename) '// <summary> '// Include function for C-Style include from '// external script files '// </summary> '// <param name="strFilename">external code file</param> Dim objFSO, objHANDLE Set objFSO = CreateObject("Scripting.FileSystemObject") Set objHANDLE = objFSO.OpenTextFile(strFilename) ExecuteGlobal objHANDLE.ReadAll objHANDLE.Close() Set objHANDLE = Nothing Set objFSO = Nothing End Sub
During Citrix Summit & Synergy 2012 I attended an interesting session regarding XenDesktop Troubleshooting. Whenever you need to troubleshoot XenDesktop related problems you need to be familiar with these tools. In this upcoming series I’ll write about the tools and how to use them:
Tracing & Logging:
Monitoring & Collection
Database and Services