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
param( | |
[Parameter(Mandatory=$True,Position=0)] | |
[Array]$ComputerName, | |
[Parameter(Mandatory=$True,Position=1)] | |
[String]$OutFile, | |
[Parameter(Position=2)] | |
[PSCredential]$Credential | |
) |
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
System.Audio.ChannelCount | |
System.Audio.EncodingBitrate | |
System.Audio.PeakValue | |
System.Audio.SampleRate | |
System.Audio.SampleSize | |
System.Calendar.Duration | |
System.Calendar.IsOnline | |
System.Calendar.IsRecurring | |
System.Calendar.Location | |
System.Calendar.OptionalAttendeeAddresses |
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 | |
Script that imports a public folder calendar to a mailbox. | |
.DESCRIPTION | |
Script that imports a public folder calendar to a mailbox. | |
Need EWS api installed and Offce365 admin rights | |
.EXAMPLE | |
This will give the $ExchangeCredential.Username account FullAccess permissions to [email protected] | |
After that it wil take the calendar from -PublicFolderPath and copy the items in it to [email protected] calendar. | |
The last two actions renames the public folder calendar to 'Not used - *DATE* - <DisplayName>' |
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 | |
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 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 | |
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 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
Class AdhcResult { | |
[string]$Source | |
[string]$TestName | |
[bool]$Pass | |
$Was | |
$ShouldBe | |
[string]$Category | |
[string]$Message | |
$Data | |
[string[]]$Tags |
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
Function New-AdhcResult { | |
[cmdletbinding()] | |
param( | |
# Source of the result. The computer that was tested | |
[parameter(ValueFromPipelineByPropertyName)] | |
[string]$Source = $env:COMPUTERNAME, | |
# Name of the test | |
[parameter(Mandatory,ValueFromPipelineByPropertyName)] | |
[string]$TestName, |
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: Alex Asplund | |
Description: | |
Will perform a series of health checks on AD. | |
Designed to be ran on a Domain Controller as a Domain Admin | |
Uses WSMAN, LDAP, RPC etc to speak to other DomainControllers. | |
#> |
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
$PRTGUrl = "http://prtg.contoso.com:5050/" | |
################################# | |
# Functions | |
################################# | |
function New-PRTGResult { | |
param( | |
[string]$Channel, | |
[string]$Value, | |
[string]$Float, |
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
param( | |
# User = ClientId Pass = Secret | |
[parameter(Mandatory)] | |
[PSCredential]$Credential, | |
[parameter(Mandatory)] | |
$TenantName | |
[parameter(Mandatory)] | |
$GelfServer |
OlderNewer