Posts RSS Comments RSS 253 Posts and 411 Comments till now

Citrix MFCom Enums

One of the biggest problems I run into when writing Citrix MFCom Scripts I normally like finding examples (Vbscript mostly.) Because the COM Object model is very picky about what is passed and how it is passed, it helps knowing how and what the COM object is expecting.

Most of these examples use MFCOM enumerations in the initializing of the object. So I always find my self trying to figure out what the value is suppose to be because the ENUM is a pain to do in Powershell. I finally decided to let Visual Studio do my dirty work and figure out the Enums for me.

Here is the list (it is not complete, but it has most of them. I will add more as I find them.) If you find any missing let me know!

You can either use this as reference for the values or you cut/paste this code in a script and ‘.’ Source the Script in your Citrix Scripts and call the Enums directly.

# Window Type Enums
$MFWinWindowUnknown = 0
$MFWinWindow640X480 = 1
$MFWinWindow800X600 = 2
$MFWinWindow1024X768 = 3
$MFWinWindow1280X1024 = 4
$MFWinWindowCustom = 5
$MFWinWindowPercent = 6
$MFWinWindowFullScreen = 7
$MFWinWindow1600X1200 = 8

# Color Enums
$MFWinColorUnknown = 0
$MFWinColor16 = 1
$MFWinColor256 = 2
$MFWinColor64K = 3
$MFWinColor16M = 4

# Authentication Enums
$MFAccountAuthorityUnknown = 0
$MFAccountAuthorityNTDomain = 1
$MFAccountAuthorityNDS = 2
$MFAccountAuthorityADS = 3
$MFAccountTypeUnknown = 0
$MFAccountLocalUser = 1
$MFAccountDomainUser = 2
$MFAccountLocalGroup = 3
$MFAccountGlobalGroup = 4
$MFAccountUniversalGroup = 5
$MFAccountDomainLocalGroup = 6
$MFAccountFolder = 7

# Object Enums
$MetaFrameUnknownObject = 0
$MetaFrameWinFarmObject = 1
$MetaFrameZoneObject = 2
$MetaFrameWinAppObject = 3
$MetaFrameLicenseObject = 4
$MetaFrameAcctAuthObject = 5
$MetaFrameWinSrvObject = 6
$MetaFrameUserObject = 7
$MetaFrameGroupObject = 8
$MetaFrameProcessObject = 9
$MetaFrameSessionObject = 10
$MetaFrameChannelObject = 11
$MetaFrameAppFolder = 12
$MetaFrameSrvFolder = 13
$MetaFrameIMSAppObject = 14
$MetaFrameRMSAppObject = 15
$MetaFrameUnixAppObject = 16
$MetaFrameContentObject = 17
$MetaFrameFileTypeObject = 18
$MetaFrameUserPolicyObject = 19
$MetaFrameSessionPolicyObject = 19
$MetaFrameLicenseSetObject = 20
$MetaFrameLicenseNumberObject = 21
$MetaFrameAccountFolder = 22
$MetaFramePrinterObject = 23
$MetaFramePrinterDriverObject = 24
$MetaFrameAdminObject = 25
$MetaFrameMeObject = 26
$MetaFrameLoadEvaluatorObject = 27
$MetaFrameSessionPolFilterObject = 28
$MetaFrameAppliedPolicyObject = 29
$MetaFrameFileObject = 30
$MetaFrameIconObject = 31
$MetaFrameVIPRangeObject = 32
$MetaFrameLMRuleObject = 33
$MetaFrameAIEObject = 34
$MetaFrameAIEFolder = 35
$MetaFrameAIERuleObject = 36
$MetaFrameHotfixObject = 37
$MetaFrameStreamedAppObject = 38
$MetaFrameIMPackageObject = 39
$MetaFrameIMPackageGroup = 40
$MetaFrameServerGroup = 41
$MetaFrameMPFolder = 42
$MetaFrameIMConfigObject = 43
$MetaFrameIMJobObject = 44

3 Responses to “Citrix MFCom Enums”

  1. on 21 Nov 2007 at 9:10 amShay Levi

    Maybe this can ease the pain 🙂

    http://scriptolog.blogspot.com/2007/10/listing-enumeration-type-values.html

    MoW’s PowerTAB can help too.
    —–
    Shay Levi
    $cript Fanatic
    http://scriptolog.blogspot.com

  2. on 21 Nov 2007 at 12:05 pmBrandon

    It were if they were .NET enums, but unfortunately this doesnt work with COM object AFAIK.

  3. […] You can find the Citrix Enums herehttp://bsonposh.com/modules/wordpress/?p=62 […]

Trackback this post | Feed on Comments to this post

Leave a Reply

You must be logged in to post a comment.