Viewing shares, sessions and open files, cmd example?
The command prompt on Windows allows you to view / query shared folders and current sessions / open files!
The solution is quite simple with the NET SHARE command, if you do not want to use the standard FsMgmt.msc
Windows Sharing Tool , here is a solution that administrators using via Remote Desktop / Server to for example remote access to a Microsoft Windows Server. But you can test that as a standard user.
The listing of shared folders and devices (printer, scanner, ....)!
The NET SHARE command will make the resources of a server / desktop PC available to network users. When used without options, displays information about all shared folders and other resources (such as printers, scanners, plotters ) on the computer. For each Windows Share component, the devices share names and / or share names of folders and pathnames are displayed.
Listing used shared files!
ID Path Username Qty. the blockages
169 C:\Users\Nenad\Music\Folder1\ Nenad H 0
184 C:\Users\Nenad\Music\Folder1\ Nenad H 0
The command completed successfully.
With NET FILE without specifying arguments, all files being accessed are displayed. You can use parameters to close a shared file and remove the file locks. When used without options, the open files are listed on a Windows machine. The list contains the ID of an open file (FILE ID), as well as the directory of the file, the username it accesses, and the number of locks on the file.
CLOSE closes a file opened by the share and removes file locks.
C:\Windows>NET FILE 184 /CLOSE
The command was executed successfully.
Tip: Enter this command on the Windows machine where the file is shared.
In the help file of ... NET FILE
and .. NET SHARE
you will find the overview of the command parameters and other options.
FAQ 38: Updated on: 10 July 2020 20:23
In Windows you can copy via COPY command without file explorer, files and directories without additional software Start the cmd.exe and use the command
Time controlled Autostart of Windows programs In new Windows OS you can use SCHTASK to start programs at a certain time Start the cmd.exe and use the command "SCHTASK" in
The fastest way to run or start the command prompt in every Windows System, is via RUN-Dialog in Windows. Please start via Keyboard-Shortcut [Windows-Logo+R]
Find Your IP Address Quickly in every Windows OS, the solution is to simple for every User Account Please start the command Prompt cmd.exe and use the
The solution is simple to Delete and Overwrite files and folder permanently in every Windows OS at XP Please feel free and use cipher for this cipher
The solution to scan all protected system files and replaces incorrect versions with correct Microsoft versions in all Windows Systems. If you want scan
»» My question is not there in the FAQ
|Asked questions on this answer:|
- Show open files in Server 2019, 2016 ... overview of the currently open files of the Windows share server?
- Where are all the folders and files that are currently accessible to Windows listed in order to determine in real time which user is currently using which file?
- Does Microsoft i's Shared Folders Administration have an overview of the shares that simultaneously shows all active client connections to this share?
- Which users have access, an overview of which user has access to which file?
- Recognize shared folder sessions, an overview of all sessions that are currently active?
- I want to show open files on the Windows server as administrators and know that it is possible to display files opened on the server by the user, what is usually possible on a file server and shares for different folders?
- Access to the share listing to ask the appropriate users to close the files?
Keywords: windows, console, viewing, shares, sessions, open, files, example, command, prompt, view, query, shared, folders, current, share, Questions, Answers, Software