Cách bật, tắt File and Printer Sharing Windows

File and Printer Sharing cho phép máy tính của bạn chia sẻ các tập tin, thư mục hoặc máy in với các máy tính khác được kết nối cùng mạng. Windows sử dụng các loại mạng khác nhau Domain, Private, và Public để sử dụng File and Printer Sharing. Và người dùng có thể chọn bật hoặc tắt chia sẻ cho từng loại riêng biệt. Dưới đây là hướng dẫn thực hiện.

Bật hoặc tắt File and Printer Sharing qua cài đặt Windows

Bước 1:

Đầu tiên bạn nhấn tổ hợp phím Windows + I để mở Settings, sau đó chúng ta nhấn chọn vào mục Network & internet bên trái giao diện.

Chỉnh kết nối Internet Windows 11

Nhìn sang bên cạnh chúng ta kéo xuống dưới rồi nhấn Advanced sharing settings.

Advanced sharing settings

Bước 2:

Tiếp tục người dùng nhấn Advanced sharing setting ở giao diện mới như hình.

Advanced sharing settings

Lúc này bạn sẽ thấy tùy chọn File and Printer Sharing ở Private networks và Public networks để chúng ta kích hoạt vào một trong tùy chọn mạng bạn muốn sử dụng.

Bật File and Printer Sharing

Bật hoặc tắt File and Printer Sharing bằng PowerShell

Chúng ta cần mở Windows Terminal bằng quyền Admin.

Để bật tính năng File and Printer Sharing Windows

Chúng ta sử dụng 1 trong lệnh dưới đây

All network profiles

Get-NetFirewallRule -Group '*-28502*' | Where-Object 'Profile' -Match 'Any' | Set-NetFirewallRule -Enabled 'True'

Domain network

Get-NetFirewallRule -Group '*-28502*' | Where-Object 'Profile' -Match 'Domain' | Set-NetFirewallRule -Enabled 'True'

Private network

Get-NetFirewallRule -Group '*-28502*' | Where-Object 'Profile' -Match 'Private' | Set-NetFirewallRule -Enabled 'True'

Public network

Get-NetFirewallRule -Group '*-28502*' | Where-Object 'Profile' -Match 'Public' | Set-NetFirewallRule -Enabled 'True'

Tắt chế độ File and Printer Sharing

All network profiles

Get-NetFirewallRule -Group '*-28502*' | Where-Object 'Profile' -Match 'Any' | Set-NetFirewallRule -Enabled 'False'

Domain network

Get-NetFirewallRule -Group '*-28502*' | Where-Object 'Profile' -Match 'Domain' | Set-NetFirewallRule -Enabled 'False'

Private network

Get-NetFirewallRule -Group '*-28502*' | Where-Object 'Profile' -Match 'Private' | Set-NetFirewallRule -Enabled 'False'

Public network

Get-NetFirewallRule -Group '*-28502*' | Where-Object 'Profile' -Match 'Public' | Set-NetFirewallRule -Enabled 'False'
Thứ Ba, 17/03/2026 17:59
51 👨 5.187
Xác thực tài khoản!

Theo Nghị định 147/2024/ND-CP, bạn cần xác thực tài khoản trước khi sử dụng tính năng này. Chúng tôi sẽ gửi mã xác thực qua SMS hoặc Zalo tới số điện thoại mà bạn nhập dưới đây:

Số điện thoại chưa đúng định dạng!
Số điện thoại này đã được xác thực!
Bạn có thể dùng Sđt này đăng nhập tại đây!
Lỗi gửi SMS, liên hệ Admin
0 Bình luận
Sắp xếp theo
    ❖ Windows 10