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
Set(varAudioFile,"https://alexholmeset.sharepoint.com/sites/test321/Shared%20Documents/newfile2.wav"); | |
Set(varStartTimer, false);Set(playAudio, true) |
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
Set(varAudioFile, "");Set(varPhoto, JSON(Image1.Image, JSONFormat.IncludeBinaryData)); | |
Set(varPhotoBase64Only, Mid(varPhoto, Find(",", varPhoto)+1, Len(varPhoto) - Find(",", varPhoto) -1 )); | |
Set(newadata, VoiceVisionFlow.Run(varPhotoBase64Only)); | |
Set(varStartTimer, true);Reset(Audio1) |
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
$bearerToken = "Enter Token" | |
$Headers = @{ Authorization=("Bearer " + $bearerToken) } | |
$CommunityName = "Demo" | |
$Private = "false" | |
$CreateCommunity = Invoke-RestMethod –Uri "https://www.yammer.com/api/v1/groups.json?name=$CommunityName&private=$Private" –Method Post -Headers $headers | |
$body = @" |
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
# This function takes a path to a file as a parameter and returns the base64 string of that file. | |
function Get-Photo { | |
param ( | |
[Parameter(Mandatory=$true)] | |
[string]$path | |
) | |
[convert]::ToBase64String((get-content $path -Raw -AsByteStream)) | |
} | |
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
# Name: SetCalendarPermissions.ps1 | |
# Description: This script sets the default calendar permissions for all users in a Microsoft 365 organization to LimitedRead. | |
# Author: Alexander Holmeset | |
# CoContributor: Simon Skotheimsvik, http://skotheimsvik.no, https://x.com/SSkotheimsvik | |
# Version: 1.0 | |
# Date: 2021-09-01 | |
# Blog: https://alexholmeset.blog | |
# X(Twitter): https://x.com/AlexHolmeset | |
# Set the permission level to be set on the calendars. |
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
#Requires -Modules Microsoft.Graph.Authentication | |
#Requires -Modules Microsoft.Graph.Applications | |
# Install the module. (You need admin on the machine.) | |
# Install-Module Microsoft.Graph | |
# Set Static Variables | |
$TenantID="enter here" | |
$AutomationAccountDisplayname ="enter here" | |
# Define dynamic variables |
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
# This function takes a path to a file as a parameter and returns the base64 string of that file. | |
function Get-Photo { | |
param ( | |
[Parameter(Mandatory=$true)] | |
[string]$path | |
) | |
[convert]::ToBase64String((get-content $path -Raw -AsByteStream)) | |
} | |
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
{ | |
"type": "object", | |
"properties": { | |
"id": { | |
"type": "string" | |
}, | |
"object": { | |
"type": "string" | |
}, | |
"created": { |
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
{ | |
"messages": [ | |
{ | |
"role": "system", | |
"content": "You are a helpful assistant. You reply to all emails for me. My signature should be Alexander Holmeset, Senior Cloud Consultant, Contoso. You can reply in all languages. format your reply in html" | |
}, | |
{ | |
"role": "user", | |
"content": "@{item()?['bodyPreview']}. The following is a history of previous emails, dont add it to your reply. @{variables('EmailHistory')}" | |
} |
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
# Connect to Azure Account | |
Connect-AzAccount | |
# Connect to Microsoft Teams | |
Connect-MicrosoftTeams | |
# Connect to Exchange Online | |
Connect-ExchangeOnline | |
# Connect to SharePoint Online | |
$SPConnection = Connect-PnPOnline -Url https://alexholmeset-admin.sharepoint.com -Interactive | |
# Get access token for Microsoft Graph API |