Skip to content
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

[Feature Request]: Centralised deployment of IntuneWin Files or server side compiling of PowerShell scripts #3497

Open
sfaxluke opened this issue Jan 28, 2025 · 0 comments
Labels
enhancement New feature or request no-priority

Comments

@sfaxluke
Copy link
Contributor

Description of the new feature - must be an in-depth explanation of the feature you want, reasoning why, and the added benefits for MSPs as a whole.

I would like to request the ability to deploy IntuneWin files and PowerShell scripts to multiple organisations through a centralised area in CIPP.

Currently, when deploying an application that is not supported by the MSP apps deployment, I have to manually log into each tenant and upload the application individually. This process is time-consuming and inefficient.

A couple of examples include: NinjaRMM, Printix and Cisco Umbrella. I would hope that we would be able to then further edit these once deployed either in the Intune portal or in CIPP to allow us to change the deployment install command. eg powershell.exe -NoProfile -ExecutionPolicy Bypass -File .\script.ps1 -TokenID aaaaaa

If it were possible to perform these deployments centrally via CIPP, it would significantly reduce the time and effort required, allowing for standardised and streamlined deployments across all tenants.

I may not have fully explained this correctly to please feel free to ask questions and I will answer accordingly.

I know I may also be jumping the gun a little as custom packaging may be on the future roadmap.

We are a sponsor under the organisation techwyseuk.

PowerShell commands you would normally use to achieve above request

$appName = "CustomWin32App"
$appDescription = "Your App Description"
$publisher = "Your Publisher"
$filePath = "C:\Path\To\YourFile.intunewin"
$installCommand = "YourInstallCommand"
$uninstallCommand = "YourUninstallCommand"

$app = New-Object -TypeName Microsoft.Graph.PowerShell.Models.MicrosoftGraphWin32LobApp
$app.DisplayName = $appName
$app.Description = $appDescription
$app.Publisher = $publisher
$app.InstallCommandLine = $installCommand
$app.UninstallCommandLine = $uninstallCommand

$fileContent = [System.IO.File]::ReadAllBytes($filePath)
$encodedContent = [System.Convert]::ToBase64String($fileContent)

$app.ContentVersions = @(
    @{
        "@odata.type" = "#microsoft.graph.win32LobAppContentVersion"
        "version" = "1.0.0.0"
        "contentFiles" = @(
            @{
                "@odata.type" = "#microsoft.graph.win32LobAppContentFile"
                "fileName" = [System.IO.Path]::GetFileName($filePath)
                "size" = $fileContent.Length
                "sizeEncrypted" = $fileContent.Length
                "isDependency" = $false
                "isOptional" = $false
                "isRequired" = $true
                "content" = $encodedContent
            }
        )
    }
)

New-MgDeviceAppManagementMobileApps -BodyParameter $app
@sfaxluke sfaxluke added enhancement New feature or request no-priority labels Jan 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request no-priority
Projects
None yet
Development

No branches or pull requests

1 participant