-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCreate variables for user running script_decoded.xml
118 lines (118 loc) · 3.58 KB
/
Create variables for user running script_decoded.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
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<LabTech_Expansion Version="1" Name="LabTech Script Expansion" Type="PackedScript">
<PackedScript>
<NewDataSet>
<Table>
<ScriptId>5690</ScriptId>
<FolderId>178</FolderId>
<ScriptName>Create variables for user running script</ScriptName>
<ScriptNotes>Example script: Create various variables populated with information from user who ran script</ScriptNotes>
<Permission>0,</Permission>
<EditPermission>0,</EditPermission>
<ComputerScript>1</ComputerScript>
<LocationScript>0</LocationScript>
<MaintenanceScript>0</MaintenanceScript>
<FunctionScript>0</FunctionScript>
<LicenseData>
<Type>1</Type>
<RunCounter>0</RunCounter>
<ExpireDate>Monday, February 04, 2013 3:04:19 PM</ExpireDate>
<ScriptVersion>0</ScriptVersion>
<ScriptGuid>64aa6b90-6edc-11e2-8c26-001e6730c7dc</ScriptGuid>
</LicenseData>
<ScriptData>
<Scripts>
<ExtraDataFields />
<Parameters />
<Globals />
<ScriptVersion>1</ScriptVersion>
<ScriptGuid>64aa6b90-6edc-11e2-8c26-001e6730c7dc</ScriptGuid>
</Scripts>
<ScriptSteps>
<Action>1</Action>
<FunctionId>1</FunctionId>
<Param1 />
<Param2 />
<Param3 />
<Param4 />
<Param5 />
<Sort>0</Sort>
<Continue>0</Continue>
<OsLimit>0</OsLimit>
<Indentation>0</Indentation>
</ScriptSteps>
<ScriptSteps>
<Action>2</Action>
<FunctionId>139</FunctionId>
<Param1>**** Create Technician variable - populated with tech's ID who ran the script</Param1>
<Param2 />
<Param3 />
<Param4 />
<Param5 />
<Sort>0</Sort>
<Continue>0</Continue>
<OsLimit>0</OsLimit>
<Indentation>0</Indentation>
</ScriptSteps>
<ScriptSteps>
<Action>2</Action>
<FunctionId>20</FunctionId>
<Param1>11</Param1>
<Param2>select userid from users where name = '@ltrunbyuser@'</Param2>
<Param3>technician</Param3>
<Param4 />
<Param5 />
<Sort>1</Sort>
<Continue>0</Continue>
<OsLimit>0</OsLimit>
<Indentation>1</Indentation>
</ScriptSteps>
<ScriptSteps>
<Action>2</Action>
<FunctionId>139</FunctionId>
<Param1>**** Create TechEmail variable - populated with tech's email who ran the script</Param1>
<Param2 />
<Param3 />
<Param4 />
<Param5 />
<Sort>2</Sort>
<Continue>0</Continue>
<OsLimit>0</OsLimit>
<Indentation>0</Indentation>
</ScriptSteps>
<ScriptSteps>
<Action>2</Action>
<FunctionId>20</FunctionId>
<Param1>11</Param1>
<Param2>select email from users where name = '@ltrunbyuser@'</Param2>
<Param3>tech_email</Param3>
<Param4 />
<Param5 />
<Sort>3</Sort>
<Continue>0</Continue>
<OsLimit>0</OsLimit>
<Indentation>1</Indentation>
</ScriptSteps>
</ScriptData>
<ScriptVersion>1</ScriptVersion><ScriptGuid>64aa6b90-6edc-11e2-8c26-001e6730c7dc</ScriptGuid><ScriptFlags>0</ScriptFlags><Parameters></Parameters></Table>
</NewDataSet>
<ScriptFolder>
<NewDataSet>
<Table>
<FolderID>178</FolderID>
<ParentID>173</ParentID>
<Name>Example Code</Name>
</Table>
</NewDataSet>
</ScriptFolder>
<ScriptFolder>
<NewDataSet>
<Table>
<FolderID>173</FolderID>
<ParentID>0</ParentID>
<Name>A3 Scripts</Name>
</Table>
</NewDataSet>
</ScriptFolder>
</PackedScript>
</LabTech_Expansion>