forked from jamf/Jamf-Nation-Extension-Attributes
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGPU.xml
More file actions
13 lines (13 loc) · 672 Bytes
/
Copy pathGPU.xml
File metadata and controls
13 lines (13 loc) · 672 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
<?xml version="1.0" encoding="UTF-8"?>
<extensionAttribute>
<displayName>GPU</displayName>
<description>This attribute displays the GPU of the computer. It's particularly useful, if you want to scope computers with nVidia video cards, so you can make new drivers or CUDA available for your users.</description>
<dataType>string</dataType>
<scriptContentsMac>#!/bin/sh
# Meza Hsu
# 2016.02.09
# Find out which GPU the computer has.
VideoCard=$(system_profiler SPDisplaysDataType | grep 'Chipset Model:' | cut -f2- -d':')
echo "<result>$VideoCard</result>"</scriptContentsMac>
<scriptContentsWindows/>
</extensionAttribute>