Skip to content

This repository is a collection of custom scripts designed to streamline and enhance the management of applications via Microsoft Intune.

License

Notifications You must be signed in to change notification settings

ryou-365/intune-scripts-toolbox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 

Repository files navigation

intune-scripts-toolbox

This repository is a collection of custom scripts designed to streamline and enhance the management of applications via Microsoft Intune.


Overview

This repository contains various custom scripts for automating and simplifying tasks within Microsoft Intune. Each script is accompanied by a brief overview, usage instructions, and other relevant details. Contributions and improvements are welcome!


Repository Structure

intune-scripts-toolbox/
├── scripts/
│ ├── 7zip-detection.ps1
│ └── ... (other scripts)
└── README.md

Each script file in the scripts/ directory is intended for use in Intune deployment scenarios. Detailed information about each script is provided below.


Scripts

1. 7-Zip Custom Detection Script

  • Overview:
    This PowerShell script is intended for use as a custom detection rule when deploying 7-Zip as a Win32 app via Microsoft Intune. In scenarios where standard detection rules fall short—particularly when needing to verify specific version details for instances where older versions of 7-Zip have been previously deployed—this script provides a tailored solution to accurately detect the installed version.

  • Usage:

    1. Prepare your 7-Zip installer (EXE or MSI) by wrapping it into an .intunewin package. For detailed instructions on this process, please refer to Microsoft Learn documentation.
    2. In the Intune portal, when configuring the Win32 app deployment, choose to use a custom detection script under the detection rules section.
    3. Upload this script as your detection method to ensure that the correct version of 7-Zip is identified on target devices.
    4. Optionally specify a different version using the -ExpectedVersion parameter (defaults to 24.09).
    5. The script searches for 7z.exe first in C:\Program Files\7-Zip and then in C:\Program Files (x86)\7-Zip.
  • Note:
    This script addresses the limitation of standard detection rules, which may not capture version details effectively if a previous version of 7-Zip was installed. Customize the script further as needed to suit your environment's specific requirements.

Feel free to add new scripts following the structure above.

2. Daily New Users Report

  • Overview: Retrieves Azure AD users created within the last 24 hours and exports the results to daily_new_users.csv.

  • Usage: Execute daily-new-users.ps1 in a PowerShell session where the Microsoft Graph module is available. The account running the script must have the User.Read.All permission. Specify an output file with -OutputPath if desired, for example: .\daily-new-users.ps1 -OutputPath .\report.csv


How to Contribute

Contributions are welcome! To contribute:

  1. Fork the repository.
  2. Create a new branch for your feature or bugfix.
  3. Add your script along with a corresponding entry in the README.
  4. Submit a pull request for review.

Please follow the existing code style and documentation format.


License

This project is licensed under the MIT License.


About

This repository is a collection of custom scripts designed to streamline and enhance the management of applications via Microsoft Intune.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published