Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

SMB Windows settings available through Power Shell... and Linux Samba Tools--- Informational Posting

Featured Replies

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 by Frank1940
Added " Informational Posting" to title

  • Author

Another interesting command that will show the established connections between the Windows client and all of the servers is this one:

Get-SmbConnection

 

  • Frank1940 changed the title to SMB Windows settings available through Power Shell--- Informational Posting
  • JonathanM pinned this topic
  • 5 months later...

Thanks for the findings. These commands might be helpful too:

Get-SmbClientNetworkInterface

image.thumb.png.81ce622a6678477495fe8a8012a563bc.png

 

Get-SmbShare

image.png.41336f6aa39d86ada05ee0f46f609c48.png

  • 3 months later...
  • 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 by Frank1940

  • Frank1940 changed the title to SMB Windows settings available through Power Shell... and Linux Samba Tools--- Informational Posting
  • 5 months later...

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

  • 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 views

Post this query in the original thread describing your problem. And post a screenshot of what you are seeing.

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 by TopTrainer

Sadly I have lost my samba connection, further proof everything is temporary totally unsatisfactory.

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.

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...

image.png

No image preview

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 by bmartino1

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...

image.png

No image preview

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

im getting nowhere fast, the network path cant be found!

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 Posting
RE-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>\sharename

as 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-ps

as 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.

  • 3 months later...

Note:

Alot of the Get commands have Set commands.

SmbShare commands

Block-SmbClientAccessToServer

Block-SmbShareAccess

Close-SmbOpenFile

Close-SmbSession

Disable-SmbDelegation

Enable-SmbDelegation

Get-SmbBandwidthLimit

Get-SmbClientAccessToServer

Get-SmbClientCertificateMapping

Get-SmbClientConfiguration

Get-SmbClientNetworkInterface

Get-SmbConnection

Get-SmbDelegation

Get-SmbGlobalMapping

Get-SmbMapping

Get-SmbMultichannelConnection

Get-SmbMultichannelConstraint

Get-SmbOpenFile

Get-SmbServerAlternativePort

Get-SmbServerCertificateMapping

Get-SmbServerCertProps

Get-SmbServerConfiguration

Get-SmbServerNetworkInterface

Get-SmbSession

Get-SmbShare

Get-SmbShareAccess

Grant-SmbClientAccessToServer

Grant-SmbShareAccess

New-SmbClientCertificateMapping

New-SmbGlobalMapping

New-SmbMapping

New-SmbMultichannelConstraint

New-SmbServerAlternativePort

New-SmbServerCertificateMapping

New-SmbShare

Remove-SmbBandwidthLimit

Remove-SmbClientCertificateMapping

Remove-SmbComponent

Remove-SmbGlobalMapping

Remove-SmbMapping

Remove-SmbMultichannelConstraint

Remove-SmbServerAlternativePort

Remove-SmbServerCertificateMapping

Remove-SmbShare

Reset-SmbClientConfiguration

Reset-SmbServerConfiguration

Revoke-SmbClientAccessToServer

Revoke-SmbShareAccess

Set-SmbBandwidthLimit

Set-SmbClientCertificateMapping

Set-SmbClientConfiguration

Set-SmbPathAcl

Set-SmbServerAlternativePort

Set-SmbServerCertificateMapping

Set-SmbServerConfiguration

Set-SmbShare

Unblock-SmbClientAccessToServer

Unblock-SmbShareAccess

Update-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.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.