Skip to content

A PowerShell script that gets PowerShell script logs for Intune managed computers.

Notifications You must be signed in to change notification settings

mallockey/Get-IntuneScriptLogs

Repository files navigation

Get-IntuneScriptLogs

Update

If you receive an error about not being able to access one of the DLLs, confirm the two DLLs are not blocked.

Description

A PowerShell script that utilizes the Graph API to easily get script run data from Intune managed computers.

Features

Running the script with no parameters will give all all script run data for every computer.

.\Get-IntuneScriptLogs.ps1

Usage

The script has two parameters, ComputerName and ScriptName

.\Get-IntuneScriptLogs.ps1 -ComputerName 'MALLOC-navhugr' -ScriptName 'Set-BaseLineStandard

Usage

Additional Info

Two DLL files are required to get an Access token from Azure, I've included those files in the repository so the script will automatically load them and use them. If the files are not there it will look for the Azure AD module for the DLLs and if not, attempt to install the AzureAD module to get the DLLs that way. Shoutout to all the people working on the PowerShell Intune Samples repo. I've used a slightly modified version of the Get-AuthToken function.

About

A PowerShell script that gets PowerShell script logs for Intune managed computers.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published