This file contains 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
$header = @" | |
<style> | |
h1 { | |
font-family: Arial, Helvetica, sans-serif; | |
color: #296940; | |
font-size: 28px; | |
} | |
h2 { | |
font-family: Arial, Helvetica, sans-serif; |
This file contains 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/sh | |
echo "First, install repository addition dependencies" | |
sudo apt update | |
sudo apt install software-properties-common gnupg2 curl | |
echo "Import repository GPG key" | |
curl https://apt.releases.hashicorp.com/gpg | gpg --dearmor > hashicorp.gpg | |
sudo install -o root -g root -m 644 hashicorp.gpg /etc/apt/trusted.gpg.d/ |
This file contains 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
az aks get-credentials --resource-group k8s-demo-ss --name k8s-demo-cluster-ss --file kubeconfig-ss |
This file contains 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
# Get CSV content | |
$records = Import-Csv C:\Temp\M365Groups_IOwn.csv -Delimiter "," | |
# Variables Declaration | |
$Links = "username_of_user_to_be_removed" | |
# Create arrays for skipped and failed users | |
$GroupData = @() | |
#$ProcessedGroups = @() | |
#$SkippedGroups = @() |
This file contains 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
<# | |
This script will add a new proxy SMTP address to the AD multi-value attribute proxyAddresses. | |
The format of the new address is <SamAccountName>@newDomain.com | |
How to use it: | |
Change the following variables accordingly | |
OU where you want accounts to be processed. | |
$searchbase = "OU=Test,DC=Contoso,DC=local" |
This file contains 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 | |
Copy-ADGroup-Members.sp1 - Copy Group members from source to destination AD Group | |
.DESCRIPTION | |
This PowerShell script will copy members from source group to a destination group specified below. | |
.NOTES | |
Written by: Andre Barbosa de Amaral |
This file contains 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 | |
Get-GroupMembership-Report-by-OU.ps1 - Generate Group Membership Report by OU | |
.DESCRIPTION | |
This PowerShell script will get all groups by a specified OU and generate a CSV report on the specified folder containing the columns "Name", "MemberGUID", "MemberOf", "GroupGUID". | |
Before running the script change the $ou and the $logFolder variables. | |
.OUTPUTS | |
Results are output to a CSV text log file. |
This file contains 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: Andre Barbosa de Amaral | |
Requirements for this script to work: | |
- Notepadd++ | |
- ConnectM365Services.psm1 module installed | |
Get the module here -> https://gist.github.com/heyvoon/afb3e081f6395b47732e9555ec934715 | |
!! Change the variables below accordingly !! |
This file contains 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
<# MORE INFO | |
https://o365reports.com/2019/10/05/connect-all-office-365-services-powershell | |
INSTALATION: | |
Copy this file under "C:\Program Files\WindowsPowerShell\Modules\ConnectM365Services" folder. | |
Run "Import-Module -name ConnectM365Services" | |
#> | |
Function ConnectM365 { |
This file contains 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: Andre Barbosa de Amaral | |
Peaces needed to the following to work: | |
- Notepadd++ | |
- ConnectM365Services.psm1 module installed | |
Get the module here -> https://gist.github.com/heyvoon/afb3e081f6395b47732e9555ec934715 | |
!! Change the AD Sync Server name on the Delta function below to your own server !! |
NewerOlder