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
<# | |
Author : Nitish Kumar ([email protected]) | |
Performs Entra ID Assessment | |
version 1.0 | 17/07/2024 Initial version | |
version 1.2 | 28/07/2024 Application details performance improvements | |
Disclaimer: This script is designed to only read data from the entra id and should not cause any problems or change configurations but author do not claim to be responsible for any issues. Do due dilligence before running in the production environment | |
#> | |
Import-module Microsoft.Graph.Authentication |
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
#Requires -Version 3.0 | |
<# | |
Author : Nitish Kumar | |
Gets WSUS Inventory | |
version 1.0 | 18/07/2023 Initial version | |
The script is kept as much modular as possible so that functions can be modified or added without altering the entire script | |
It should be run as administrator and preferably Enterprise Administrator to get complete data. Its advised to run in demonstration environment to be sure first | |
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
#!/bin/bash | |
# Author : Nitish Kumar | |
# Download and Install Prometheus, Grafana and Node Exporter | |
# version 1.0 | 24/10/2022 Initial version | |
# version 1.1 | 25/10/2022 Removed sudo from inside the script, added remove-services function | |
PROMETHEUS_VERSION=$(curl -s https://raw.githubusercontent.com/prometheus/prometheus/master/VERSION) | |
NODE_VERSION=$(curl -s https://raw.githubusercontent.com/prometheus/node_exporter/master/VERSION) |
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
# Author : Nitish Kumar | |
# Email Alert Function | |
# version 1.0 | 19/10/2022 | |
# Function to send email | |
function EmailAlert () { | |
[CmdletBinding()] | |
param( | |
[parameter(mandatory=$true)]$RecipientAddressTo, | |
[parameter(mandatory=$true)]$SenderAddress, |
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
#Requires -RunAsAdministrator | |
#Requires -Version 3.0 | |
#Requires -Modules BitsTransfer | |
# Author : Nitish Kumar | |
# Download and Install Prometheus, Grafana and Windows Exporter | |
# version 1.0 | 19/10/2022 Initial version | |
# version 1.1 | 21/10/2022 Cleaned up the script to supress error messages, added override switch | |
# version 1.2 | 21/10/2022 Added a crude way to update Prometheus configuration for adding nodes at mass scale | |
# version 1.3 | 22/10/2022 Added remove services option. Sorted nssm output encoding issue to find install path | |
# version 1.4 | 23/10/2022 Ready for mass deployment, sample code parts added |