Skip to content

added code to read configurations from a file called .secrets\config.json instead of having to edit the script #46

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 76 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
76 commits
Select commit Hold shift + click to select a range
5c37ac1
init v2.7
ugurkocde Dec 25, 2024
1c63857
No code changes made.
ugurkocde Dec 25, 2024
559d72c
No code changes made.
ugurkocde Dec 25, 2024
dd2fa1f
No code changes made.
ugurkocde Dec 25, 2024
873e192
No code changes made.
ugurkocde Dec 25, 2024
d45c4e3
No code changes made.
ugurkocde Dec 25, 2024
2c7b61c
added html export
ugurkocde Dec 25, 2024
34ba38e
update
ugurkocde Dec 25, 2024
20cb664
No code changes made.
ugurkocde Dec 25, 2024
453ff9f
added code to read configurations from a file called .secrets\config.…
zuhairmahd Dec 25, 2024
e59c257
changed the config file name to config-intune.json
zuhairmahd Dec 25, 2024
b61b771
No code changes made.
ugurkocde Dec 26, 2024
062d210
No code changes made.
ugurkocde Dec 27, 2024
e318478
Commented out HTML export script download and cleanup logic in Intune…
ugurkocde Dec 27, 2024
e77eea0
Enhance HTML report styling and functionality in html-export.ps1; upd…
ugurkocde Dec 27, 2024
ce160ed
Add tenant information retrieval and enhance HTML report layout in ht…
ugurkocde Dec 27, 2024
4804d04
Enhance HTML report generation and styling in html-export.ps1; add ne…
ugurkocde Dec 27, 2024
388cded
Enhance platform type detection and tooltip functionality in HTML rep…
ugurkocde Dec 27, 2024
f171491
Enhance HTML report interactivity and detail visibility in html-expor…
ugurkocde Dec 27, 2024
a1d4f50
update version
ugurkocde Dec 28, 2024
8b2d5a3
Release of Version 3.0
ugurkocde Dec 28, 2024
c940c64
Merge pull request #47 from ugurkocde/3.0.0
ugurkocde Dec 28, 2024
e9022b1
Refactor HTML report script download logic in IntuneAssignmentChecker…
ugurkocde Dec 28, 2024
13331c4
Update README.md to reflect changes in script version and enhance fea…
ugurkocde Dec 28, 2024
ecc4c8d
Update README.md to include PowerShell version requirements and insta…
ugurkocde Dec 28, 2024
b523156
Update demo section in README.md to indicate re-recording of video
ugurkocde Dec 28, 2024
32479a9
Update README.md to clarify script execution instructions for PowerSh…
ugurkocde Dec 28, 2024
2d9b5ed
little update :)
ugurkocde Dec 28, 2024
5a08124
Add SECURITY.md to outline vulnerability reporting and security best …
ugurkocde Dec 29, 2024
a5132e0
Add CONTRIBUTING.md to outline contribution guidelines and best pract…
ugurkocde Dec 29, 2024
1404d6f
Create CODE_OF_CONDUCT.md
ugurkocde Dec 29, 2024
ffe5870
Update html-export.ps1 to version 1.1 and add Applications to the report
ugurkocde Jan 3, 2025
d514ceb
Add App support for option 1
ugurkocde Jan 4, 2025
d973898
add option 3 back in
ugurkocde Jan 4, 2025
b337738
Add App support to option 3
ugurkocde Jan 4, 2025
591acb4
add app support for option 3
ugurkocde Jan 4, 2025
64a2b5b
add app support for option 2
ugurkocde Jan 4, 2025
442c765
add app support to option 5
ugurkocde Jan 4, 2025
7056cb5
add app support for option 6
ugurkocde Jan 4, 2025
9404c25
fix option 9
ugurkocde Jan 4, 2025
af84aed
bump version to 3.0.1
ugurkocde Jan 4, 2025
ad85f12
Merge pull request #51 from ugurkocde/3.0.1
ugurkocde Jan 4, 2025
c8d571c
update version URL to use refs/heads/main for consistency
ugurkocde Jan 4, 2025
41513f4
update download URL for html-export.ps1 to reflect repository name ch…
ugurkocde Jan 4, 2025
d13f698
No code changes made.
ugurkocde Jan 4, 2025
69bad8b
Add application management support to HTML report export
ugurkocde Jan 4, 2025
b0e452e
Refactor application management in HTML report export
ugurkocde Jan 4, 2025
107c1af
Update publish script workflow for PowerShell Gallery
ugurkocde Jan 4, 2025
776047a
Refactor PowerShell Gallery publishing workflow
ugurkocde Jan 4, 2025
aaee6eb
Refactor GitHub Actions workflow for PowerShell script publishing
ugurkocde Jan 4, 2025
ca40e3f
Fix line breaks in PowerShell script content for improved formatting
ugurkocde Jan 4, 2025
373e56f
Update Demo video
ugurkocde Jan 7, 2025
0727b97
Update README.md
ugurkocde Jan 7, 2025
0e71a43
Update README.md
ugurkocde Jan 8, 2025
9d0a344
updated files
zuhairmahd Jan 19, 2025
8b67092
Merge branch 'main' of https://github.com/zuhairmahd/IntuneAssignment…
zuhairmahd Jan 19, 2025
8df1a35
updated to sync base code with main branch
jorgeasaurus Jan 19, 2025
1a59849
Merge pull request #56 from jorgeasaurus/main
ugurkocde Jan 20, 2025
d9439f6
update version number
ugurkocde Jan 20, 2025
a228b54
Added environment flag to graph connection command
jorgeasaurus Jan 21, 2025
7a13771
incremented version to 3.0.3
jorgeasaurus Jan 21, 2025
8b2c3fd
Merge branch '3.0.2' into main
ugurkocde Jan 21, 2025
9a6e723
Merge pull request #57 from jorgeasaurus/main
ugurkocde Jan 21, 2025
1058b33
Update version_v3.txt
ugurkocde Jan 21, 2025
393d88b
Merge pull request #58 from ugurkocde/3.0.2
ugurkocde Feb 1, 2025
49c18d5
Refactor environment selection to use script-level variables for Grap…
ugurkocde Feb 1, 2025
8bfb341
fixed [BUG] Application reported as unassigned and assigned at the sa…
ugurkocde Feb 1, 2025
c3946b5
reworked the export to include a filter by assignment type dropdown m…
ugurkocde Feb 1, 2025
1cdd0ba
remove the comment
ugurkocde Feb 1, 2025
ba1ff45
updated version
ugurkocde Feb 1, 2025
191fae1
Added #40 and #42
ugurkocde Feb 1, 2025
d3ecf89
Merge pull request #59 from ugurkocde/3.1.0
ugurkocde Feb 1, 2025
32bc598
bump version to 3.1.1 and fix bug mentioned in [BUG] Get-IntuneAssign…
ugurkocde Feb 17, 2025
5b54970
Update for [BUG] Shows only one of the groups, when multiple groups a…
ugurkocde Feb 17, 2025
62a6478
Update 2 for #54
ugurkocde Feb 17, 2025
f85a795
Merge branch 'main' of https://github.com/zuhairmahd/IntuneAssignment…
zuhairmahd Mar 18, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 41 additions & 0 deletions .github/workflows/publish-script.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Publish PowerShell Script

