Werbung: SecurityConsole.de verwaltet Ihre Computer mit Security Essentails aus der Cloud!
30 Tage kostenfrei testen und 20% Rabatt für Ihre Bestellung mit Promocode: WBF2685582
(Promocode gültig bis 31.12.2011)

Group:  English: Windows Server » microsoft.public.windows.terminal_services
Thread: How can I check the mapped drives of the user session?

HTVi
TV Discussion Newsgroups

How can I check the mapped drives of the user session?
Kanth 12/29/2008 6:01:01 AM
Hi,

Is there any way to check the user mapped drives for the user's session?

- Kanth
www.datahint.com
Re: How can I check the mapped drives of the user session?
"Hank Arnold (MVP)" <rasilon[ at ]aol.com> 12/29/2008 12:24:55 PM
Kanth wrote:
[Quoted Text]
> Hi,
>
> Is there any way to check the user mapped drives for the user's session?
>
> - Kanth
> www.datahint.com

It's not clear to me what you want. Are you asking what drives will be
mapped automatically or manually after logon? Are we talking domain or
Work Group? Local workstation, Terminal Server or Citrix?

--

Regards,
Hank Arnold
Microsoft MVP
Windows Server - Directory Services
Re: How can I check the mapped drives of the user session?
"jolteroli" <jolt1976[ at ]gmx.net> 12/29/2008 5:46:31 PM
if it is what i think, this might help:

[ at ]echo off & setlocal enabledelayedexpansion

for %%f in (

"\\tsclient\C"
"\\tsclient\D"
"\\tsclient\E"
"\\tsclient\F"
"\\tsclient\G"
"\\tsclient\H"
"\\tsclient\I"
"\\tsclient\J"
"\\tsclient\K"
"\\tsclient\L"
"\\tsclient\M"
"\\tsclient\N"
"\\tsclient\O"
"\\tsclient\P"
"\\tsclient\Q"
"\\tsclient\R"
"\\tsclient\S"
"\\tsclient\T"
"\\tsclient\U"
"\\tsclient\V"
"\\tsclient\W"
"\\tsclient\X"
"\\tsclient\Y"
"\\tsclient\Z"

) do (

:: remove dbl'quotes
set p=%%f
set p=!p:"=!

if exist "!p!\." (
:: do something with the share, delete recursively, search for
password files and pin's... ;)
echo user %USERNAME% has mapped drive !p! local...
)
)

you must test for each and any drive letter because the \\tsclient is not
``enumeratable''...

-jolt

"Kanth" <Kanth[ at ]discussions.microsoft.com> schrieb im Newsbeitrag
news:CC3F02AD-366B-4D6F-9D83-F72F9C76EAB8[ at ]microsoft.com...
[Quoted Text]
> Hi,
>
> Is there any way to check the user mapped drives for the user's session?
>
> - Kanth
> www.datahint.com

Re: How can I check the mapped drives of the user session?
"Lanwench [MVP - Exchange]" <lanwench[ at ]heybuddy.donotsendme.unsolicitedmailatyahoo.com> 12/30/2008 5:46:00 AM
Kanth wrote:
[Quoted Text]
> Hi,
>
> Is there any way to check the user mapped drives for the user's
> session?
>
> - Kanth
> www.datahint.com

Use a login script so you can *control* them? ;-)


Re: How can I check the mapped drives of the user session?
Kanth 12/30/2008 8:50:01 AM
Sorry for the confusion. Scenario is like that, user will connect the
applications using citrix, I just want to know which drives are mapped on the
server when a particular user connected to the application.

- Kanth
www.datahint.com


"Hank Arnold (MVP)" wrote:

[Quoted Text]
> Kanth wrote:
> > Hi,
> >
> > Is there any way to check the user mapped drives for the user's session?
> >
> > - Kanth
> > www.datahint.com
>
> It's not clear to me what you want. Are you asking what drives will be
> mapped automatically or manually after logon? Are we talking domain or
> Work Group? Local workstation, Terminal Server or Citrix?
>
> --
>
> Regards,
> Hank Arnold
> Microsoft MVP
> Windows Server - Directory Services
>
Re: How can I check the mapped drives of the user session?
"Hank Arnold (MVP)" <rasilon[ at ]aol.com> 12/30/2008 10:59:27 AM
One more question... Do you want to know for information or do you plan
to use it in your program?

--

Regards,
Hank Arnold
Microsoft MVP
Windows Server - Directory Services

Kanth wrote:
[Quoted Text]
> Sorry for the confusion. Scenario is like that, user will connect the
> applications using citrix, I just want to know which drives are mapped on the
> server when a particular user connected to the application.
>
> - Kanth
> www.datahint.com
>
>
> "Hank Arnold (MVP)" wrote:
>
>> Kanth wrote:
>>> Hi,
>>>
>>> Is there any way to check the user mapped drives for the user's session?
>>>
>>> - Kanth
>>> www.datahint.com
>> It's not clear to me what you want. Are you asking what drives will be
>> mapped automatically or manually after logon? Are we talking domain or
>> Work Group? Local workstation, Terminal Server or Citrix?
>>
>> --
>>
>> Regards,
>> Hank Arnold
>> Microsoft MVP
>> Windows Server - Directory Services
>>

Home | Search | Terms | Imprint Contact
Newsgroups Reader - provided by WiredBox.Net
Suche nach Orten, Städten, Postleitzahlen, Vorwahlen, Kfz-Kennzeichen