# Check Windows edition
$os = Get-CimInstance Win32_OperatingSystem
Write-Host "=== WINDOWS ===" -ForegroundColor Cyan
Write-Host $os.Caption
# Check file system
Write-Host "`n=== DISK C ===" -ForegroundColor Cyan
Get-Volume -DriveLetter C |
Select-Object DriveLetter, FileSystem, HealthStatus |
Format-Table
# Prepare laboratory folder
$dir = "$env:PUBLIC\Documents\EFS_LR5"
New-Item -ItemType Directory -Force -Path $dir |
Out-Null
# Create two test files
"Laboratory EFS - File 1 - User 1" |
Set-Content "$dir\File_1.txt" -Encoding UTF8
"Laboratory EFS - File 2 - User 2" |
Set-Content "$dir\File_2.txt" -Encoding UTF8
# Create screenshot folder
New-Item -ItemType Directory -Force `
-Path "$dir\screenshots" | Out-Null
Write-Host "`n=== FILES CREATED ===" -ForegroundColor Green
Get-ChildItem "$dir" |
Select-Object Name, Length
explorer.exe $dir