forked from KelvinTegelaar/CIPP-API
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'KelvinTegelaar:master' into master
- Loading branch information
Showing
86 changed files
with
1,832 additions
and
1,080 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
{ | ||
"displayName": "", | ||
"installCommandLine": "", | ||
"uninstallCommandLine": "", | ||
"description": " ", | ||
"developer": " ", | ||
"owner": " ", | ||
"informationUrl": " ", | ||
"privacyInformationUrl": " ", | ||
"fileName": "ninjarmm.intunewin", | ||
"@odata.type": "#microsoft.graph.win32LobApp", | ||
"applicableArchitectures": "x86, x64", | ||
|
||
"installExperience": { | ||
"runAsAccount": "system", | ||
"deviceRestartBehavior": "suppress", | ||
"@odata.type": "microsoft.graph.win32LobAppInstallExperience" | ||
}, | ||
"detectionRules": [ | ||
{ | ||
"@odata.type": "#microsoft.graph.win32LobAppFileSystemDetection", | ||
"path": "%ProgramData%\\Immyboy\\Bin", | ||
"fileOrFolderName": "Immybot.exe", | ||
"check32BitOn64System": false, | ||
"detectionType": "exists" | ||
} | ||
], | ||
"returncode": [ | ||
{ | ||
"returnCode": 0, | ||
"type": "success", | ||
"@odata.type": "#microsoft.graph.win32LobAppReturnCode" | ||
}, | ||
{ | ||
"returnCode": 1707, | ||
"type": "Success", | ||
"@odata.type": "#microsoft.graph.win32LobAppReturnCode" | ||
}, | ||
{ | ||
"returnCode": 1641, | ||
"type": "hardReboot", | ||
"@odata.type": "#microsoft.graph.win32LobAppReturnCode" | ||
}, | ||
{ | ||
"returnCode": 1618, | ||
"type": "retry", | ||
"@odata.type": "#microsoft.graph.win32LobAppReturnCode" | ||
}, | ||
{ | ||
"returnCode": 3010, | ||
"type": "softReboot", | ||
"@odata.type": "#microsoft.graph.win32LobAppReturnCode" | ||
} | ||
], | ||
"minimumNumberOfProcessors": "1", | ||
"minimumFreeDiskSpaceInMB": "8", | ||
"minimumCpuSpeedInMHz": "4", | ||
"minimumSupportedOperatingSystem": { | ||
"@odata.type": "microsoft.graph.windowsMinimumOperatingSystem", | ||
"v10_1607": true | ||
}, | ||
"notes": "CIPP Uploaded application", | ||
"minimumMemoryInMB": "1", | ||
"setupFilePath": "install.ps1" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
{ | ||
"displayName": "", | ||
"installCommandLine": "", | ||
"uninstallCommandLine": "", | ||
"description": " ", | ||
"developer": " ", | ||
"owner": " ", | ||
"informationUrl": " ", | ||
"privacyInformationUrl": " ", | ||
"fileName": "automate.intunewin", | ||
"@odata.type": "#microsoft.graph.win32LobApp", | ||
"applicableArchitectures": "x86, x64", | ||
|
||
"installExperience": { | ||
"runAsAccount": "system", | ||
"deviceRestartBehavior": "suppress", | ||
"@odata.type": "microsoft.graph.win32LobAppInstallExperience" | ||
}, | ||
"detectionRules": [ | ||
{ | ||
"@odata.type": "#microsoft.graph.win32LobAppPowerShellScriptDetection", | ||
"enforceSignatureCheck": false, | ||
"runAs32Bit": false, | ||
"scriptContent": "" | ||
} | ||
], | ||
"returncode": [ | ||
{ | ||
"returnCode": 0, | ||
"type": "success", | ||
"@odata.type": "#microsoft.graph.win32LobAppReturnCode" | ||
}, | ||
{ | ||
"returnCode": 1707, | ||
"type": "Success", | ||
"@odata.type": "#microsoft.graph.win32LobAppReturnCode" | ||
}, | ||
{ | ||
"returnCode": 1641, | ||
"type": "hardReboot", | ||
"@odata.type": "#microsoft.graph.win32LobAppReturnCode" | ||
}, | ||
{ | ||
"returnCode": 1618, | ||
"type": "retry", | ||
"@odata.type": "#microsoft.graph.win32LobAppReturnCode" | ||
}, | ||
{ | ||
"returnCode": 3010, | ||
"type": "softReboot", | ||
"@odata.type": "#microsoft.graph.win32LobAppReturnCode" | ||
} | ||
], | ||
"minimumNumberOfProcessors": "1", | ||
"minimumFreeDiskSpaceInMB": "8", | ||
"minimumCpuSpeedInMHz": "4", | ||
"minimumSupportedOperatingSystem": { | ||
"@odata.type": "microsoft.graph.windowsMinimumOperatingSystem", | ||
"v10_1607": true | ||
}, | ||
"notes": "CIPP Uploaded application", | ||
"minimumMemoryInMB": "1", | ||
"setupFilePath": "install.ps1" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<ApplicationInfo xmlns:xsd="http://www.w3.org/2001/XMLSchema" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ToolVersion="1.8.4.0"> | ||
<Name>install.ps1</Name> | ||
<UnencryptedContentSize>2117</UnencryptedContentSize> | ||
<FileName>automate.intunewin</FileName> | ||
<SetupFile>install.ps1</SetupFile> | ||
<EncryptionInfo> | ||
<EncryptionKey>TL5w2kSbhW0+Vb/ngucj1fIa7YfAnFG/d+U3o/qGG24=</EncryptionKey> | ||
<MacKey>NGPnJKKQIPM4yD4dCJ0GVCF0pqFsLX2TCb040bjLBBg=</MacKey> | ||
<InitializationVector>QGvxYMYrgYovA6uo9XQ60w==</InitializationVector> | ||
<Mac>Q8PF4sGPbuxDyoQpmJUGVLvZw9hGhOBX0IhQNeeQEHk=</Mac> | ||
<ProfileIdentifier>ProfileVersion1</ProfileIdentifier> | ||
<FileDigest>49a2kb03OrNyDt0eZHSpSARq9HzvQL0IrBkcPffwC4M=</FileDigest> | ||
<FileDigestAlgorithm>SHA256</FileDigestAlgorithm> | ||
</EncryptionInfo> | ||
</ApplicationInfo> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
$ServerAddress = '##SERVER##' | ||
if (Get-Module -ListAvailable -Name ConnectWiseAutomateAgent) { | ||
Import-Module ConnectWiseAutomateAgent | ||
} | ||
else { | ||
Install-PackageProvider -Name NuGet -MinimumVersion 2.8.5.201 -Force | ||
Install-Module -Name PowerShellGet -Force -AllowClobber | ||
Update-Module -Name PowerShellGet | ||
Set-PSRepository -Name 'PSGallery' -InstallationPolicy Trusted | ||
Install-Module ConnectWiseAutomateAgent -MinimumVersion 0.1.2.0 -Confirm:$false -Force | ||
} | ||
|
||
Invoke-CWAACommand -Command 'Send Status' | ||
Start-Sleep -Seconds 20 | ||
|
||
$AgentInfo = Get-CWAAInfo | ||
$ServerPassword = ConvertFrom-CWAASecurity $AgentInfo.ServerPassword | ||
$LastContact = try { Get-Date $AgentInfo.LastSuccessStatus } catch { $null } | ||
|
||
|
||
if ($AgentInfo.ID -gt 0 -and $LastContact -gt (Get-Date).AddDays(-30) -and $AgentInfo.Server -contains $ServerAddress -and $ServerPassword -ne 'Enter the server password here.') { | ||
Write-Output 'SUCCESS: Agent is healthy' | ||
exit 0 | ||
} | ||
else { | ||
Write-Output 'ERROR: Agent is not healthy' | ||
Write-Output ($AgentInfo | Select-Object ID, LocationID, LastSuccessStatus, Server | ConvertTo-Json) | ||
exit 1 | ||
} |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
{ | ||
"displayName": "", | ||
"installCommandLine": "", | ||
"uninstallCommandLine": "", | ||
"description": " ", | ||
"developer": " ", | ||
"owner": " ", | ||
"informationUrl": " ", | ||
"privacyInformationUrl": " ", | ||
"fileName": "cwcommand.intunewin", | ||
"@odata.type": "#microsoft.graph.win32LobApp", | ||
"applicableArchitectures": "x86, x64", | ||
|
||
"installExperience": { | ||
"runAsAccount": "system", | ||
"deviceRestartBehavior": "suppress", | ||
"@odata.type": "microsoft.graph.win32LobAppInstallExperience" | ||
}, | ||
"detectionRules": [ | ||
{ | ||
"@odata.type": "#microsoft.graph.win32LobAppFileSystemDetection", | ||
"path": "%ProgramFiles(x86)%\\ITSPlatform\\agentcore\\", | ||
"fileOrFolderName": "platform-agent-core.exe", | ||
"check32BitOn64System": false, | ||
"detectionType": "exists" | ||
} | ||
], | ||
"returncode": [ | ||
{ | ||
"returnCode": 0, | ||
"type": "success", | ||
"@odata.type": "#microsoft.graph.win32LobAppReturnCode" | ||
}, | ||
{ | ||
"returnCode": 1707, | ||
"type": "Success", | ||
"@odata.type": "#microsoft.graph.win32LobAppReturnCode" | ||
}, | ||
{ | ||
"returnCode": 1641, | ||
"type": "hardReboot", | ||
"@odata.type": "#microsoft.graph.win32LobAppReturnCode" | ||
}, | ||
{ | ||
"returnCode": 1618, | ||
"type": "retry", | ||
"@odata.type": "#microsoft.graph.win32LobAppReturnCode" | ||
}, | ||
{ | ||
"returnCode": 3010, | ||
"type": "softReboot", | ||
"@odata.type": "#microsoft.graph.win32LobAppReturnCode" | ||
} | ||
], | ||
"minimumNumberOfProcessors": "1", | ||
"minimumFreeDiskSpaceInMB": "8", | ||
"minimumCpuSpeedInMHz": "4", | ||
"minimumSupportedOperatingSystem": { | ||
"@odata.type": "microsoft.graph.windowsMinimumOperatingSystem", | ||
"v10_1607": true | ||
}, | ||
"notes": "CIPP Uploaded application", | ||
"minimumMemoryInMB": "1", | ||
"setupFilePath": "install.ps1" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<ApplicationInfo xmlns:xsd="http://www.w3.org/2001/XMLSchema" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ToolVersion="1.8.4.0"> | ||
<Name>install.ps1</Name> | ||
<UnencryptedContentSize>2717</UnencryptedContentSize> | ||
<FileName>cwcommand.intunewin</FileName> | ||
<SetupFile>install.ps1</SetupFile> | ||
<EncryptionInfo> | ||
<EncryptionKey>6bilNd8M34xxoOl/marQi04r0PjYRD0YUuVf5hR/cVY=</EncryptionKey> | ||
<MacKey>QIeCE2WnKhg/yyyN2Vd7WBqy/9Vo22oOY+jN+o7NsM8=</MacKey> | ||
<InitializationVector>fPjQqWF6INy3aAXKeGIlig==</InitializationVector> | ||
<Mac>qWx8/p2CoO2vuP/Dkr7KJw7JoxhmcA4XSj2ictbcC7M=</Mac> | ||
<ProfileIdentifier>ProfileVersion1</ProfileIdentifier> | ||
<FileDigest>fslGge4BZ0F//6xgGCNIIVY5VPr/B2Ms1sGI7RiA9Bo=</FileDigest> | ||
<FileDigestAlgorithm>SHA256</FileDigestAlgorithm> | ||
</EncryptionInfo> | ||
</ApplicationInfo> |
Binary file not shown.
Oops, something went wrong.