File

A File object is of type PsObject and represents a file in Vault.

The $file object is dynamically generated based on the defined File Properties in Vault. Therefore all file properties are directly available on this object.
The properties are named the same as in Vault, including whitespaces. If you want to access such a property you have to enclose it in single quotes.

$file.'Full Path'

Depending on the configured Property types in Vault the properties are converted to a corresponding PowerShell data type.

VaultPowerShell
NumberLong
TextString
BooleanBoolean
ThumbnailThumbnailType

$file is supporting this feature:

  • all active properties can be accessed via the displayName
  • all active properties can be accessed via _SystemName

except: the ones with guids (=user defined)
except: Internal ones ending with !dateonly or !timeonly (Date Version Created (Time only) and Date Only → can be accessed via DateVersionCreated.Date or DateVersionCreated.Time)
internal properties starting with Entity!… or File!… can be accessed directly without Entity! (e.g. File!VaultStatus, Entity!HasAttachments)

$file.Title can be used when working against english vault
$file.Titel can be used when working against german vault
$file._Title can be used on all vault language environments

File-object on an english environment:

Classification                    : None
_Classification                   : None
Version                           : 13
_VersionNumber                    : 13
Comment                           : Property Edit
_Comment                          : Property Edit
Number of Attachments             : Autodesk.DataManagement.Client.Framework.Vault.Currency.Properties.ImageInfo
_NumManualAttachments             : Autodesk.DataManagement.Client.Framework.Vault.Currency.Properties.ImageInfo
Date Version Created              : 19.04.2018 17:35:26
_DateVersionCreated               : 19.04.2018 17:35:26
Created By                        : coolOrange
_CreateUserName                   : coolOrange
Checked In                        : 19.04.2018 17:35:26
_CheckInDate                      : 19.04.2018 17:35:26
File Name                         : Pad Lock.iam
_ClientFileName                   : Pad Lock.iam
File Name (Historical)            : Pad Lock.iam
_ClientFileName(Ver)              : Pad Lock.iam
Date Modified                     : 19.04.2018 17:35:20
_ModDate                          : 19.04.2018 17:35:20
File Size                         : 1064448
_FileSize                         : 1064448
Linked to Item                    : True
_ItemLinked                       : True
Checked Out Local Spec            :
_CheckoutLocalSpec                :
Checked Out Machine               :
_CheckoutMachine                  :
Checked Out                       : 19.04.2018 17:35:24
_CheckoutDate                     : 19.04.2018 17:35:24
Checked Out By                    :
_CheckoutUserName                 :
Hidden                            : False
_Hidden                           : False
Latest Version                    : True
_LatestVersion                    : True
Controlled By Change Order        : False
_ControlledByChangeOrder          : False
Change Order State                :
_ChangeOrderState                 :
Visualization Attachment          : None
_VisualizationAttachment          : None
Originator                        : coolOrange
_Originator                       : coolOrange
Original Create Date              : 09.09.2015 16:00:20
_OrigCreateDate                   : 09.09.2015 16:00:20
Thumbnail                         : Autodesk.DataManagement.Client.Framework.Vault.Currency.Properties.ThumbnailInfo
_Thumbnail                        : Autodesk.DataManagement.Client.Framework.Vault.Currency.Properties.ThumbnailInfo
Provider                          : Inventor
_Provider                         : Inventor
iLogicRuleStatus                  :
_iLogicRuleStatus                 :
Name                              : Pad Lock.iam
_Name                             : Pad Lock.iam
File Extension                    : iam
_Extension                        : iam
Property Compliance               : Compliant
_Compliance                       : Compliant
Property Compliance (Historical)  : Compliant
_Compliance(Ver)                  : Compliant
Latest Released Revision          : False
_LatestReleasedRevision           : False
Released Revision                 : False
_ReleasedRevision                 : False
Initial Release Date              :
_InitReleaseDate                  :
Initial Approver                  :
_InitApprover                     :
Category Name                     : Base
_CategoryName                     : Base
Category Name (Historical)        : Base
_CategoryName(Ver)                : Base
Category Glyph                    : Autodesk.DataManagement.Client.Framework.Vault.Currency.Properties.ImageInfo
_CategoryGlyph                    : Autodesk.DataManagement.Client.Framework.Vault.Currency.Properties.ImageInfo
Category Glyph (Historical)       : Autodesk.DataManagement.Client.Framework.Vault.Currency.Properties.ImageInfo
_CategoryGlyph(Ver)               : Autodesk.DataManagement.Client.Framework.Vault.Currency.Properties.ImageInfo
Lifecycle Definition              :
_LifeCycleDefinition              :
Lifecycle Definition (Historical) :
_LifeCycleDefinition(Ver)         :
State                             :
_State                            :
State (Historical)                :
_State(Ver)                       :
Revision Scheme                   :
_RevisionDefinition               :
Revision Scheme (Historical)      :
_RevisionDefinition(Ver)          :
Revision                          :
_Revision                         :
Current Owner                     : WOLFSRUDEL\AUTODESKVAULT
_ReplicationCurrentOwner          : WOLFSRUDEL\AUTODESKVAULT
Leased Until                      : 19.04.2018 16:07:37
_ReplicationLeasedUntil           : 19.04.2018 16:07:37
File Replicated                   : True
_FileReplicated                   : True
Author                            : B. ROEPKE
_Author                           : B. ROEPKE
Comments                          :
_Comments                         :
Keywords                          : Vault, Tutorial, Padlock
_Keywords                         : Vault, Tutorial, Padlock
Rev Number                        :
_RevNumber                        :
Subject                           : test
_Subject                          : test
Title                             : Pad Lock
_Title                            : Pad Lock
Company                           : Autodesk, Inc.
_Company                          : Autodesk, Inc.
DWG Creator Name                  :
_DWGCreatorName                   :
DWG Creator Version               :
_DWGCreatorVersion                :
Checked By                        :
_CheckedBy                        :
Cost                              : 17
_Cost                             : 17
Cost Center                       :
_CostCenter                       :
Date File Created                 :
_CreationDate                     :
Description                       : PAD LOCK ASSEMBLY
_Description                      : PAD LOCK ASSEMBLY
Material                          :
_Material                         :
Part Number                       : ERP-41881007
_PartNumber                       : ERP-41881007
Stock Number                      :
_StockNumber                      :
User Status                       :
_UserStatus                       :
GeoRss                            :
_GeoRss                           :
Designer                          : B. ROEPKE
_Designer                         : B. ROEPKE
Engineer                          : B. ROEPKE
_Engineer                         : B. ROEPKE
Engr Approved By                  : D. BRISSON
_EngrApprovedBy                   : D. BRISSON
Manager                           : klaus
_Manager                          : klaus
Mfg Approved By                   :
_MfgApprovedBy                    :
Project                           : PADLOCK
_Project                          : PADLOCK
Type Tag                          :
_TypeTag                          :
ErpMaterial                       :
ErpVersion                        :
Test                              :
Item Assignable                   : True
_ItemAssignable                   : True
Obsolete                          : False
_Obsolete                         : False
Has Drawing                       : True
_HasDrawing                       : True
Entity Type                       : File
_EntityType                       : File
Entity Type ID                    : FILE
_EntityTypeID                     : FILE
Entity Icon                       : Autodesk.DataManagement.Client.Framework.Vault.Currency.Properties.ImageInfo
_EntityIcon                       : Autodesk.DataManagement.Client.Framework.Vault.Currency.Properties.ImageInfo
Path                              : $/Designs/Padlock/Designs/Padlock/Assemblies
_EntityPath                       : $/Designs/Padlock/Designs/Padlock/Assemblies
Full Path                         : $/Designs/Padlock/Designs/Padlock/Assemblies/Pad Lock.iam
_FullPath                         : $/Designs/Padlock/Designs/Padlock/Assemblies/Pad Lock.iam
Attachments                       : False
_HasAttachments                   : False
Link Target Path                  :
_LinkTargetPath                   :
Date Version Created (Date Only)  : 19.04.2018 00:00:00
Date Version Created (Time Only)  : 01.01.0001 17:35:00
Checked In (Date Only)            : 19.04.2018 00:00:00
Checked In (Time Only)            : 01.01.0001 17:35:00
Date Modified (Date Only)         : 19.04.2018 00:00:00
Date Modified (Time Only)         : 01.01.0001 17:35:00
Checked Out (Date Only)           : 19.04.2018 00:00:00
Checked Out (Time Only)           : 01.01.0001 17:35:00
Original Create Date (Date Only)  : 09.09.2015 00:00:00
Original Create Date (Time Only)  : 01.01.0001 16:00:00
Initial Release Date (Date Only)  :
Initial Release Date (Time Only)  :
Leased Until (Date Only)          : 19.04.2018 00:00:00
Leased Until (Time Only)          : 01.01.0001 16:07:00
Type Description                  : Autodesk Inventor Assembly
_EntityDescription                : Autodesk Inventor Assembly
Vault Status                      : Autodesk.DataManagement.Client.Framework.Vault.Currency.Properties.EntityStatusImageInfo
_VaultStatus                      : Autodesk.DataManagement.Client.Framework.Vault.Currency.Properties.EntityStatusImageInfo
Vault Status Modifier             : False
_VaultStatusModifier              : False
Id                                : 138381
MasterId                          : 28663
PersistentId                      :
PersistentMasterId                :
IsCheckedOut                      : False
LocalPath                         :