Home
Operating System
Windows
Linux
Tutorial
Windows Server
About
☰
Share Folder (windows server)
# Create Share Folder
cd W: mkdir ShareFolder
✏️ Edit
📋 Copy
Copied!
# Create the SMB Share
New-SmbShare ` -Name "ShareFolder" ` -Path "W:\ShareFolder" ` -ReadAccess "GroupName"
✏️ Edit
📋 Copy
Copied!
# Show the SMB Shares that you created
Get-SmbShare
✏️ Edit
📋 Copy
Copied!
## Remove SMB Share (ShareFolder)
Remove-SmbShare -Name "ShareFolder" -Force
✏️ Edit
📋 Copy
Copied!
## Create the SMB Share with multi user or group
New-SmbShare -Name "ShareFolder" -Path "W:\ShareFolder" ` -FullAccess "Administrator" ` -ChangeAccess "GroupName"
✏️ Edit
📋 Copy
Copied!
# Change Permission Access Folder for the user or group
Grant-SmbShareAccess -Name "ShareFolder" -AccountName "GroupName" -AccessRight Full -Force
✏️ Edit
📋 Copy
Copied!
# Verify Permissions Access Folder
Get-SmbShareAccess -Name "ShareFolder"
✏️ Edit
📋 Copy
Copied!
# Allow Folder Permissions (Security Tab) to user and group
icacls "W:\ShareFolder" /grant "server\GroupName:(OI)(CI)(M)"
✏️ Edit
📋 Copy
Copied!
# Verify Permissions (The Security Tab)
icacls "W:\ShareFolder"
✏️ Edit
📋 Copy
Copied!
# Find Computer Name of Windows Server
hostname
✏️ Edit
📋 Copy
Copied!
# (Client) Access Share Folder with UNC path
\\Server-Computer\ShareFolder
✏️ Edit
📋 Copy
Copied!
# (Client) Map the Share Folder to a specific Drive Letter
net use P: \\Server-Computer\ShareFolder /persistent:yes
✏️ Edit
📋 Copy
Copied!
Labels
all
(31 )
autocad
(3 )
css
(2 )
linux
(5 )
op_system
(18 )
website
(4 )
windows
(14 )
windowsServer
(27 )