Skip to content

Latest commit

 

History

History
330 lines (239 loc) · 6.06 KB

File metadata and controls

330 lines (239 loc) · 6.06 KB

⚠️ Common Mistakes and Best Practices in Windows Server

🎯 What You'll Learn

  • Common configuration mistakes
  • Security best practices
  • Performance optimization tips
  • Troubleshooting strategies

📋 Prerequisites

  • Basic understanding of Windows Server
  • Experience with Active Directory
  • Knowledge of basic networking

🔍 Common Configuration Mistakes

1. Active Directory Mistakes

Mistake: Poor OU Structure

❌ Wrong Approach:

  • Flat OU structure
  • No logical grouping
  • Inconsistent naming

✅ Best Practice:

Domain
├── Users
│   ├── IT
│   ├── HR
│   └── Sales
├── Computers
│   ├── Workstations
│   └── Servers
└── Groups
    ├── Security
    └── Distribution

Mistake: Incorrect Group Nesting

❌ Wrong Approach:

  • Circular group nesting
  • Too many levels deep
  • Inconsistent group types

✅ Best Practice:

Groups
├── Department (Global)
│   ├── IT_Staff
│   └── HR_Staff
└── Resource (Domain Local)
    ├── Printer_Access
    └── Share_Access

2. Group Policy Mistakes

Mistake: GPO Overlap

❌ Wrong Approach:

  • Conflicting settings
  • Too many GPOs
  • Unclear inheritance

✅ Best Practice:

GPOs
├── Security (Enforced)
├── Desktop (Department)
└── Software (Specific)

Mistake: Poor GPO Design

❌ Wrong Approach:

  • One large GPO
  • Mixed settings
  • No testing

✅ Best Practice:

  • Separate GPOs by function
  • Test in lab first
  • Document settings

3. Security Mistakes

Mistake: Weak Passwords

❌ Wrong Approach:

  • Simple passwords
  • No complexity
  • Long expiration

✅ Best Practice:

Set-ADDefaultDomainPasswordPolicy -MinPasswordLength 12 `
                                 -ComplexityEnabled $true `
                                 -MaxPasswordAge 90

Mistake: Excessive Permissions

❌ Wrong Approach:

  • Everyone full control
  • Domain Users admin
  • No auditing

✅ Best Practice:

  • Follow least privilege
  • Regular permission review
  • Enable auditing

🔒 Security Best Practices

1. Account Security

  1. Password Policy

    • Minimum 12 characters
    • Complexity required
    • Regular changes
    • No password reuse
  2. Account Lockout

    • 5 failed attempts
    • 30-minute lockout
    • Automatic unlock
  3. Administrative Accounts

    • Separate admin accounts
    • No daily use
    • Regular review

2. Network Security

  1. Firewall Rules

    • Block by default
    • Allow by exception
    • Regular review
    • Document changes
  2. Remote Access

    • VPN required
    • MFA enabled
    • Limited access
    • Session monitoring

3. Data Security

  1. File Permissions

    • NTFS permissions
    • Share permissions
    • Regular audit
    • Access review
  2. Backup Strategy

    • Regular backups
    • Offsite storage
    • Test restoration
    • Document procedures

📊 Performance Optimization

1. Common Performance Issues

  1. High CPU Usage

    • Check processes
    • Review services
    • Optimize settings
    • Update drivers
  2. Memory Problems

    • Monitor usage
    • Check page file
    • Review applications
    • Optimize services
  3. Disk Issues

    • Check space
    • Monitor I/O
    • Defragment
    • Clean up

2. Optimization Tips

  1. Service Optimization

    Get-Service | Where-Object StartType -eq Automatic
  2. Startup Items

    Get-CimInstance Win32_StartupCommand
  3. Disk Cleanup

    cleanmgr /sageset:1
    cleanmgr /sagerun:1

🛠️ Troubleshooting Strategies

1. Systematic Approach

  1. Identify Problem

    • Gather symptoms
    • Check logs
    • Verify changes
    • Document findings
  2. Isolate Cause

    • Test components
    • Check dependencies
    • Verify settings
    • Review changes
  3. Implement Fix

    • Test solution
    • Document changes
    • Verify resolution
    • Update procedures

2. Common Tools

  1. Event Viewer

    Get-EventLog -LogName System -Newest 10
  2. Performance Monitor

    Get-Counter -Counter "\Processor(_Total)\% Processor Time"
  3. Network Tools

    Test-NetConnection -ComputerName server

📝 Documentation Best Practices

1. System Documentation

  1. Network Diagram

    • Physical layout
    • Logical structure
    • IP addressing
    • Services
  2. Configuration Records

    • Server settings
    • GPO configurations
    • Security policies
    • Backup procedures

2. Change Management

  1. Change Log

    • Date and time
    • Changes made
    • Reason for change
    • Person responsible
  2. Procedures

    • Step-by-step guides
    • Verification steps
    • Rollback procedures
    • Emergency contacts

🎯 Best Practices Summary

1. Planning

  • Document requirements
  • Create test environment
  • Plan for growth
  • Consider security

2. Implementation

  • Follow procedures
  • Test changes
  • Document actions
  • Verify results

3. Maintenance

  • Regular updates
  • Security patches
  • Performance monitoring
  • Backup verification

📚 Next Steps

🔗 Additional Resources