Powershell Script to extract Metadata from sessions

Powershell Script to extract Metadata from sessions

avatar

Hi Support,

Hopefully a basic question but could you provide me an example powershell script to extract the <IP> meta information field from a session/connection? My limited powershell skills are hampering me on this one.

Thanks

All Comments (2)

avatar

Hi @jason13

As far as I can see, it should be possible.

The method below should work:

$Session = Get-RDMSession -Name 'RDPName'

$Session.MetaInformation.IP

Here is a list of all the available MetaInformation:

PasswordHistory :

CustomField1Hidden : False

CustomField2Hidden : False

CustomField3Hidden : False

CustomField4Hidden : False

CustomField5Hidden : False

IsHyperVServer : False

IsJumpHost : False

IsTerminalServer : False

IsVirtualMachine : False

IsVMwareServer : False

IsXenServer : False

JumpForceNewSession : False

JumpShowWaitDialog : True

AllowMultipleConnections : Default

ContactMode : Default

ContactType : Default

Gender : Unspecified

HyperVVersion : Default

VendorMode : Default

AgentConnectionTimeOut : -1

CPUCoreCount : 0

LogicalCPUCount : 0

SocketCount : 0

Address :

Architecture :

AssetTag :

BirthdayDateTimeString :

Blade :

BladeDetails :

Cell :

City :

Company :

ConnectionSubType :

ContactDomain :

ContactLinkID :

ContactUsername :

Country :

Cpu :

CustomerNumber :

CustomerNumberLabel :

CustomField1Title :

CustomField1Value :

CustomField2Title :

CustomField2Value :

CustomField3Title :

CustomField3Value :

CustomField4Title :

CustomField4Value :

CustomField5Title :

CustomField5Value :

Domain :

Drives :

Email :

Fax :

FirstName :

Hardware :

HypervisorParentID :

HypervisorParentName :

IP :

Keywords :

LastName :

MAC :

MachineName :

Manufacturer :

Memory :

MiddleName :

ModelInformation :

Monitors :

Notes :

OS :

Phone :

Prefix :

Rack :

SafeContactPassword :

SafePasswordHistory :

SerialNumber :

ServerHomePageUrl :

ServerRemoteManagementUrl :

ServerRemoteManagementUrlLabelOverride :

ServiceTag :

Site :

Skype :

Softwares :

State :

SupportServiceLevel :

Title :

Vendor :

VendorLinkID :

Version :

VirtualMachineName :

VirtualMachineType :

Website :

WorkPhone :

ZipCode :

CustomServerFeatureRoles :

ServerFeatureRoles :

Expiration :

LastLoadFromInventoryDate :

PurchaseDate :

Warranty :

Or am I misunderstanding something (wouldn't be the first time ;) )?

//Brandur

avatar

Looks like this is not one of those times :)

Thanks that's exactly what I needed.