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 | |
Kopierar en användare | |
.DESCRIPTION | |
Kopierar en användare med hjälp av en hashtable för mappning av attributer. | |
Hashtable ska vara enligt format @{>SourceUserAttribute> = <New-ADUser parametername>} | |
Exempel: | |
$Hashtable = @{ | |
mail = 'EmailAddress' |
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 | |
Pulls Azure Identity Risk logs and sends them to a gelf-server through TCP. | |
.DESCRIPTION | |
Pulls Azure Identity Risk logs and sends them to a gelf-server. | |
Requires the PSGelf module (Install-Module -Name PSGELF). | |
AppCredentials should be supplied as Credential object with AppID as username and AppKey as password. | |
.EXAMPLE | |
PS C:\> .\Script.ps1 -AppCredential $Credential -TenantName mytenant.onmicrosoft.com -GelfServer gelf.domain.com -GelfPort <portnumber> | |
Explanation of what the example does |
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
param( | |
[Parameter(Mandatory=$True,Position=0)] | |
[Array]$ComputerName, | |
[Parameter(Mandatory=$True,Position=1)] | |
[String]$OutFile, | |
[Parameter(Position=2)] | |
[PSCredential]$Credential | |
) |
NewerOlder