Skip to content

Instantly share code, notes, and snippets.

Alex Asplund AlexAsplund

  • Sweden
Block or report user

Report or block AlexAsplund

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View Copy-CustomADUser.ps1
<#
.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'
View Send-AzureIdentityRiskLogsToGelf.ps1
<#
.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
View Import-CalendarFromPublicFolder.ps1
<#
.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 meetingresource1@contoso.com
After that it wil take the calendar from -PublicFolderPath and copy the items in it to meetingresource1@contoso.com calendar.
The last two actions renames the public folder calendar to 'Not used - *DATE* - <DisplayName>'
View WindowsShellOLEProperties.txt
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
@AlexAsplund
AlexAsplund / Get-WindowsUpdateInfo.ps1
Created Feb 17, 2018
Fetches info about windows updates, hotfixes and windows version
View Get-WindowsUpdateInfo.ps1
param(
[Parameter(Mandatory=$True,Position=0)]
[Array]$ComputerName,
[Parameter(Mandatory=$True,Position=1)]
[String]$OutFile,
[Parameter(Position=2)]
[PSCredential]$Credential
)
You can’t perform that action at this time.