@@ -136,7 +136,7 @@ func (*WindowsCollector) checkAntiVirus() bool {
136136}
137137
138138// checkSystemUpdated checks Windows Update status
139- func (c * WindowsCollector ) checkSystemUpdated () bool {
139+ func (* WindowsCollector ) checkSystemUpdated () bool {
140140 // Check for pending updates using PowerShell
141141 output , err := runCommand (powershellCmd , powershellFlag ,
142142 "Get-WUList -MicrosoftUpdate | Measure-Object | Select-Object -ExpandProperty Count" )
@@ -155,7 +155,7 @@ func (c *WindowsCollector) checkSystemUpdated() bool {
155155}
156156
157157// checkDiskEncryption checks BitLocker status
158- func (c * WindowsCollector ) checkDiskEncryption () bool {
158+ func (* WindowsCollector ) checkDiskEncryption () bool {
159159 // Check BitLocker status
160160 output , err := runCommand ("manage-bde" , "-status" )
161161 if err != nil {
@@ -167,7 +167,7 @@ func (c *WindowsCollector) checkDiskEncryption() bool {
167167}
168168
169169// checkScreenLock checks screen lock/password policy
170- func (c * WindowsCollector ) checkScreenLock () bool {
170+ func (* WindowsCollector ) checkScreenLock () bool {
171171 // Check screen saver settings
172172 output , err := runCommand ("reg" , "query" ,
173173 "HKEY_CURRENT_USER\\ Software\\ Policies\\ Microsoft\\ Windows\\ Control Panel\\ Desktop" ,
@@ -215,5 +215,5 @@ func (c *WindowsCollector) isOSSupported(version string) bool {
215215 majorVersion := parseInt (parts [0 ])
216216
217217 // Support Windows 10 and later
218- return majorVersion >= 10
218+ return majorVersion >= MinWindowsVersion
219219}
0 commit comments