Skip to content

Commit a4b8e90

Browse files
committed
Fix auto-update URL and bump version to 3.10.0
The auto-update function referenced IntuneAssignmentChecker_v3.ps1 which does not exist in the repository, causing a 404 error. Updated all references to use the correct filename IntuneAssignmentChecker.ps1. Fixes #110
1 parent 939b9a0 commit a4b8e90

3 files changed

Lines changed: 20 additions & 20 deletions

File tree

IntuneAssignmentChecker.ps1

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -275,19 +275,19 @@ if (-not $parameterMode -and $HTMLReportPath) {
275275
Environment (Global, USGov, USGovDoD).
276276

277277
.EXAMPLE
278-
.\IntuneAssignmentChecker_v3.ps1 -CheckUser -UserPrincipalNames "user1@contoso.com,user2@contoso.com"
278+
.\IntuneAssignmentChecker.ps1 -CheckUser -UserPrincipalNames "user1@contoso.com,user2@contoso.com"
279279
Checks assignments for the specified users.
280280

281281
.EXAMPLE
282-
.\IntuneAssignmentChecker_v3.ps1 -CheckGroup -GroupNames "Marketing Team"
282+
.\IntuneAssignmentChecker.ps1 -CheckGroup -GroupNames "Marketing Team"
283283
Checks assignments for the specified group.
284284

285285
.EXAMPLE
286-
.\IntuneAssignmentChecker_v3.ps1 -ShowAllPolicies -ExportToCSV -ExportPath "C:\Temp\AllPolicies.csv"
286+
.\IntuneAssignmentChecker.ps1 -ShowAllPolicies -ExportToCSV -ExportPath "C:\Temp\AllPolicies.csv"
287287
Shows all policies and exports the results to CSV.
288288

289289
.EXAMPLE
290-
.\IntuneAssignmentChecker_v3.ps1 -GenerateHTMLReport -HTMLReportPath "C:\Temp\MyReport.html"
290+
.\IntuneAssignmentChecker.ps1 -GenerateHTMLReport -HTMLReportPath "C:\Temp\MyReport.html"
291291
Generates an HTML report and saves it to the specified path.
292292

293293
.AUTHOR
@@ -320,7 +320,7 @@ $clientSecret = if ($ClientSecret) { $ClientSecret } else { '' } # Client Secret
320320
####################################################################################################
321321

322322
# Version of the local script
323-
$localVersion = "3.9.1"
323+
$localVersion = "3.10.0"
324324

325325
Write-Host "🔍 INTUNE ASSIGNMENT CHECKER" -ForegroundColor Cyan
326326
Write-Host "Made by Ugur Koc with" -NoNewline; Write-Host " ❤️ and ☕" -NoNewline
@@ -345,15 +345,15 @@ Write-Host ""
345345
$versionUrl = "https://raw.githubusercontent.com/ugurkocde/IntuneAssignmentChecker/refs/heads/main/version_v3.txt"
346346

347347
# URL to the latest script on GitHub
348-
$scriptUrl = "https://raw.githubusercontent.com/ugurkocde/IntuneAssignmentChecker/main/IntuneAssignmentChecker_v3.ps1"
348+
$scriptUrl = "https://raw.githubusercontent.com/ugurkocde/IntuneAssignmentChecker/main/IntuneAssignmentChecker.ps1"
349349

350350
# Determine the script path based on whether it's run as a file or from an IDE
351351
if ($PSScriptRoot) {
352-
$newScriptPath = Join-Path $PSScriptRoot "IntuneAssignmentChecker_v3.ps1"
352+
$newScriptPath = Join-Path $PSScriptRoot "IntuneAssignmentChecker.ps1"
353353
}
354354
else {
355355
$currentDirectory = Get-Location
356-
$newScriptPath = Join-Path $currentDirectory "IntuneAssignmentChecker_v3.ps1"
356+
$newScriptPath = Join-Path $currentDirectory "IntuneAssignmentChecker.ps1"
357357
}
358358

359359
# Flag to control auto-update behavior

README.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ Update-PSResource IntuneAssignmentChecker
6464
Install-Module Microsoft.Graph.Authentication -Scope CurrentUser
6565
6666
# Download and run the script
67-
.\IntuneAssignmentChecker_v3.ps1
67+
.\IntuneAssignmentChecker.ps1
6868
```
6969

7070
## ✨ Features
@@ -186,7 +186,7 @@ If you prefer a simpler setup than certificates but still need non-interactive a
186186

187187
3. Run the script with the client secret:
188188
```powershell
189-
.\IntuneAssignmentChecker_v3.ps1 -AppId "your-app-id" -TenantId "your-tenant-id" -ClientSecret "your-client-secret"
189+
.\IntuneAssignmentChecker.ps1 -AppId "your-app-id" -TenantId "your-tenant-id" -ClientSecret "your-client-secret"
190190
```
191191

192192
> **Security Note**: Never hard-code client secrets in scripts or commit them to source control. Use secure methods such as Azure Key Vault, environment variables, or secure parameter input to manage secrets.
@@ -261,31 +261,31 @@ You can run the script with parameters to automate tasks without user interactio
261261

262262
```powershell
263263
# Check assignments for a specific user and export to CSV
264-
.\IntuneAssignmentChecker_v3.ps1 -CheckUser -UserPrincipalNames "user@contoso.com" -ExportToCSV -ExportPath "C:\Temp\UserAssignments.csv"
264+
.\IntuneAssignmentChecker.ps1 -CheckUser -UserPrincipalNames "user@contoso.com" -ExportToCSV -ExportPath "C:\Temp\UserAssignments.csv"
265265
266266
# Check assignments for multiple users
267-
.\IntuneAssignmentChecker_v3.ps1 -CheckUser -UserPrincipalNames "user1@contoso.com,user2@contoso.com"
267+
.\IntuneAssignmentChecker.ps1 -CheckUser -UserPrincipalNames "user1@contoso.com,user2@contoso.com"
268268
269269
# Check assignments for a specific group
270-
.\IntuneAssignmentChecker_v3.ps1 -CheckGroup -GroupNames "Marketing Team"
270+
.\IntuneAssignmentChecker.ps1 -CheckGroup -GroupNames "Marketing Team"
271271
272272
# Check assignments for a specific device
273-
.\IntuneAssignmentChecker_v3.ps1 -CheckDevice -DeviceNames "Laptop123"
273+
.\IntuneAssignmentChecker.ps1 -CheckDevice -DeviceNames "Laptop123"
274274
275275
# Show all policies with 'All Users' assignments
276-
.\IntuneAssignmentChecker_v3.ps1 -ShowAllUsersAssignments -ExportToCSV
276+
.\IntuneAssignmentChecker.ps1 -ShowAllUsersAssignments -ExportToCSV
277277
278278
# Generate HTML report
279-
.\IntuneAssignmentChecker_v3.ps1 -GenerateHTMLReport
279+
.\IntuneAssignmentChecker.ps1 -GenerateHTMLReport
280280
281281
# Specify environment (Global, USGov, USGovDoD)
282-
.\IntuneAssignmentChecker_v3.ps1 -CheckUser -UserPrincipalNames "user@contoso.com" -Environment "USGov"
282+
.\IntuneAssignmentChecker.ps1 -CheckUser -UserPrincipalNames "user@contoso.com" -Environment "USGov"
283283
284284
# Use with certificate authentication
285-
.\IntuneAssignmentChecker_v3.ps1 -CheckUser -UserPrincipalNames "user@contoso.com" -AppId "your-app-id" -TenantId "your-tenant-id" -CertificateThumbprint "your-cert-thumbprint"
285+
.\IntuneAssignmentChecker.ps1 -CheckUser -UserPrincipalNames "user@contoso.com" -AppId "your-app-id" -TenantId "your-tenant-id" -CertificateThumbprint "your-cert-thumbprint"
286286
287287
# Use with client secret authentication
288-
.\IntuneAssignmentChecker_v3.ps1 -CheckUser -UserPrincipalNames "user@contoso.com" -AppId "your-app-id" -TenantId "your-tenant-id" -ClientSecret "your-client-secret"
288+
.\IntuneAssignmentChecker.ps1 -CheckUser -UserPrincipalNames "user@contoso.com" -AppId "your-app-id" -TenantId "your-tenant-id" -ClientSecret "your-client-secret"
289289
```
290290

291291
Available parameters:

version_v3.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.9.1
1+
3.10.0

0 commit comments

Comments
 (0)