close
要在 Windows 11 停止共享資料夾,有以下三種作法。
電腦管理(Computer Management)
1. 在桌面找到「我的電腦(This PC)」按滑鼠右鍵,點選「管理(Manage)」或直接搜尋「電腦管理(Computer Management)」。
2. 在左側列,展開「共享資料夾(Shared Folders)」,點選「分享(Shares)」,在右側選取要停止的「共享名稱」,按滑鼠右鍵「停止(Stop Sharing)」。
命令提示字元(Command Prompt)
使用 net share 命令查看共享資料夾,再使用 net share MyShare /delete 命令刪除共享資料夾。
Microsoft Windows [Version 10.0.22631.3235] (c) Microsoft Corporation. All rights reserved. D:\>net share Share name Resource Remark ------------------------------------------------------------------------------- C$ C:\ Default share D$ D:\ Default share IPC$ Remote IPC ADMIN$ C:\WINDOWS Remote Admin MyShare D:\MyShare The command completed successfully. D:\>net share MyShare /delete
PowerShell
使用 Get-SmbShare 命令查看共享資料夾,再使用 Remove-SmbShare -Name "MyShare" 命令刪除共享資料夾。
Windows PowerShell Copyright (C) Microsoft Corporation. All rights reserved. Install the latest PowerShell for new features and improvements! https://aka.ms/PSWindows Loading personal and system profiles took 846ms. PS D:\> Get-SmbShare Name ScopeName Path Description ---- --------- ---- ----------- ADMIN$ * C:\WINDOWS Remote Admin C$ * C:\ Default share D$ * D:\ Default share IPC$ * Remote IPC MyShare * D:\MyShare PS D:\> Remove-SmbShare -Name "MyShare"
文章標籤
全站熱搜
留言列表