You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if ($xmlResponse.definitions.service.port.address.location-eq"https://$($Config.NCServerAddress)/dms2/services2/ServerEI2") {
1607
+
$Flag="W"
1608
+
$Out= ("Device failed ping test, but succeeded on WSDL verification method for "+$NC.Products.NCServer.Name+", script will proceed with online activities")
1609
+
Log $Flag0$Out
1610
+
}
1611
+
}
1612
+
catch {
1613
+
$Flag="W"
1614
+
$Out= ("WSDL verification method for "+$NC.Products.NCServer.Name+"failed, Offline Repairs will be performed possible until connectivity is restored.")
1615
+
Log $Flag0$Out
1616
+
}
1617
+
}
1618
+
1598
1619
$Install.NCServerAccess=
1599
1620
if ($null-ne$Flag)
1600
1621
{ $true } else { $false }
@@ -2982,13 +3003,40 @@ function RemoveAgent {
2982
3003
# Verify Removal was Successful
2983
3004
DiagnoseAgent -NoLog -NoServerCheck
2984
3005
if ($Agent.Health.Installed-eq$true) {
2985
-
# Exit - Agent Removal Failed
2986
-
FixServices -Restart
2987
-
$Out= (
2988
-
"MSI Removal of the existing "+$NC.Products.Agent.Name+" failed. "+
2989
-
"Manual forcible removal is required for the Script to continue."
Copy file name to clipboardExpand all lines: Agent/PartnerConfig.xml
+7-5Lines changed: 7 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -22,7 +22,7 @@ Required Values CANNOT be left blank (the Event Log will inform you of this). Ad
22
22
and/or Recommendations may be added here with regard to new Configuration Values.
23
23
-->
24
24
<Config>
25
-
<Version>6.0.1</Version>
25
+
<Version>6.0.2</Version>
26
26
<Branding>
27
27
<!-- [OPTIONAL - (Business Contact Info)] Partner Contact Information to display in the Event Log
28
28
when a Documented Error occurs -->
@@ -33,12 +33,14 @@ help@mymsp.com
33
33
</ErrorContactInfo>
34
34
</Branding>
35
35
<ScriptBehavior>
36
-
<!-- [RECOMMENDED - (0-60)] Amount of time (in minutes) to wait since the Last System Boot before
37
-
diagnosing the Agent -->
36
+
<!-- [RECOMMENDED - (0-60)] Amount of time (in minutes) to wait since the Last System Boot before diagnosing the Agent -->
38
37
<BootTimeWaitPeriod>5</BootTimeWaitPeriod> <!-- Default Value is 5 -->
39
-
<!-- [REQUIRED - (1-60)] Amount of time (in minutes) to wait for the Windows Installer Service
40
-
while another installation is in progress -->
38
+
<!-- [REQUIRED - (1-60)] Amount of time (in minutes) to wait for the Windows Installer Service while another installation is in progress -->
41
39
<InstallTimeoutPeriod>5</InstallTimeoutPeriod> <!-- Default Value is 5 -->
40
+
<!-- [REQUIRED - (True)] - If there are issues with the MSI uninstall of the previous version, perform a cleanup -->
41
+
<ForceAgentCleanup>True</ForceAgentCleanup>
42
+
<!-- [REQUIRED - (True)] - If true enables fallback from ICMP to HTTP/S lookup of the WSDL endpoint for network verification and pre-install server verification -->
43
+
<UseWSDLVerification>True</UseWSDLVerification>
42
44
</ScriptBehavior>
43
45
<Server>
44
46
<!-- [REQUIRED - (URL Without Protocol)] Your N-Central Server Address (get this from the
This is a community-based Automation Suite intended as a replacement for the stock N-central Group Policy Installer Script as provided by N-able. It is not supported by N-able, so please do not contact their support department regarding any problems or questions about this script. In addition, please do not contact the support departments of any individual Partners in the Community regarding the Automation Suite or its components.
50
53
54
+
This suite is a fork of [Ryan Crowther Jr's AgentDeploymentPackage on GitHub](https://github.com/N-able/AgentDeploymentPackage/) and will soon be the future branch going forward as they have moved on to other projects.
55
+
56
+
If you discover a problem with any component of the Automation Suite or have ideas on how it could be improved, [post an issue on GitHub](https://github.com/AngryProgrammerInside/InstallAgent/issues). Alternatively, post on the N-Central Slack Community chat.
57
+
58
+
These tools are provided as-is, in the best of faith, by those Partners and Community Members involved in their development. If you use this in your environment, we would love to hear from you on GitHub!
59
+
51
60
## Status of Suite
52
61
All scripts in the suite have been run and tested as functional. It is currently considered in a 'beta' phase while wider testing is being performed.
53
62
54
63
Feel free to provide feedback and lodge issues and they will be reviewed.
55
64
56
-
## New and improved Features in AgentDeploymentPackage 6.0.1 (Beta)
65
+
## Release notes for 6.0.2
66
+
* Fixed several small bugs, full [Release Notes](ReleaseNotes.md)
67
+
* Added WSDL endpoint based N-Central Server verification for environments where Echo/ICMP is blocked, or where additional verification that the server N-Central is up and accessible. Enabled by setting the `<UseWSDLVerification>` attribute to **True**
68
+
* Added forced removal/cleanup when bad MSI uninstall information or MSI unable to remove old/rogue agent when needed using the AgentCleanup4.exe. Enabled by setting the `<ForceAgentCleanup>` attribute to **True**
57
69
58
-
This script is a fork of [Ryan Crowther Jr's AgentDeploymentPackage on GitHub](https://github.com/N-able/AgentDeploymentPackage/) and will soon be the future branch going forward as they have moved on to other projects.
59
-
60
-
If you discover a problem with any component of the Automation Suite or have ideas on how it could be improved, [post an issue on GitHub](https://github.com/AngryProgrammerInside/InstallAgent/issues). Alternatively, post on the N-Central Slack Community chat.
61
-
62
-
These tools are provided as-is, in the best of faith, by those Partners and Community Members involved in their development. If you use this in your environment, we would love to hear from you on GitHub!
70
+
## Release notes for 6.0.1
71
+
* Fixed a large number of bugs, full [Release Notes](ReleaseNotes.md)
72
+
* Added the ability enable/disable service policy enforcement with `<EnforcePolicy>` attribute for service timeouts/restarts. By default is now **False** as the service policy can get overriden by the maintenance service eventually.
63
73
64
-
## New and improved Features in AgentDeploymentPackage 6.0.1
74
+
## New and improved Features in AgentDeploymentPackage 6.0.0
Copy file name to clipboardExpand all lines: ReleaseNotes.md
+7Lines changed: 7 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,10 @@
1
+
# 2021-05-7 - 6.0.2
2
+
* Fixed bug with Invoke-Webrequest not working due to absence of -UseBasicParsing per [#36](https://github.com/AngryProgrammerInside/InstallAgent/issues/36)
3
+
* Added forced removal/cleanup when bad MSI uninstall information or MSI unable to remove old/rogue agent when needed. [#37](https://github.com/AngryProgrammerInside/InstallAgent/issues/37)
4
+
* Added WSDL based server verification for environments where outbound ICMP is disabled [#38](https://github.com/AngryProgrammerInside/InstallAgent/issues/38)
5
+
* Fixed bug with InstallAgent process not being spun off Async unless -Monitor flag used [#39](https://github.com/AngryProgrammerInside/InstallAgent/issues/39)
6
+
* Fixed up Partner Config file validation of True/False attributes
0 commit comments