|
1 | | -## 🖥️ ITSM-Templates-SVR Suite — Windows Server Management & Compliance |
| 1 | +## 🖥️ ITSM-Templates-SVR Suite |
| 2 | +### Windows Server Standardization · Domain Compliance · ITSM Automation |
2 | 3 |
|
3 | | -### 📝 Overview |
| 4 | + |
| 5 | + |
| 6 | + |
| 7 | + |
| 8 | + |
4 | 9 |
|
5 | | -The **ITSM-Templates-SVR** folder provides a suite of **PowerShell** and **VBScript** tools for Windows Server operations. These scripts automate provisioning, enforce IT compliance, and streamline routine administrative tasks in enterprise server environments. |
| 10 | +--- |
| 11 | + |
| 12 | +## 🧭 Overview |
| 13 | + |
| 14 | +Welcome to **ITSM-Templates-SVR** — a standardized automation framework built with **PowerShell and VBScript** to enforce **baseline configuration, security hardening, and operational compliance** across **Windows Server environments**. |
6 | 15 |
|
7 | | -- 🔧 **Server Hardening & Setup:** Automate secure baseline configurations and domain-ready deployments. |
8 | | -- ⚙️ **Registry & DNS Fixes:** Correct registry entries and enforce DNS re-registration. |
9 | | -- 📊 **Logging & Reports:** Scripts generate `.log` files and export `.csv` audit reports. |
10 | | -- 📦 **Reusable Templates:** Easily adaptable for new roles, time sync, and GPO resets. |
| 16 | +This suite mirrors the structure and governance model of **ITSM-Templates-WKS**, adapted for **server-class workloads**, including **member servers, infrastructure roles, and domain services**. |
11 | 17 |
|
12 | 18 | --- |
13 | 19 |
|
14 | | -## 🛠️ Prerequisites |
| 20 | +## 🌟 Key Features |
15 | 21 |
|
16 | | -1. ⚙️ **PowerShell Version:** PowerShell 5.1 or later |
17 | | - ```powershell |
18 | | - $PSVersionTable.PSVersion |
19 | | - ``` |
| 22 | +- 🖼️ **Admin-Friendly Execution** — Scripts designed for Infrastructure and Server teams (L2/L3) |
| 23 | +- 📝 **Structured Logging** — Logs saved to `C:\ITSM-Logs-SVR\` |
| 24 | +- 📊 **CSV & Audit Reports** — Inventories and compliance outputs |
| 25 | +- 🔒 **Security & Baseline Enforcement** — Hardened defaults aligned with enterprise policy |
| 26 | +- 📦 **Role-Oriented Templates** — Ready for File Servers, Application Servers, and Infrastructure roles |
20 | 27 |
|
21 | | -2. 🔑 **Administrator Privileges:** Required for domain changes, registry editing, and service control. |
| 28 | +--- |
22 | 29 |
|
23 | | -3. 🖥️ **RSAT Tools:** Remote Server Administration Tools are required |
24 | | - ```powershell |
25 | | - Get-WindowsCapability -Name RSAT* -Online | Add-WindowsCapability -Online |
26 | | - ``` |
| 30 | +## 📄 Script Overview |
27 | 31 |
|
28 | | -4. 🔧 **Execution Policy:** |
29 | | - ```powershell |
30 | | - Set-ExecutionPolicy RemoteSigned -Scope Process |
31 | | - ``` |
| 32 | +### Folder: `/BeforeJoinDomain/` |
32 | 33 |
|
33 | | -5. 📦 **Dependencies:** Ensure modules such as `ActiveDirectory` and `DHCPServer` are installed. |
| 34 | +| Script Name | Purpose | |
| 35 | +|------------|---------| |
| 36 | +| **ITSM-BeforeJoinDomain-SVR.ps1** | Pre-join server preparation: hostname, time sync, firewall baseline, WSUS, registry and role prerequisites. | |
34 | 37 |
|
35 | | ---- |
| 38 | +### Folder: `/AfterJoinDomain/` |
| 39 | + |
| 40 | +| Script Name | Purpose | |
| 41 | +|------------|---------| |
| 42 | +| **ITSM-AfterJoinDomain-SVR.ps1** | Post-join automation: DNS registration, GPO refresh, service validation, and domain alignment. | |
36 | 43 |
|
37 | | -## 📄 Script Descriptions (Alphabetical Order) |
| 44 | +### Folder: `/Assets/AdditionalSupportScripts/` |
38 | 45 |
|
39 | | -| Script Name | Description | |
40 | | -|-------------|-------------| |
| 46 | +| Script Name | Purpose | |
| 47 | +|------------|---------| |
41 | 48 | | **CheckServerRoles.ps1** | Lists installed roles/features for validation. | |
42 | | -| **ExportServerConfig.ps1** | Exports server config to `.csv` for documentation. | |
| 49 | +| **ExportServerConfig.ps1** | Exports server configuration to CSV. | |
43 | 50 | | **FixNTFSPermissions.ps1** | Repairs NTFS permission inconsistencies. | |
44 | 51 | | **InventoryServerSoftware.ps1** | Generates inventory of installed software. | |
45 | | -| **ITSM-DefaultServerConfig.ps1** | Applies secure standard configs (e.g., NTP, firewall). | |
46 | | -| **ITSM-DNSRegistration.ps1** | Forces DNS re-registration for AD. | |
47 | | -| **ITSM-HardenServer.ps1** | Hardens server post-domain join (SMBv1, local accounts, lockout). | |
48 | | -| **ITSM-ModifyServerRegistry.ps1** | Adjusts registry for compliance/security. | |
49 | | -| **ResetGPOSettings.ps1** | Restores default GPO-controlled settings. | |
50 | | -| **ServerTimeSync.ps1** | Syncs server time with DCs to prevent replication/auth issues. | |
| 52 | +| **ITSM-HardenServer.ps1** | Applies security hardening (SMB, accounts, protocols). | |
| 53 | +| **ResetGPOSettings.ps1** | Forces reapplication of domain GPOs. | |
| 54 | +| **ServerTimeSync.ps1** | Syncs server time with domain controllers. | |
| 55 | +| **UnjoinADServer-and-Cleanup.ps1** | Safely removes server from domain and cleans metadata. | |
51 | 56 |
|
52 | 57 | --- |
53 | 58 |
|
54 | | -## 🚀 Getting Started |
| 59 | +## 🧭 Execution Order Summary |
55 | 60 |
|
56 | | -```bash |
57 | | -git clone https://github.com/brazilianscriptguy/Windows-SysAdmin-ProSuite.git |
58 | | -``` |
| 61 | +1. Prepare OS and patch baseline |
| 62 | +2. Execute **ITSM-BeforeJoinDomain-SVR.ps1** |
| 63 | +3. Rename disks and validate storage layout |
| 64 | +4. Join domain using delegated account |
| 65 | +5. Execute **ITSM-AfterJoinDomain-SVR.ps1** |
| 66 | +6. Validate logs and compliance reports |
59 | 67 |
|
60 | | -1. **Navigate to:** |
61 | | - `Windows-SysAdmin-ProSuite/ITSM-Templates-SVR/` |
| 68 | +--- |
62 | 69 |
|
63 | | -2. **Read the Docs:** |
64 | | - Each script has usage notes in comments or a `README.md`. |
| 70 | +## 🏷️ Hostname Format (Servers) |
65 | 71 |
|
66 | | -3. **Run the Script:** |
67 | | - ```powershell |
68 | | - .\ScriptName.ps1 |
69 | | - ``` |
| 72 | +```text |
| 73 | +<LOC><ROLE><UNIT><ASSET> |
| 74 | +Example: MIASRVFILEO23017 |
| 75 | +``` |
70 | 76 |
|
71 | | -4. **Review Logs and Reports:** |
72 | | - Output files include `.log` and `.csv` formats for auditing and tracking. |
| 77 | +| Component | Meaning | |
| 78 | +|----------|---------| |
| 79 | +| LOC | Location code (e.g., MIA, BOS) | |
| 80 | +| ROLE | SRVFILE, SRVAPP, SRVDC | |
| 81 | +| UNIT | Organizational unit | |
| 82 | +| ASSET | Asset ID | |
73 | 83 |
|
74 | 84 | --- |
75 | 85 |
|
76 | | -## 📝 Logging and Output |
| 86 | +## 🚀 Getting Started |
77 | 87 |
|
78 | | -- 📄 **Logs:** |
79 | | - Each script outputs structured `.log` files for traceability and troubleshooting. |
| 88 | +```bash |
| 89 | +git clone https://github.com/brazilianscriptguy/Windows-SysAdmin-ProSuite.git |
| 90 | +``` |
80 | 91 |
|
81 | | -- 📊 **Reports:** |
82 | | - Configuration states and inventories are exported to `.csv`. |
| 92 | +```powershell |
| 93 | +cd Windows-SysAdmin-ProSuite/ITSM-Templates-SVR/ |
| 94 | +.\ScriptName.ps1 |
| 95 | +``` |
83 | 96 |
|
84 | 97 | --- |
85 | 98 |
|
86 | | -## 💡 Optimization Tips |
| 99 | +## 📝 Logging & Reporting |
87 | 100 |
|
88 | | -- ⏱️ **Automate with Task Scheduler:** Schedule script execution to enforce drift remediation. |
89 | | -- 🗂️ **Centralize Output:** Redirect logs and `.csv` reports to shared storage for compliance auditing. |
90 | | -- 🧩 **Customize Templates:** Modify hardening profiles per role (e.g., file server, domain controller). |
| 101 | +- **Logs:** `C:\ITSM-Logs-SVR\` |
| 102 | +- **Reports:** CSV exports per execution |
91 | 103 |
|
92 | 104 | --- |
93 | 105 |
|
94 | | -## ❓ Additional Assistance |
| 106 | +## 💡 Optimization Tips |
95 | 107 |
|
96 | | -These scripts are highly adaptable for custom infrastructures. Check embedded script headers and comments for configurable variables and behavior explanations. |
| 108 | +- 🔁 Schedule enforcement via Task Scheduler or GPO |
| 109 | +- 🗂️ Centralize logs to secured network share |
| 110 | +- 🧩 Clone templates per server role |
97 | 111 |
|
98 | 112 | --- |
99 | 113 |
|
100 | | -## 📂 Document Classification |
| 114 | +## 📌 Document Classification |
101 | 115 |
|
102 | | -**RESTRICTED:** For internal use within the organization's network only. |
| 116 | +**RESTRICTED:** Internal use only. Confidential to Infrastructure and Security teams. |
| 117 | + |
| 118 | +--- |
103 | 119 |
|
104 | 120 | © 2026 Luiz Hamilton Silva. All rights reserved. |
0 commit comments