on:
workflow_dispatch:

jobs:
test-and-publish:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Prepare script for publishing
shell: pwsh
run: |
$version = Get-Content version_v3.txt
$content = Get-Content IntuneAssignmentChecker_v3.ps1
$scriptContent = @"
#Requires -Version 7.0
#Requires -Modules Microsoft.Graph.Authentication

<#PSScriptInfo
.VERSION $version
.GUID c6e25ec6-5787-45ef-95af-8abeb8a17daf
.AUTHOR ugurk
.PROJECTURI https://github.com/ugurkocde/IntuneAssignmentChecker
#>

<#
.DESCRIPTION
This script enables IT administrators to efficiently analyze and audit Intune assignments. It checks assignments for specific users, groups, or devices, displays all policies and their assignments, identifies unassigned policies, detects empty groups in assignments, and searches for specific settings across policies.
#>

"@
$scriptContent + ($content -join "`n`n") | Set-Content IntuneAssignmentChecker.ps1

- name: Publish to PowerShell Gallery
shell: pwsh
run: |
$env:PSGalleryApiKey = "${{ secrets.NUGET_KEY }}"
Publish-Script -Path ./IntuneAssignmentChecker.ps1 -Repository PSGallery -NuGetApiKey $env:PSGalleryApiKey -Verbose
128 changes: 128 additions & 0 deletions CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,128 @@
# Contributor Covenant Code of Conduct

## Our Pledge

We as members, contributors, and leaders pledge to make participation in our
community a harassment-free experience for everyone, regardless of age, body
size, visible or invisible disability, ethnicity, sex characteristics, gender
identity and expression, level of experience, education, socio-economic status,
nationality, personal appearance, race, religion, or sexual identity
and orientation.

We pledge to act and interact in ways that contribute to an open, welcoming,
diverse, inclusive, and healthy community.

## Our Standards

Examples of behavior that contributes to a positive environment for our
community include:

* Demonstrating empathy and kindness toward other people
* Being respectful of differing opinions, viewpoints, and experiences
* Giving and gracefully accepting constructive feedback
* Accepting responsibility and apologizing to those affected by our mistakes,
and learning from the experience
* Focusing on what is best not just for us as individuals, but for the
overall community

Examples of unacceptable behavior include:

* The use of sexualized language or imagery, and sexual attention or
advances of any kind
* Trolling, insulting or derogatory comments, and personal or political attacks
* Public or private harassment
* Publishing others' private information, such as a physical or email
address, without their explicit permission
* Other conduct which could reasonably be considered inappropriate in a
professional setting

