This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
.SYNOPSIS | |
Gets the BitLocker compliance in SCCM. | |
.DESCRIPTION | |
Gets the BitLocker compliance and policy with SCCM custom HWI extensions. | |
.NOTES | |
Created by Ioan Popovici | |
Requires SCCM with SSRS/SQL, HWI Extension | |
.LINK | |
BlogPost: https://SCCM.Zone/SEC-BitLocker-Compliance-And-Policy |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//——————————————— // BitLocker Policy //——————————————— | |
//-- Set default Namespace and delete the Win32Reg_BitLockerPolicy if it already exists | |
#PRAGMA Namespace ("\\\\.\\Root\\CIMv2") | |
#PRAGMA DeleteClass ("Win32Reg_BitLockerPolicy", NOFAIL) | |
//-- Create custom class | |
//- Class properties | |
[DYNPROPS] | |
Class Win32Reg_BitLockerPolicy |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//——————————————— // BitLocker Status //——————————————— | |
//-- Set default Namespace and delete the Win32_EncryptableVolume_Ext if it already exists | |
#PRAGMA Namespace ("\\\\.\\Root\\CIMv2") | |
#PRAGMA DeleteClass ("Win32_EncryptableVolume_Ext", NOFAIL) | |
//-- Create custom class | |
//- Class Qualifiers | |
[ | |
Description ("The Win32_EncryptableVolume_Ext class contains information about the BitLocker status. You can use this information for BitLocker reporting."): ToInstance, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<# | |
.SYNOPSIS | |
Exports data from the SCCM database. | |
.DESCRIPTION | |
Exports data from the SCCM database and formats it for telegraf. | |
.PARAMETER Server | |
Specifies the server name. | |
.PARAMETER Database | |
Specifies the database name. | |
.PARAMETER ServerCollectionID |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[[inputs.exec]] | |
commands = ["powershell C:/Telegraf_Scripts/Export-CMDBToTelegraf.ps1 -Server 'SomeSCCMDBServer' -Database 'CM_SomeSiteCode' -ServerCollectionID 'SomeServerCollectionID' -WorkstationCollectionID 'SomeWorkstationCollectionID'"] | |
interval = "20s" | |
timeout = "30s" | |
data_format = "influx" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
.SYNOPSIS | |
Lists the installed software. | |
.DESCRIPTION | |
Lists the installed software by user selection (Device, Publisher or Name). | |
Supports filtering and exclusions by multiple software names using comma separated values and sql wildcards. | |
.NOTES | |
Created by Ioan Popovici. | |
Requires ufn_csv_String_Parser custom function. | |
Part of a report should not be run separately. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SendMail | From | To | CC | SMTPServer | SMTPPort | ||
---|---|---|---|---|---|---|---|
Yes | SCCM <[email protected]> | [email protected] | [email protected] | mail.test.com | 25 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DeviceName | CollectionName | ||
---|---|---|---|
TST01 | MWT.TST.Servers.Scripted.GroupA | ||
TST02 | MWT.TST.Servers.Scripted.GroupB |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SendMail | From | To | CC | SMTPServer | SMTPPort | ||
---|---|---|---|---|---|---|---|
Yes | SCCM <[email protected]> | [email protected] | [email protected] | mail.test.com | 25 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Yes | SCCM <[email protected]> | [email protected] | [email protected] | mail.test.com | 25 |
---|