Code Monkey home page Code Monkey logo

intunestarterkit's Introduction

Twitter Follow LinkedIn Website

👋 Hi, I am Florian Salzmann

... a Microsoft MVP & Cloud Consultant in Switzerland and I run the blog scloud.work.

My primarily work area is with the Microsoft Cloud platforms with a strong focus on Endpoint Management (Intune). I started working in IT years ago in 2012 and love any excuse to create a PowerShell script. My blog scloud.work is the place where I share my ideas and solutions to common problems in the modern workplace.

🖥️ Fav Tech

  • Microsft Intune
  • PowerShell
  • MS Defender (pick one)
  • SmartHome with Home Assisatnt

intunestarterkit's People

Contributors

florianslz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

intunestarterkit's Issues

IntuneStarterKit with AzureDevops

Hi Florian,

awesome tool, I was able to upload config from my local PC with configuration on my github but once I try to do it from AzureDevops pipeline i am getting following:

image

Can you help me with this?

Add-ISKApps error

Beim ausführen des Befehls: Add-ISKApps bekomme ich immer den Fehler:

WARNUNG: Request to https://graph.microsoft.com/Beta/deviceAppManagement/mobileApps failed with HTTP Status Forbidden and description: Forbidden
WARNUNG: Failed to create Win32 app using constructed body. Passing converted body as JSON to output.

kannst du mir allenfalls einen Tipp geben wieso das geschieht?

Failed to create Win32 app using constructed body

Hey!

I am really interested in this module, mostly about the part which would let me upload multiple apps at the same time for new intune customers.

However, I can't get "Add-ISKApps" working. I've tried it from 2 different machines and 2 different tenants (where I am Global Admin) with the same result.

Connect

First I "connect-isk" and I am connected to graph.

Intunewin creation

I have previously used PSAppDeployToolkit, but I created new intunewins for all my test win32 apps, using install.ps1 instead of the .exe when specifying setup file.

This is what they do:
Install.ps1:
& "$PSScriptRoot\Deploy-Application.exe"
Uninstall.ps1:
& "$PSScriptRoot\Deploy-Application.exe" -DeploymentType "Uninstall"

Repository structure

I am somewhat confused by these repository instructions, but I've tried to include the install/uninstall.ps1 in the folder and also not with the same result.
image
If I understand it correct, the intunewin should include install.ps1/uninstall.ps1 and the repository folder should include the intunewin, check.ps1 and optionally and .png.(I will show tests without .png to decrease log size)

Check.ps1

I've created a check.ps1 which I guess will be used as a custom detection method.
Check.ps1

$Path = Get-Content "C:\Program Files\7-Zip\"

if (Test-Path $Path) {
    Write-Output "Software is installed"
    exit 0
}
else {
    Write-Output "Software have not been installed"
    exit 1
}

Running Add-ISKApps -Path "C:\AppDeployTest"

Now when I run the command to add apps I get the following error log. What I notice is that the .intunewin file in the log is named IntunePackage.intunewin instead of "7zip.intunewin" as I named it. I notice I get 2 warnings, but not how I would solve them.

PS C:\Users\MYUSERNAME> Add-ISKApps -Path "C:\AppDeployTest"
WARNING: Request to https://graph.microsoft.com/Beta/deviceAppManagement/mobileApps failed with HTTP Status
Forbidden and description: Forbidden
WARNING: Failed to create Win32 app using constructed body. Passing converted body as JSON to output.
WARNING: {
    "@odata.type":  "#microsoft.graph.win32LobApp",
    "applicableArchitectures":  "x64",
    "description":  "7zip",
    "developer":  "",
    "displayVersion":  "",
    "owner":  "",
    "notes":  "",
    "informationUrl":  "",
    "privacyInformationUrl":  "",
    "isFeatured":  false,
    "displayName":  "7zip",
    "fileName":  "IntunePackage.intunewin",
    "setupFilePath":  "install.ps1",
    "installCommandLine":  "powershell.exe -ExecutionPolicy Bypass -File .\\install.ps1",
    "uninstallCommandLine":  "powershell.exe -ExecutionPolicy Bypass -File .\\uninstall.ps1",
    "installExperience":  {
                              "deviceRestartBehavior":  "suppress",
                              "runAsAccount":  "system"
                          },
    "minimumSupportedWindowsRelease":  "2004",
    "msiInformation":  null,
    "publisher":  "scloud.work",
    "runAs32bit":  false,
    "detectionRules":  [
                           {
                               "@odata.type":  "#microsoft.graph.win32LobAppPowerShellScriptDetection",
                               "enforceSignatureCheck":  false,
                               "runAs32Bit":  false,
                               "scriptContent":
"JFBhdGggPSBHZXQtQ29udGVudCAiQzpcUHJvZ3JhbSBGaWxlc1w3LVppcFwiDQoNCmlmIChUZXN0LVBhdGggJFBhdGgpIHsNCiAgICBXcml0
ZS1PdXRwdXQgIlNvZnR3YXJlIGlzIGluc3RhbGxlZCINCiAgICBleGl0IDANCn0NCmVsc2Ugew0KICAgIFdyaXRlLU91dHB1dCAiU29mdHdhc
mUgaGF2ZSBub3QgYmVlbiBpbnN0YWxsZWQiDQogICAgZXhpdCAxDQp9"
                           }
                       ],
    "returnCodes":  [
                        {
                            "returnCode":  0,
                            "type":  "success"
                        },
                        {
                            "returnCode":  1707,
                            "type":  "success"
                        },
                        {
                            "returnCode":  3010,
                            "type":  "softReboot"
                        },
                        {
                            "returnCode":  1641,
                            "type":  "hardReboot"
                        },
                        {
                            "returnCode":  1618,
                            "type":  "retry"
                        }
                    ]
}
Apps imported:
7zip
Chrome
OpenVPN

Thank you very much for the work you do for the intune community!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.