Perform the following steps:
- Open Notepad++ or any text editor.
- In order to create a Windows check for a custom item, we need to begin and end the check with the custom_item tag:
- Now, we need to identify the required metadata attributes and define them. In this case, we will go with description and info:
<custom_item> description: "Free disk space in system partition#C drive" info: "Powershell command will output the free space available on C drive"</custom_item>
- Now, we need to define the type of check we need to perform. Nessus executes all the NASL windows commands on PowerShell, and so the type of the check would be AUDIT_POWERSHELL:
<custom_item>type: AUDIT_POWERSHELL description: "Free disk ...