Windows 11 File Sharing
Create and manage network shares with security best practices
Lab: Map a Legacy Guest SMB Share
Some legacy NAS devices and lab environments still rely on guest access. This exercise walks you through temporarily enabling insecure guest logons on Windows 11 so you can connect to \\<server-ip>\public with the nobody account. Revert the change when you are finished—guest access removes SMB authentication.
Option A: PowerShell (All Editions)
- Press Win + R, type
powershell, then press Enter to launch an elevated session. - Allow guest connections with:
Set-SmbClientConfiguration -EnableInsecureGuestLogons $true - Map the guest share (replace
<server-ip>with the target host):net use P: \\<server-ip>\public /user:nobody nobody /persistent:yes - Open File Explorer, browse to the new P: drive, and download a file to confirm read access. Record the results and captured screenshots for your lab report.
Set-SmbClientConfiguration -EnableInsecureGuestLogons $false and disconnect withnet use P: /delete.Option B: Group Policy (Windows 11 Pro/Enterprise)
- Press Win + R, type
gpedit.msc, and press Enter. - Navigate to Computer Configuration → Administrative Templates → Network → Lanman Workstation.
- Double-click Enable insecure guest logons, set it to Enabled, then click Apply and OK.
- (Optional hardening) Go to Computer Configuration → Windows Settings → Security Settings → Local Policies → Security Options and set Microsoft network client: Digitally sign communications (always) to Disabled if guest devices still fail to connect.
- Close the editor and restart the PC to apply the policy.
- Use File Explorer or the PowerShell mapping command above to connect to
\\<server-ip>\publicas nobody and download a test file. - Document the policy path, the command used to connect, and a screenshot of the mapped drive in your lab notes.
Lab: Install Windows Subsystem for Linux (WSL)
WSL brings a Linux userland to Windows. This guided exercise uses Windows PowerShell to enable the platform, install Ubuntu, and verify that the distribution is available. You will work in an elevated PowerShell session—capture your commands and screenshots for assessment.
- Launch Windows PowerShell (Admin). Note the banner reminding you to upgrade to the latest version at
https://aka.ms/PSWindows. - Navigate to your lab workspace with:
cd C:\Users\micha\OneDrive\Documents\github - Attempt to run a tool (for example
codex) to verify it is not yet available. Record the resulting CommandNotFoundException for your lab notes. - Check WSL availability:The system reports that WSL is not installed—press any key when prompted to begin the installer. If UAC prompts for elevation, accept it.
wsl - Observe the automated install:
- Download and install Windows Subsystem for Linux 2.6.1.
- Enable the VirtualMachinePlatform optional component via DISM.
- Verify the status post-install:The output states that no distributions are installed yet.
wsl - Enumerate available distributions:Capture the table that includes Ubuntu, Debian, Kali, Fedora, and other options.
wsl --list --online - Install Ubuntu with:PowerShell confirms that the operation succeeded and reminds you to reboot.
wsl --install Ubuntu - Reboot the machine. After the restart, launch
wslto complete Ubuntu’s first-run setup (user creation, password, updates). Document the first-login prompts and final confirmation that the distribution is active.
wsl still reports “no installed distributions” after reboot, re-runwsl --install Ubuntu from an elevated session and ensure virtualization is enabled in BIOS.What is File Sharing?
Windows file sharing uses the SMB (Server Message Block) protocol to allow multiple users to access files and folders over a network.
Key Concepts:
- Share Permissions: Control network access to the shared folder
- NTFS Permissions: Control local and network access at the file system level
- Effective Permissions: The most restrictive combination of both
- Administrative Shares: Hidden shares ending with $ (C$, ADMIN$, IPC$)
Prerequisites:
- Windows 11 Pro or higher (Home edition has limitations)
- Administrator access
- Network discovery enabled on private network
- File and printer sharing enabled
⚠️ Security Warning
Never share sensitive data without:
- Proper authentication
- Encryption (SMB 3.0+)
- Audit logging
- Regular permission reviews
Quick Start
- Enable network discovery
- Right-click folder → Share
- Add users with permissions
- Access via \\\\ComputerName\\ShareName