July 12, 20241 yr I have just found the following link and wanted to document it for everyone. There is a way to find out a lot of information about how a Windows SMB client is configured using Power Shell running in the Administrator mode. Here is the Link to the MS website with the information: https://learn.microsoft.com/en-us/powershell/module/smbshare/?view=windowsserver2022-ps If you want a PDF file of this information rather then through a HTML link, there is a link in the lower left-hand corner of this page. The Document is over 22,000 pages and almost 400MB in size. I found this command has some interesting information about your Windows SMB client is configured. Get-SmbClientConfiguration This document is not for everyone but I think folks who are trying to figure out how SMB works will have another tool to aid them. It may also provide insight into why you are having SMB issues with your SMB client. EDIT 2025-04-13: Change tile to add "... and Linux Samba Tools" These tools are described in the fourth post in this thread. The Linux Samba tools were added to this thread because it seemed like this thread with the tools for gaining information about the Windows SMB environment was the ideal place to include the Linux tools which do the same thing. Plus it was already a sticky post! Edited April 13, 20251 yr by Frank1940 Added " Informational Posting" to title
July 12, 20241 yr Author Another interesting command that will show the established connections between the Windows client and all of the servers is this one: Get-SmbConnection
January 2, 20251 yr Thanks for the findings. These commands might be helpful too: Get-SmbClientNetworkInterface Get-SmbShare
April 13, 20251 yr Author There are some Linux tools to get information and help in troubleshooting Samba problems. smbstatus and testparm What they do and how to use them is explained in the attached PDF file. Linux Samba tools.pdf Edited April 16, 20251 yr by Frank1940
September 22, 2025Sep 22 Frank, thanks for sending me this....I have scrolled through them and though I would try get client configuration.......it instantly open my main server, does that mean that my user account details that i have set up based on your instructions are ok?I actually think this may have over ridden everything.....grateful for your views
September 22, 2025Sep 22 Author 38 minutes ago, TopTrainer said:Frank, thanks for sending me this....I have scrolled through them and though I would try get client configuration.......it instantly open my main server, does that mean that my user account details that i have set up based on your instructions are ok?I actually think this may have over ridden everything.....grateful for your viewsPost this query in the original thread describing your problem. And post a screenshot of what you are seeing.
September 22, 2025Sep 22 I was unable to locate or even find my server using it's name or Ip address under the Network. I applied Get-SmbClientConfiguration to the powershell using administrator rights and my server opened immediately, I am unsure if this is a permanent connection and will not know until I close down and re-open tomorrow.But at least I have been able to connect, of course I have the same issues to connect to my older server too. Edited September 22, 2025Sep 22 by TopTrainer
September 22, 2025Sep 22 Sadly I have lost my samba connection, further proof everything is temporary totally unsatisfactory.
September 22, 2025Sep 22 This is even worse, the fact that I have had access to my server, and now by some divine interference I have not is totally intolerable.
September 22, 2025Sep 22 I Highly recommend reviewing the Microsoft learn docs...its also on the Microsoft learn page and documentation for Windows server, and windows client samba setups...Get-SmbClientConfiguration (SmbShare)Use this topic to help manage Windows and Windows Server technologies with Windows PowerShell.Yeah Documentation! Now if we can get windows form breaking Linux samba that would be great to :p Edited September 22, 2025Sep 22 by bmartino1
September 23, 2025Sep 23 19 hours ago, bmartino1 said:I Highly recommend reviewing the Microsoft learn docs...its also on the Microsoft learn page and documentation for Windows server, and windows client samba setups...Get-SmbClientConfiguration (SmbShare)Use this topic to help manage Windows and Windows Server technologies with Windows PowerShell.Yeah Documentation! Now if we can get windows form breaking Linux samba that would be great to :pim getting nowhere fast, the network path cant be found!
September 23, 2025Sep 23 17 minutes ago, TopTrainer said:im getting nowhere fast, the network path cant be found!to much back and forth, this is general information not a support post...SMB Windows settings available through Power Shell... and Linux Samba Tools--- Informational PostingRE-READ Title!Most of what your dealing with as I see it, is default windows samba behavior and linux samba settings that has been answered in other forum posts and have other pins...as example in the general post chat Which Is a Support area!https://forums.unraid.net/topic/77442-cannot-connect-to-unraid-shares-from-windows-10/So, Please make a general post with your diag and what PowerShell commands you used as i'd use the net map command as example to map the network share... a cmd command no PS, but PS can run...net use z: \\<unraid IP>\sharenameas example to make a path drive and permeant connection and saved between reboots and curent user sessions. TO me, as you misunderstand the powershell commands this post and the info in the learn documentation... https://learn.microsoft.com/en-us/powershell/module/smbshare/?view=windowsserver2025-psas theses would be used with GPO(Group Policy windows server) and scripted in a AD for when clients connect and are only active for the current user windows session of when the script that ran did what it did...Your use case and issues are on how you expected something to work when its not designd in that capacity...with out any other data what you ran what your tryign to do and in the wrong area about it... So Make a post (NOT HERE!) and @ me and I'll or another will help you else where.
January 7Jan 7 Note:Alot of the Get commands have Set commands.SmbShare commandsBlock-SmbClientAccessToServerBlock-SmbShareAccessClose-SmbOpenFileClose-SmbSessionDisable-SmbDelegationEnable-SmbDelegationGet-SmbBandwidthLimitGet-SmbClientAccessToServerGet-SmbClientCertificateMappingGet-SmbClientConfigurationGet-SmbClientNetworkInterfaceGet-SmbConnectionGet-SmbDelegationGet-SmbGlobalMappingGet-SmbMappingGet-SmbMultichannelConnectionGet-SmbMultichannelConstraintGet-SmbOpenFileGet-SmbServerAlternativePortGet-SmbServerCertificateMappingGet-SmbServerCertPropsGet-SmbServerConfigurationGet-SmbServerNetworkInterfaceGet-SmbSessionGet-SmbShareGet-SmbShareAccessGrant-SmbClientAccessToServerGrant-SmbShareAccessNew-SmbClientCertificateMappingNew-SmbGlobalMappingNew-SmbMappingNew-SmbMultichannelConstraintNew-SmbServerAlternativePortNew-SmbServerCertificateMappingNew-SmbShareRemove-SmbBandwidthLimitRemove-SmbClientCertificateMappingRemove-SmbComponentRemove-SmbGlobalMappingRemove-SmbMappingRemove-SmbMultichannelConstraintRemove-SmbServerAlternativePortRemove-SmbServerCertificateMappingRemove-SmbShareReset-SmbClientConfigurationReset-SmbServerConfigurationRevoke-SmbClientAccessToServerRevoke-SmbShareAccessSet-SmbBandwidthLimitSet-SmbClientCertificateMappingSet-SmbClientConfigurationSet-SmbPathAclSet-SmbServerAlternativePortSet-SmbServerCertificateMappingSet-SmbServerConfigurationSet-SmbShareUnblock-SmbClientAccessToServerUnblock-SmbShareAccessUpdate-SmbMultichannelConnection
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.