|
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/downloads/details.aspx?DisplayLang=en&FamilyID=049c9dbe-3b8e-4f30-8245-9e368d3cdb5a
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\cimwin32.mfl" expand.exe "%temp%\I386\cimwin32.mo_" "%windir%\system32\wbem\cimwin32.mof" expand.exe "%temp%\I386\cli.mo_" "%windir%\system32\wbem\cli.mof" expand.exe "%temp%\I386\cliegali.mf_" "%windir%\system32\wbem\cliegaliases.mfl" expand.exe "%temp%\I386\cliegali.mo_" "%windir%\system32\wbem\cliegaliases.mof" expand.exe "%temp%\I386\csv.xs_" "%windir%\system32\wbem\csv.xsl" expand.exe "%temp%\I386\hform.xs_" "%windir%\system32\wbem\hform.xsl" expand.exe "%temp%\I386\htable.xs_" "%windir%\system32\wbem\htable.xsl" expand.exe "%temp%\I386\mof.xs_" "%windir%\system32\wbem\mof.xsl" expand.exe "%temp%\I386\policman.dl_" "%windir%\system32\wbem\policman.dll" expand.exe "%temp%\I386\provthrd.dl_" "%windir%\system32\wbem\provthrd.dll" expand.exe "%temp%\I386\rawxml.xs_" "%windir%\system32\wbem\rawxml.xsl" expand.exe "%temp%\I386\rsop.mo_" "%windir%\system32\wbem\rsop.mof" expand.exe "%temp%\I386\texttbl.xs_" "%windir%\system32\wbem\texttable.xsl" expand.exe "%temp%\I386\textvalu.xs_" "%windir%\system32\wbem\textvaluelist.xsl" expand.exe "%temp%\I386\wmic.ex_" "%windir%\system32\wbem\wmic.exe" expand.exe "%temp%\I386\wmicookr.dl_" "%windir%\system32\wbem\wmicookr.dll" expand.exe "%temp%\I386\wscenter.mo_" "%windir%\system32\wbem\wscenter.mof" expand.exe "%temp%\I386\xml.xs_" "%windir%\system32\wbem\xml.xsl" expand.exe "%temp%\I386\xslmap.xm_" "%windir%\system32\wbem\xsl-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.
|
|
|
|