win32ts.WTSSetUserConfig

WTSSetUserConfig(ServerName, UserName, ConfigClass)

Changes user configuration

Parameters

ServerName : PyUnicode

Name ot terminal server

UserName : PyUnicode

Name of user

ConfigClass : int

Type of information to be set, win32ts.WTSUserConfig*

ConfigClass Type of data required


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,