Add config.json
This commit is contained in:
70
config.json
Normal file
70
config.json
Normal file
@@ -0,0 +1,70 @@
|
||||
{
|
||||
"snipe-it": {
|
||||
"url": "https://your-snipeit/api/v1",
|
||||
"apikey": "API_KEY",
|
||||
"verify-ssl": false
|
||||
},
|
||||
"search-term": {
|
||||
"type": "serial",
|
||||
"value": "(Get-CimInstance Win32_BIOS).SerialNumber"
|
||||
},
|
||||
"fields": {
|
||||
"custom_fields": {
|
||||
"_snipeit_os_6": {
|
||||
"name": "OS Version",
|
||||
"enabled": true,
|
||||
"ps_command": "(Get-CimInstance Win32_OperatingSystem).Caption"
|
||||
},
|
||||
"_snipeit_cpu_3": {
|
||||
"name": "CPU Model",
|
||||
"enabled": true,
|
||||
"ps_command": "(Get-CimInstance Win32_Processor | Select-Object -First 1).Name"
|
||||
},
|
||||
"_snipeit_ram_4": {
|
||||
"name": "RAM (GB)",
|
||||
"enabled": true,
|
||||
"ps_command": "[math]::Round((Get-CimInstance Win32_ComputerSystem).TotalPhysicalMemory / 1GB, 0)"
|
||||
},
|
||||
"_snipeit_disk_model_28": {
|
||||
"name": "Disk Model",
|
||||
"enabled": true,
|
||||
"ps_command": "(Get-CimInstance Win32_DiskDrive | Select-Object -First 1).Model"
|
||||
},
|
||||
"_snipeit_disk_size_5": {
|
||||
"name": "Disk Size (GB)",
|
||||
"enabled": true,
|
||||
"ps_command": "[math]::Round((Get-CimInstance Win32_DiskDrive | Select-Object -First 1).Size / 1GB, 0)"
|
||||
},
|
||||
"_snipeit_disk_type_27": {
|
||||
"name": "Disk Type",
|
||||
"enabled": true,
|
||||
"ps_command": "($d=Get-CimInstance Win32_DiskDrive|Select-Object -First 1)|Out-Null;if($d.Model -match 'NVMe'){'NVMe'}elseif($d.MediaType -match 'SSD'){'SATA SSD'}elseif($d.MediaType -match 'HDD'){'HDD'}else{'Unknown'}"
|
||||
},
|
||||
"_snipeit_mac_address_1": {
|
||||
"name": "MAC Address",
|
||||
"enabled": true,
|
||||
"ps_command": "(Get-CimInstance Win32_NetworkAdapterConfiguration | Where-Object { $_.MACAddress -ne $null -and $_.IPEnabled -eq $true } | Select-Object -First 1).MACAddress"
|
||||
},
|
||||
"_snipeit_teamviewer_29": {
|
||||
"name": "TeamViewer ID",
|
||||
"enabled": true,
|
||||
"ps_command": "($tvId=(Get-ItemProperty 'HKLM:\\SOFTWARE\\WOW6432Node\\TeamViewer' -ErrorAction SilentlyContinue).ClientID); if(-not $tvId){$tvId=(Get-ItemProperty 'HKLM:\\SOFTWARE\\TeamViewer' -ErrorAction SilentlyContinue).ClientID};$tvId.ToString().Trim()"
|
||||
},
|
||||
"_snipeit_mechcentral_29": {
|
||||
"name": "MechCentral ID",
|
||||
"enabled": true,
|
||||
"ps_command": "$nodeId = (Get-ItemProperty 'HKLM:\\SOFTWARE\\Open Source\\Mesh Agent' -ErrorAction SilentlyContinue).NodeId; if (-not $nodeId) { 'Brak' } else { \"https://meshcentral.example.org/?viewmode=10&gotonode=$nodeId\" }"
|
||||
},
|
||||
"_snipeit_morphisec_24": {
|
||||
"name": "Morphisec",
|
||||
"enabled": true,
|
||||
"ps_command": "$v=(Get-ItemProperty 'HKLM:\\SOFTWARE\\Morphisec\\ServerConfig' -ErrorAction SilentlyContinue).product_version_s; if(-not $v){'brak'} else{$v}"
|
||||
},
|
||||
"_snipeit_rapid7_23": {
|
||||
"name": "Rapid7",
|
||||
"enabled": true,
|
||||
"ps_command": "$v=(Get-ItemProperty 'HKLM:\\SOFTWARE\\Rapid7\\Insight Agent' -ErrorAction SilentlyContinue).Semantic_Version; if(-not $v){'brak'} else{$v}"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user