mirror of
https://github.com/Microsoft/sql-server-samples.git
synced 2025-12-08 14:58:54 +00:00
46 lines
1.1 KiB
JSON
46 lines
1.1 KiB
JSON
{
|
|
"schemaVersion": "1.0",
|
|
"name": "CmdShell check",
|
|
"version": "1.0.0",
|
|
"rules": [
|
|
{
|
|
"id": "DirectoryCheck",
|
|
"itemType": "definition",
|
|
"target": {
|
|
"type": "Server",
|
|
"platform": "Windows",
|
|
"engineEdition": "OnPremises",
|
|
"version": "[11.0,)"
|
|
},
|
|
"displayName": "CmdShell probe",
|
|
"description": "This is an example of cmdshell probe type. ",
|
|
"message": "Empty list",
|
|
"level": "Warning",
|
|
"condition": "@stdout",
|
|
"probes": [
|
|
"ListOfDirectoryFilesAndSubdirectories"
|
|
]
|
|
},
|
|
{
|
|
"id": ["DefaultRuleset"],
|
|
"itemType": "override",
|
|
"enabled": false
|
|
}
|
|
],
|
|
"probes": {
|
|
"ListOfDirectoryFilesAndSubdirectories": [
|
|
{
|
|
"type": "CmdShell",
|
|
"target": {
|
|
"type": "Server",
|
|
"platform": "Windows",
|
|
"engineEdition": "OnPremises",
|
|
"version": "[11.0,)"
|
|
},
|
|
"implementation": {
|
|
"command": "dir"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
} |