-
Notifications
You must be signed in to change notification settings - Fork 5
/
Agent Deploy to Network Device.xml
165 lines (158 loc) · 12.1 KB
/
Agent Deploy to Network Device.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
<LabTech_Expansion
Version="230.475"
Name="LabTech Script Expansion"
Type="PackedScript">
<PackedScript>
<NewDataSet>
<Table>
<ScriptId>6088</ScriptId>
<FolderId>320</FolderId>
<ScriptName>Agent Deploy to Network Device</ScriptName>
<ScriptNotes>Override Username Syntax:
Domain\Username or
Localhost\Username or
Username@Domain.com
This Network Device script will deploy to Computers found by the Probe and uses assigned Location Credentials (unless Override User/Pass is entered) to push Automate Agent.
This script calls GitHub for up-to-date Automate-Module.psm1
https://github.com/Braingears/PowerShell/blob/master/Automate-Module.psm1
Created by Chuck Fowler v2.6.1 2021-04
https://forums.mspgeek.org/topic/5373-deploy-agents-automate-scripts/</ScriptNotes>
<Permission>0,</Permission>
<EditPermission>0,</EditPermission>
<ComputerScript>0</ComputerScript>
<LocationScript>0</LocationScript>
<MaintenanceScript>0</MaintenanceScript>
<FunctionScript>0</FunctionScript>
<LicenseData>H4sIAAAAAAAEAFWPQQrCMBRE94J3yAEa8lObYMsnGxU3FkRF12nzxWzSkrZgby8tCnU1zAxvYPDkawod7W1vDd7GloxEMStehrBrhtBTNIBi4fDwbn2cGDIPcoE6Z8eElTbWLwY6YSnInEkoUig2W3YuUSwIvNbRt/2d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c651Ml3yxW31/6CxpWHXvOJAAA</ScriptData>
<ScriptVersion>1</ScriptVersion>
<ScriptGuid>48b1bb65-405f-11e9-a06a-005056955de5</ScriptGuid>
<ScriptFlags>64</ScriptFlags>
<Parameters>OverrideUsername,OverridePassword</Parameters>
</Table>
</NewDataSet>
<PackedScript>
<NewDataSet>
<Table>
<ScriptId>6089</ScriptId>
<FolderId>320</FolderId>
<ScriptName>Agent Deploy to All Network Devices</ScriptName>
<ScriptNotes>Override Username Syntax:
Domain\Username or
Localhost\Username or
Username@Domain.com
Created by Chuck Fowler v2.6.2 2021-04
https://github.com/Braingears/
https://forums.mspgeek.org/topic/5373-deploy-agents-automate-scripts/</ScriptNotes>
<Permission>0,</Permission>
<EditPermission>0,</EditPermission>
<ComputerScript>1</ComputerScript>
<LocationScript>0</LocationScript>
<MaintenanceScript>0</MaintenanceScript>
<FunctionScript>0</FunctionScript>
<LicenseData>H4sIAAAAAAAEAFWPwQrCMBBE74L/kA9oyMZ2qy1LLipeFERFz7HZQw6mJW3B/r20KNTTMDO8gaGjrzi0vLOdNXQbGjaa1KR06cO27kPH0QCpmaP9u/FxZNg82AVunR0SceWm49eTowBMxAr0RugyxRJTcT6RmkF0raJvujvH1tdhXP8Pvv2h986gzat1lrHMIAepNRfSQm4lAALmBaJj/PETQGr+abn4ACeGSZHjAAAA</LicenseData>
<ScriptData>H4sIAAAAAAAEAO1b8W/aOBT+HYn/weoN0WoNJAHK6HUIDuiG1FIO2PrDOm0mccHXEHOOU1ppur/97CRQiOa0pWQlaNLUxXlOYn95/t77nMdJ36B4ypqQwWo6BcCJ33a8Bm+27hiFwnqKkWU6ID83dCGFE8QQdaoXt4hSbKJPDqI2P3k4P9GFjjMj1DzJL/UOrv9gkSG0lm7oP/gz74KJXdVO8qsnVnp9cLFZLcEjo1wsIqWoHqmKpqGKAtUjqKhqSS0dVUolE5Xmd/Eu8OaXX55gcLs+Q9PFwOoGCwYQHAXnT13ba7dNYVtqLQOihQDSQ+1CqF0Mt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id>5a6c744e-4060-11e9-a06a-005056955de5</ScriptGuid>
<ScriptFlags>0</ScriptFlags>
<Parameters>OverrideUsername,OverridePassword</Parameters>
</Table>
</NewDataSet>
<PackedScript>
<NewDataSet>
<Table>
<ScriptId>6220</ScriptId>
<FolderId>320</FolderId>
<ScriptName>Generate Agent InstallerToken 1.4.1</ScriptName>
<ScriptNotes>Creates an Installer Token. The maximum token lifetime is just over 1 year.
Parameter Variables:
TokenReason: Purpose for Token Creation. Default is "Script <SCRIPTID>, requested by <USER>"
InstallerType: 1=Windows MSI, 2=Windows EXE, 3=Linux x86, 4=Linux x86_x64, 5=macOS
ValidityPeriod: Amount of time the token is valid, as X UNITs. (5 DAY, 2 MONTH, etc.) Default is 1 day. Integer units of SECOND, MINUTE, HOUR, DAY, WEEK, MONTH, QUARTER, YEAR are supported.
TargetLocationID: LocationID for the installer. Default is the LocationID for this computer.
Return Variables:
ExpirationDateUtc: Token Expiration Date String
InstallerToken: Generated Token
InstallerTypeID: InstallerTypeID for the token
TargetLocationID: LocationID for the token
Darren White - Apex Technology Management - v1.4.1 - 2020-07-08
Created 20200619
Modified by Chuck Fowler - 2021-04-07</ScriptNotes>
<Permission>0,</Permission>
<EditPermission>0,</EditPermission>
<ComputerScript>1</ComputerScript>
<LocationScript>0</LocationScript>
<MaintenanceScript>0</MaintenanceScript>
<FunctionScript>1</FunctionScript>
<LicenseData>H4sIAAAAAAAEAFWPzQqDMBCE74W+Qx7AkE0QNLIESv+gtJe29B7NCrlEiQbq2xelBXsaZme+hcGrbygMdLCjNficejISxaJ4T2HfpTBSNIBi5fD47n2cGTKn6J2dMnZJgZjUGVOggJVVnldQsN0NxaqMjyb6fnxRHHwX5q//h29+Tt6Z0lFRQw68VqC5lGS5bbXkANAoba0tXPvjFwDFest28wEczzbk2wAAAA==</LicenseData>
<ScriptData>H4sIAAAAAAAEAN1bW3ObOBR+z0z+g7azWaChNhA7F6d2oIa0dH1JDSTpNN0uNkrCFIMLeJPM+MevhLENGNHUc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YT4Htwf7rOgsiC+3e9XWFCtD81BV2PwKuMEdjTnpP0lP7rATG0YBOYNXO30bdSLC6EolyomwSCkrZ9qNNaekHlWz68w9axegwGWYgtc+94QmK6HVJMPpiLIAnhvh8D17kqgi8vv7AACOESnMNJgU+OO9RKmxgH0S88D+Ea9mCi8BZwCa8FRePuLORWekFPhHpVHETbqLcCTkohKW1Jb03QXdiq1OMn1b0dqK/+COsh6nlTqYpCKXVBSonHOqeBjsJq23aiMS6E456KR3ZcjApTi0yR6oxIaWIWRbVYaRtJla3MchEhHZ5yfyHucOSr4AnzZdyHhn2cqf1GUSUmQF6lW+ELPgfCM+qm2a+0vAh6B0IyO/7PI/0WSOgQ7MgAA</ScriptData>
<ScriptVersion>1</ScriptVersion>
<ScriptGuid>8de7b040-b209-11ea-af91-000c29aaa7df</ScriptGuid>
<ScriptFlags>0</ScriptFlags>
<Parameters>InstallerType,TargetLocationID,TokenReason,ValidityPeriod</Parameters>
</Table>
</NewDataSet>
<ScriptFolder>
<NewDataSet>
<Table>
<FolderID>320</FolderID>
<ParentID>205</ParentID>
<Name>Automate - Deploy</Name>
<GUID>5d7afdc0-bc7d-4367-88ee-344618bd4668</GUID>
</Table>
</NewDataSet>
</ScriptFolder>
<ScriptFolder>
<NewDataSet>
<Table>
<FolderID>205</FolderID>
<ParentID>0</ParentID>
<Name>CWA Custom - Chuck Fowler</Name>
<GUID>bfaf1167-4d6e-4d0c-ac12-3f9fd23046d8</GUID>
</Table>
</NewDataSet>
</ScriptFolder>
</PackedScript>
<ScriptFolder>
<NewDataSet>
<Table>
<FolderID>320</FolderID>
<ParentID>205</ParentID>
<Name>Automate - Deploy</Name>
<GUID>5d7afdc0-bc7d-4367-88ee-344618bd4668</GUID>
</Table>
</NewDataSet>
</ScriptFolder>
<ScriptFolder>
<NewDataSet>
<Table>
<FolderID>205</FolderID>
<ParentID>0</ParentID>
<Name>CWA Custom - Chuck Fowler</Name>
<GUID>bfaf1167-4d6e-4d0c-ac12-3f9fd23046d8</GUID>
</Table>
</NewDataSet>
</ScriptFolder>
</PackedScript>
<ScriptFolder>
<NewDataSet>
<Table>
<FolderID>320</FolderID>
<ParentID>205</ParentID>
<Name>Automate - Deploy</Name>
<GUID>5d7afdc0-bc7d-4367-88ee-344618bd4668</GUID>
</Table>
</NewDataSet>
</ScriptFolder>
<ScriptFolder>
<NewDataSet>
<Table>
<FolderID>205</FolderID>
<ParentID>0</ParentID>
<Name>CWA Custom - Chuck Fowler</Name>
<GUID>bfaf1167-4d6e-4d0c-ac12-3f9fd23046d8</GUID>
</Table>
</NewDataSet>
</ScriptFolder>
</PackedScript>
</LabTech_Expansion>