Microsoft
Software
Hardware
Network
Question : Under which username am I connected to a shared folder?
With the command 'net use' I can see which connections are made to other shared folders.
How can I see under which username I am connected to each of these shared folders?
Some more catchwords:
credentials, 'Log in as', 'Connect using a different user name';'shared drives'; 'network drive'
The reason:
for my question ist that I connect from one PC to several shared folders on various servers.
Sometimes I have no write access to a shared folder because i am already connected to this folder under a user name that has less access rights, maybe only the right to read. Now I would like to see which user name this is.
Answer : Under which username am I connected to a shared folder?
No problem, you can install WMIC on XP home.
You need Windows XP SP2 installation file.
Download it from Microsoft
http://www.microsoft.com/d
ownloads/d
etails.asp
x?
DisplayL
ang=en&Fam
ilyID=049c
9dbe-3b8e-
4f30-8245-
9e368d3cdb
5a
Save this batch script as Iwmic.bat without this two line with ***
************Script beginning************
@echo off
if (%1)==() goto HILFE
%1 /passive /x:%temp%
expand.exe "%temp%\I386\cimwin32.mf_"
"%windir%\system32\wbem\ci
mwin32.mfl
"
expand.exe "%temp%\I386\cimwin32.mo_"
"%windir%\system32\wbem\ci
mwin32.mof
"
expand.exe "%temp%\I386\cli.mo_" "%windir%\system32\wbem\cl
i.mof"
expand.exe "%temp%\I386\cliegali.mf_"
"%windir%\system32\wbem\cl
iegaliases
.mfl"
expand.exe "%temp%\I386\cliegali.mo_"
"%windir%\system32\wbem\cl
iegaliases
.mof"
expand.exe "%temp%\I386\csv.xs_" "%windir%\system32\wbem\cs
v.xsl"
expand.exe "%temp%\I386\hform.xs_" "%windir%\system32\wbem\hf
orm.xsl"
expand.exe "%temp%\I386\htable.xs_" "%windir%\system32\wbem\ht
able.xsl"
expand.exe "%temp%\I386\mof.xs_" "%windir%\system32\wbem\mo
f.xsl"
expand.exe "%temp%\I386\policman.dl_"
"%windir%\system32\wbem\po
licman.dll
"
expand.exe "%temp%\I386\provthrd.dl_"
"%windir%\system32\wbem\pr
ovthrd.dll
"
expand.exe "%temp%\I386\rawxml.xs_" "%windir%\system32\wbem\ra
wxml.xsl"
expand.exe "%temp%\I386\rsop.mo_" "%windir%\system32\wbem\rs
op.mof"
expand.exe "%temp%\I386\texttbl.xs_" "%windir%\system32\wbem\te
xttable.xs
l"
expand.exe "%temp%\I386\textvalu.xs_"
"%windir%\system32\wbem\te
xtvaluelis
t.xsl"
expand.exe "%temp%\I386\wmic.ex_" "%windir%\system32\wbem\wm
ic.exe"
expand.exe "%temp%\I386\wmicookr.dl_"
"%windir%\system32\wbem\wm
icookr.dll
"
expand.exe "%temp%\I386\wscenter.mo_"
"%windir%\system32\wbem\ws
center.mof
"
expand.exe "%temp%\I386\xml.xs_" "%windir%\system32\wbem\xm
l.xsl"
expand.exe "%temp%\I386\xslmap.xm_" "%windir%\system32\wbem\xs
l-mappings
.xml"
rd /s /q "%temp%\i386"
goto OVER
:HILFE
echo.
echo *** You need Service-Pack2-EXE on this Script. Thanks. ***
pause
:OVER
************Script end************
Put this Iwmic.bat file in same dir as your XP SP2 exe file and run it from CMD like this.
Iwmic.bat WindowsXP-KB835935-SP2-ENU
.exe
Change EXE name to match your file name if different, this while extract all file needed to run WMIC
To start CMD window you type CMD under Start > Run
And sorry if my name is scary, it has followed me sometime now.
Random Solutions
OSI Model: Data-Link Layer
What is the best free FTP site to use that will allow me to post and download large files?
VoIP over VPN from home to office
blackberry timeouts whilst travelling in europe
Monitoring and limiting internet use
Prevent users from accidently dialing 911
Change of MAC Address?
New Mail Server Config - Linux, Sendmail, SpamAssasin, MailScanner => exchange
DNS recursive test query failed
CISCO 877 Config -- GRE Tunnels/NAT -- How to assign second public IP to local IP?