Configure Shares - Paiet/Tech-Journal-for-Everything GitHub Wiki

Configure Shares

Creating and Configure Shares in GUI

  • Way 1

    • Create Test folder on C:
    • Rt Click share with...
    • Gives UNC path to share
    • Look at Security tab note permissions OS assigns
  • Way 2

    • Rt Click folder/Properties
    • Sharing (same wizard as before)
    • Lets look use Adavanced
    • Enter Share Name note we didn't have that option in way 1
    • Look at Options note slight different options
    • Look at Security tab note no NTFS permissions given
    • Deafult Permissions
  • Way 3

    • Computer Management
    • Notes Shares listed on left hand pane
    • Launch Wizard
    • Note top 3 options are like what we saw before, No NTFS permissions Generated
    • Also have offline options
    • Customize option gives easy share access

Configure offline files

  • Rt click to access share properties
  • Share tab/Advanced Sharing/Caching
  • Server Manager/Initial Setup or PowerShell
  • Switch to a client
  • Map a network Drive
  • Rt Click mapped drive select make avail offline
  • Then files can be modified. Changes stored under folder on C: then synced * when back on LAN.
  • Can be managed via group policy.

Manage Shares Via Server Manager

  • To take full advantage of management capabilities use the File and Storage Services blade in Server Manager.
  • Alhto the Storage Service role is installed by default with Server 2016 you must install the File Server role Service prior which happens when you create a folder in file explorer

Configure SMB share and session settings using Windows PowerShell Get-help -Smb New-SMBShare -Name test -Path C:\sharefun2 -FullAccess Everyone Get-SMBShare Get-SmbShareAccess -Name test Grant-SmbShareAccess -name test -accountname democo\zmemos -AccessRight Read Revoke-SmbShareAccess -name test -accountname democo\zmemos Block-SmbShareAccess -name test -accountname democo\zmemos Unblock-SmbShareAccess -name test -accountname democo\zmemos Get-SmbSession Remove- SmbShare -Name namegoeshere Get-SMBShare -Name test | Get-SmbShareAccess -Name tbennett Get-SMBShare | Get-SmbShareAccess |OGV Get-SmbServerConfiguration Set-SmbServerConfiguration -EnableSMB1Protocol $false Get-SmbClientConfiguration Configure SMB server and SMB client configuration settings using Windows PowerShellConfigure Share Permissions

Network File System (NFS)

  • Another example of file-level access protocol supported by Windows. It works in the same way as SMB for managing shared folders and files hosted on a Windows computer.

  • To be able to create NFS shares on a Windows device, the Server for NFS feature must be installed first. Add-WindowsFeature FS-FileServer, FS-NFS-Service -IncludeManagementTools

  • Open File and Storage Services > Servers screen, click Shares

  • On the File and Storage Services > Servers screen, under the VOLUME section click TASKS and select New Share.

  • Select NFS Share - Quick and click Next

  • To create NFS shares you must install the Server for NFS role.

    • Add Server Roles Wizard >File and Storage Services if it has not already been installed.
    • Under File and iSCSI Services > File Server and Server for NFS > Click Add Features to include selected NFS features.

Get-NfsShare Get-NfsShare LinuxFolder1 | fl *