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
| # Yubikey Manager script to disable Yubico OTP on multiple YubiKeys | |
| # | |
| # To run: | |
| # ykman.exe script --force disable_otp.py | |
| # | |
| # Once running, insert and remove YubiKeys as needed to disable Yubico OTP | |
| # When done, type Control-C to exit | |
| from ykman import scripting | |
| from yubikit.management import (CAPABILITY, ManagementSession) |
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
| # A script to populate an Entra ID security group with users who have | |
| # migrated at least one device to EMDM-Cloud | |
| # Place the group name here | |
| $groupName = "EMDM Cloud Users" | |
| # Connect to MS Graph | |
| Connect-MgGraph -Scopes "Device.Read.All, Group.Read.All, GroupMember.ReadWrite.All" -NoWelcome | |
| # Retreive current group members |
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
| # A script to report on those mobile users who have not yet | |
| # migrated to EMDM-Cloud | |
| # Select the input data file | |
| Add-Type -AssemblyName System.Windows.Forms | |
| $FileBrowser = New-Object System.Windows.Forms.OpenFileDialog -Property @{ | |
| Filter = 'CSV (Comma delimited) (*.csv)|*.csv' | |
| Title = 'Open CSV file' } | |
| $null = $FileBrowser.ShowDialog() |
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 Remove-Certificates { | |
| $usercerts = @() | |
| $exchangecerts = @() | |
| Write-Host "Connecting to Exchange Online" | |
| #used to connect to exchange online, must be customized for each tenant and certificate | |
| $ClientId = "" | |
| $Organization = "" | |
| $CertificateThumbprint = "" | |
| Try { |
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
| package ca.gc.ssc.cats; | |
| import com.sun.identity.saml2.plugins.DefaultIDPAttributeMapper; | |
| import com.sun.identity.saml2.common.SAML2Exception; | |
| import java.util.List; | |
| /** | |
| * This class <code>CATSv2IDPAttributeMapper</code> implements the | |
| * <code>IDPAttributeMapper</code> to return the only SAML Attribute | |
| * mandated by CATS v2 for insertion in the SAML Assertion. |