CWiCCS (read as QUICKS) - Checking and Controlling and Fixing some Windows settings from defined / whitelisted system config profiles
-
Compatibility list
- Windows Server 2012/2016/2019
- Windows 10 (tested on Windows Pro)
- Powershell v5, v6, v7
-
Enabled Feature Lists
-
Local Group Policy settings
- Password Policy
- Max password age
- Min password age
- Minimum password length
- Password history
- Lockout threshold
- Lockout duration
- Audit Policy
- Security Options
- Password Policy
-
Port listing
-
System Services
-
Installed Software List
Also CWiCCS checks:
- NTP (Windows Time)
- SMB
- Network options
- File Sharing status
- IPv6 status
- Current internal IP
- UAC
- PowerShell execution policies
- Windows Update status
- Users list
- Name
- Enabled/Disabled status
- LockOut
- Password Expires
- Password Last Set
- Last Logon
- OS info
- Windows Version
- Last boot time
- How long OS is Up
- Found errors counting
CWiCCS can generate:
- HTML reports
- Working status logs
CWiCCS tested on native Windows PowerShell on the:
- Windows 2012R2
- Windows 2016
- Windows 2019
On the PowerShell versions v5, v6
You can clone repository:
git clone https://github.com/m0zgen/cwiccs.git
or
You can download archive from repository - Code > Download as ZIP
After download CWiCCS, please cd
to cwiccs
folder and them run script:
.\cwiccs.ps1
Run with bypass powershell execution policy:
powershell.exe -ep Bypass .\cwiccs.ps1 -report
Unlock files:
Get-ChildItem <cwiccs-master folder path> -recurse | Unblock-File
Command:
c:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
Script parameters:
-ExecutionPolicy Bypass <path to shared folder>\cwiccs.ps1
Get-ChildItem -Path C:\Share\cwiccs-master\*.ps1 -Recurse | Set-AuthenticodeSignature -Certificate (Get-ChildItem -Path Cert:\CurrentUser\My\ -CodeSigningCert)
Additional info:
You can use PSExec utility:
PsExec.exe -s -i @c:\Share\servers.txt -e cmd /c "powershell -ExecutionPolicy Bypass \\dc01\Share\cwiccs-master\cwiccs.ps1"
or:
PsExec.exe -s -i @c:\Share\servers.txt Powershell -File \\dc01\Share\cwiccs-master\cwiccs.ps1
Available options:
- cwiccs.ps1 [-autofix] [-report] [-elevate] [-admin] [-profile] <profilename> [-profilelist] [-help]
- [-elevate] and [-admin] arguments it is same (made for convenience)
CWiCCS can works with two modes:
- from simple user
- from elevated (Administrator) mode
-autofix
option can works only from elevated mode
You can define own profile. CWiCCS use as default DEFAUL profile. Defined profiles:
- Features
- Gpo
- Ports
- Services
- Software
You can send me feature requests to forum.sys-adm.in with new topic which contains #cwiccs
tag