Guest jogging Posted March 13, 2008 Posted March 13, 2008 Hi buddies, my question is that how can I easily get TS session info including user name, client hostname, sesstion start time and s.th like that. I want to log these info to one of my database and generate the report for TS utilization.
Guest Pegasus \(MVP\) Posted March 13, 2008 Posted March 13, 2008 Re: How can I catch the TS session info(e.g user name or client name) and log them? "jogging" <v-xizha@microsoft.com> wrote in message news:%23sXiOfLhIHA.5780@TK2MSFTNGP06.phx.gbl... > Hi buddies, my question is that how can I easily get TS session info > including user name, client hostname, sesstion start time and s.th like > that. > > I want to log these info to one of my database and generate the report for > TS utilization. I have used this line of code in one of my logon scripts: if not "%ClientName%"=="" echo TS: %date% %time% %UserName% >> \\SomeServer\SomeShare\Logs\TS.txt
Guest jogging Posted March 14, 2008 Posted March 14, 2008 Re: How can I catch the TS session info(e.g user name or client name) and log them? It sounds like a good idea. But is there any more simple way? "Pegasus (MVP)" <I.can@fly.com.oz> wrote in message news:ez8p0MNhIHA.2304@TK2MSFTNGP05.phx.gbl... > > "jogging" <v-xizha@microsoft.com> wrote in message > news:%23sXiOfLhIHA.5780@TK2MSFTNGP06.phx.gbl... >> Hi buddies, my question is that how can I easily get TS session info >> including user name, client hostname, sesstion start time and s.th like >> that. >> >> I want to log these info to one of my database and generate the report >> for TS utilization. > > I have used this line of code in one of my logon scripts: > if not "%ClientName%"=="" echo TS: %date% %time% %UserName% >> > \\SomeServer\SomeShare\Logs\TS.txt > >
Guest Pegasus \(MVP\) Posted March 14, 2008 Posted March 14, 2008 Re: How can I catch the TS session info(e.g user name or client name) and log them? A single-line instruction is about as simple as you will ever get it. What is the problem with this code? "jogging" <v-xizha@microsoft.com> wrote in message news:ObraT6ahIHA.1184@TK2MSFTNGP04.phx.gbl... > It sounds like a good idea. But is there any more simple way? > > "Pegasus (MVP)" <I.can@fly.com.oz> wrote in message > news:ez8p0MNhIHA.2304@TK2MSFTNGP05.phx.gbl... >> >> "jogging" <v-xizha@microsoft.com> wrote in message >> news:%23sXiOfLhIHA.5780@TK2MSFTNGP06.phx.gbl... >>> Hi buddies, my question is that how can I easily get TS session info >>> including user name, client hostname, sesstion start time and s.th like >>> that. >>> >>> I want to log these info to one of my database and generate the report >>> for TS utilization. >> >> I have used this line of code in one of my logon scripts: >> if not "%ClientName%"=="" echo TS: %date% %time% %UserName% >> >> \\SomeServer\SomeShare\Logs\TS.txt >> >> > >
Recommended Posts