win32ts.WTSQueryUserConfig

object = WTSQueryUserConfig(ServerName, UserName , ConfigClass )

Returns user configuration

Parameters

ServerName : PyUnicode

Name ot terminal server

UserName : PyUnicode

Name of user

ConfigClass : int

Type of information to be returned, win32ts.WTSUserConfig*

ConfigClass Returned value
WTSUserConfigInitialProgramUnicode string, program to be run when user logs on
WTSUserConfigWorkingDirectoryUnicode string, working dir for initial program
WTSUserConfigModemCallbackPhoneNumberUnicode string
WTSUserConfigTerminalServerProfilePathUnicode string
WTSUserConfigTerminalServerHomeDirUnicode string
WTSUserConfigTerminalServerHomeDirDriveUnicode string
WTSUserConfigfInheritInitialProgramInt
WTSUserConfigfAllowLogonTerminalServerInt, 1 if user can log on thru Terminal Service
WTSUserConfigTimeoutSettingsConnectionsInt, max connection time (ms)
WTSUserConfigTimeoutSettingsDisconnectionsInt
WTSUserConfigTimeoutSettingsIdleInt, max idle time (ms)
WTSUserConfigfDeviceClientDrivesInt
WTSUserConfigfDeviceClientPrintersInt
WTSUserConfigfDeviceClientDefaultPrinterInt
WTSUserConfigBrokenTimeoutSettingsInt
WTSUserConfigReconnectSettingsInt
WTSUserConfigModemCallbackSettingsInt
WTSUserConfigShadowingSettingsInt, indicates if user's session my be monitored
WTSUserConfigfTerminalServerRemoteHomeDirInt,

Return Value

The type of the returned value is dependent on the config class requested