windows_baseline icon indicating copy to clipboard operation
windows_baseline copied to clipboard

windows基线脚本(powershell)

Results 2 windows_baseline issues
Sort by recently updated
recently updated
newest added

你好!在64位Windows7下运行windows.ps1报错: PS C:\github_files\windows_baseline> .\windows.ps1 赋值表达式无效。赋值运算符的左侧需为可赋值给变量或属性等的内容。 所在位置 C:\github_files\windows_baseline\windows.ps1:48 字符: 41 $config_line = $config[$i] -split "=

#屏幕保护程序启动时间 $Key = 'HKEY_CURRENT_USER\Control Panel\Desktop' $name = "ScreenSaveTimeOut" $config = (Get-ItemProperty -Path "Registry::$Key" -ErrorAction Stop).$name if($config -le "600") { $data.code = "1" $projectdata = @{"msg"="屏幕保护程序启动时间策略符合标准";} $data['project']+=$projectdata } else { $data.code...