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
Copy file name to clipboardExpand all lines: assets/TRMM-create-update.ps1
+51-30Lines changed: 51 additions & 30 deletions
Original file line number
Diff line number
Diff line change
@@ -1,29 +1,33 @@
1
1
<#
2
2
.SYNOPSIS
3
-
Create or update asset from Tactical RMM to ITFlow. Uses PC serial to check if asset exists in ITFlow.
3
+
Create or update asset from Tactical RMM to ITFlow. Uses MAC address to check if asset exists in ITFlow.
4
4
5
5
.REQUIREMENTS
6
6
- ITFlow API key.
7
7
- Global key in TacticalRMM named "ITFlow_API" with your ITFlow API key as the value.
8
8
- Global key in TacticalRMM named "ITFlow_url" with your ITFlow URL as the value.
9
9
- Client custom field in TacticalRMM named "ITFlow_client_ID".
10
+
- Site custom field in TacticalRMM named "ITFlow_location_ID"
11
+
- Site custom field in TacticalRMM named "ITFlow_network_ID"
10
12
- Each client in TacticalRMM should have its ITFlow_client_ID populated with the client_id found in ITFlow.
11
-
(To find the id, check the URL in ITFlow once you select a client)
13
+
To find the ID, check the URL in ITFlow once you select a client.
14
+
- Each client site in TacticalRMM should have ITFlow_location_ID and ITFlow_network_ID populated with the IDs.
15
+
To find the IDs run this script on one PC. Assign the PC to a location and network in ITFlow. Run this script again and take note of the location and network IDs.
12
16
13
17
.NOTES
14
-
- Uses PC serial number to check if asset exists in ITFlow.
18
+
- Uses PC MAC address to check if asset exists in ITFlow.
15
19
- Make sure to add the below script arguments to the script arguments section in TacticalRMM.
16
20
- This script can be adapted to any RMM. TacticalRMM is only used to store the ITFlow URL, ITFlow API key, and client IDs.
17
21
18
22
.SCRIPT_ARGUMENTS
19
23
-ITFlow_API {{global.ITFlow_API}}
20
24
-ITFlow_url {{global.ITFlow_url}}
21
25
-ITFlow_client_ID {{client.ITFlow_client_ID}}
26
+
-ITFlow_location_ID {{site.ITFlow_location_ID}}
27
+
-ITFlow_network_ID {{site.ITFlow_network_ID}}
22
28
23
-
.TODO
24
-
- Error flags
25
-
26
29
.VERSION
30
+
- v1.2 Changed search from serial to MAC address, added location ID and network ID
27
31
- v1.1 Added verbosity, forced TLS 1.2, added exit if API read failure
0 commit comments