Skip to content

Instantly share code, notes, and snippets.

View kevinblumenfeld's full-sized avatar
🎯
Focusing

Kevin Blumenfeld kevinblumenfeld

🎯
Focusing
View GitHub Profile
<Objs Version="1.1.0.1" xmlns="http://schemas.microsoft.com/powershell/2004/04">
<Obj RefId="0">
<TN RefId="0">
<T>System.Collections.Hashtable</T>
<T>System.Object</T>
</TN>
<DCT>
<En>
<S N="Key">SourceApp</S>
<Obj N="Value" RefId="1">
This file has been truncated, but you can view the full file.
<?xml version="1.0" encoding="utf-8"?>
<edmx:Edmx Version="4.0" xmlns:edmx="http://docs.oasis-open.org/odata/ns/edmx">
<edmx:DataServices>
<Schema Namespace="microsoft.graph" Alias="graph" xmlns="http://docs.oasis-open.org/odata/ns/edm">
<EnumType Name="appliedConditionalAccessPolicyResult">
<Member Name="success" Value="0" />
<Member Name="failure" Value="1" />
<Member Name="notApplied" Value="2" />
<Member Name="notEnabled" Value="3" />
<Member Name="unknown" Value="4" />
<Objs Version="1.1.0.1" xmlns="http://schemas.microsoft.com/powershell/2004/04">
<Obj RefId="0">
<TN RefId="0">
<T>System.Collections.Hashtable</T>
<T>System.Object</T>
</TN>
<DCT>
<En>
<S N="Key">SourceApp</S>
<Obj N="Value" RefId="1">
function Add-CloudAddressFromExcel {
<#
.SYNOPSIS
Add email addresses to cloud only mailboxes
.DESCRIPTION
Add email addresses to cloud only mailboxes
.PARAMETER PathToExcel
File path to Excel
<#PSScriptInfo
.VERSION 7.3
.GUID e5989323-c2db-4dd0-b2e4-f172f84058a3
.AUTHOR Aaron Guilmette
.COMPANYNAME Microsoft
[Net.ServicePointManager]::SecurityProtocol = [Net.ServicePointManager]::SecurityProtocol -bor [Net.SecurityProtocolType]::Tls12
Install-Module @('PSWinDocumentation', 'PSWinDocumentation.AD', 'PSWriteWord', 'PSWriteExcel') -force
Import-Module PSWinDocumentation -force
Import-Module ActiveDirectory -force
Import-Module PSWinDocumentation.AD -Force
Import-Module PSWriteWord -Force
if ($null -eq $ADForest) {
$ADForest = Get-WinADForestInformation -Verbose -DontRemoveEmpty
}
#-------------------------------------------------------------#
#----Initial Declarations-------------------------------------#
#-------------------------------------------------------------#
Add-Type -AssemblyName PresentationCore, PresentationFramework
$Xaml = @"
<Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" Width="800" Height="400">
<Grid>
<Grid.RowDefinitions>
function Export-AzKeyVaultCertificate {
[CmdletBinding()]
param (
[parameter(Mandatory)]
[string]
$VaultName,
[Parameter(Mandatory)]
[string]
$CertName,
[Net.ServicePointManager]::SecurityProtocol = [Net.ServicePointManager]::SecurityProtocol -bor [Net.SecurityProtocolType]::Tls12
Install-Module Posh365 -force
Install-Module GPOZaurr -force
Install-Module Posh365 -force
Import-Module Posh365 -force
Import-Module GPOZaurr -force
Import-Module Posh365 -force
[Net.ServicePointManager]::SecurityProtocol = [Net.ServicePointManager]::SecurityProtocol -bor [Net.SecurityProtocolType]::Tls12
Install-Module @('PSWinDocumentation', 'PSWinDocumentation.AD', 'PSWriteWord', 'PSWriteExcel') -force
Import-Module PSWinDocumentation
Import-Module PSWinDocumentation.AD
Import-Module ActiveDirectory
# Import-Module DbaTools # (if you require SQL export)
# Those should automatically load
#Import-Module PSWriteWord
#Import-Module PSWriteExcel
#Import-Module ActiveDirectory