## Enforcement Responsibilities

Community leaders are responsible for clarifying and enforcing our standards of
acceptable behavior and will take appropriate and fair corrective action in
response to any behavior that they deem inappropriate, threatening, offensive,
or harmful.

Community leaders have the right and responsibility to remove, edit, or reject
comments, commits, code, wiki edits, issues, and other contributions that are
not aligned to this Code of Conduct, and will communicate reasons for moderation
decisions when appropriate.

## Scope

This Code of Conduct applies within all community spaces, and also applies when
an individual is officially representing the community in public spaces.
Examples of representing our community include using an official e-mail address,
posting via an official social media account, or acting as an appointed
representative at an online or offline event.

## Enforcement

Instances of abusive, harassing, or otherwise unacceptable behavior may be
reported to the community leaders responsible for enforcement at
https://www.linkedin.com/in/ugurkocde/.
All complaints will be reviewed and investigated promptly and fairly.

All community leaders are obligated to respect the privacy and security of the
reporter of any incident.

## Enforcement Guidelines

Community leaders will follow these Community Impact Guidelines in determining
the consequences for any action they deem in violation of this Code of Conduct:

### 1. Correction

**Community Impact**: Use of inappropriate language or other behavior deemed
unprofessional or unwelcome in the community.

**Consequence**: A private, written warning from community leaders, providing
clarity around the nature of the violation and an explanation of why the
behavior was inappropriate. A public apology may be requested.

### 2. Warning

**Community Impact**: A violation through a single incident or series
of actions.

**Consequence**: A warning with consequences for continued behavior. No
interaction with the people involved, including unsolicited interaction with
those enforcing the Code of Conduct, for a specified period of time. This
includes avoiding interactions in community spaces as well as external channels
like social media. Violating these terms may lead to a temporary or
permanent ban.

### 3. Temporary Ban

**Community Impact**: A serious violation of community standards, including
sustained inappropriate behavior.

**Consequence**: A temporary ban from any sort of interaction or public
communication with the community for a specified period of time. No public or
private interaction with the people involved, including unsolicited interaction
with those enforcing the Code of Conduct, is allowed during this period.
Violating these terms may lead to a permanent ban.

### 4. Permanent Ban

**Community Impact**: Demonstrating a pattern of violation of community
standards, including sustained inappropriate behavior, harassment of an
individual, or aggression toward or disparagement of classes of individuals.

**Consequence**: A permanent ban from any sort of public interaction within
the community.

## Attribution

This Code of Conduct is adapted from the [Contributor Covenant][homepage],
version 2.0, available at
https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.

Community Impact Guidelines were inspired by [Mozilla's code of conduct
enforcement ladder](https://github.com/mozilla/diversity).

[homepage]: https://www.contributor-covenant.org

For answers to common questions about this code of conduct, see the FAQ at
https://www.contributor-covenant.org/faq. Translations are available at
https://www.contributor-covenant.org/translations.
75 changes: 75 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
# Contributing Guidelines

Thank you for your interest in contributing! This document provides guidelines and steps for contributing to this project.

## Code of Conduct

By participating in this project, you agree to maintain a respectful and inclusive environment for everyone. Please:

- Use welcoming and inclusive language
- Be respectful of differing viewpoints and experiences
- Accept constructive criticism gracefully
- Focus on what is best for the community

## How to Contribute

### Reporting Issues

- Before creating an issue, please check if a similar issue already exists
- Provide a clear and descriptive title
- Include detailed steps to reproduce the issue
- Specify your environment/version information
- Include any relevant code snippets or error messages

### Pull Requests

1. Fork the repository
2. Create a new branch for your feature (`git checkout -b feature/amazing-feature`)
3. Make your changes
4. Commit your changes (`git commit -m 'Add some amazing feature'`)
5. Push to the branch (`git push origin feature/amazing-feature`)
6. Open a Pull Request

### Pull Request Guidelines

- Keep your changes focused and atomic
- Update documentation as needed
- Add tests if applicable
- Follow the existing code style
- Verify all tests pass
- Include a clear description of the changes
- Link any related issues using keywords (`Fixes #123`, `Closes #456`)

## Style Guidelines

- Follow the existing code style and conventions
- Use clear, descriptive variable and function names
- Add comments for complex logic
- Keep functions focused and modular
- Remove any debugging code or console logs
- Ensure proper error handling

## Development Setup

1. Fork and clone the repository
2. Install any required dependencies
3. Follow the README.md setup instructions
4. Make your changes in a new git branch

## Documentation

- Update README.md if you change functionality
- Comment your code where necessary
- Update any relevant documentation

## Questions or Need Help?

Feel free to reach out to me on [LinkedIn](https://www.linkedin.com/in/ugurkocde/) if you have any questions or need clarification.

## License

By contributing, you agree that your contributions will be licensed under the same license as the original project.

---

Thank you for contributing to make this project better!
Loading