1 Reply Latest reply: Jan 27, 2013 10:15 PM by TeenTitan
wjr02149 Level 1 Level 1 (0 points)

Good morning, I am attempting to disable the iSight on all of the iMacs in a building.  I have found two ways to do this, an app named "iSightdisabler3.5" and a script "disableiSight.sh".

 

I was trying to use the later by send out:

 

"Disabling the iSight Camera Drivers..."

 

if [ -d "$targetVolume/Library/Application Support/JAMF/DisabledExtensions/" ]; then

    /bin/mv "$targetVolume/System/Library/Extensions/Apple_iSight.kext" "$targetVolume/Library/Application Support/JAMF/DisabledExtensions/"

    /bin/mv "$targetVolume/System/Library/QuickTime/QuickTimeUSBVDCDigitizer.component" "$targetVolume/Library/Application Support/JAMF/DisabledExtensions/"

    /bin/mv "$targetVolume/System/Library/PrivateFrameworks/CoreMediaIOServicesPrivate.fram ework/Versions/A/Resources/VDC.plugin" "$targetVolume/Library/Application Support/JAMF/DisabledExtensions/"

    /bin/mv "$targetVolume/System/Library/PrivateFrameworks/CoreMediaIOServices.framework/V ersions/A/Resources/VDC.plugin/Contents/VDC" "$targetVolume/Library/Application Support/JAMF/DisabledExtensions/"

else

    /bin/mkdir -p "$targetVolume/Library/Application Support/JAMF/DisabledExtensions/"

    /bin/mv "$targetVolume/System/Library/Extensions/Apple_iSight.kext" "$targetVolume/Library/Application Support/JAMF/DisabledExtensions/"

    /bin/mv "$targetVolume/System/Library/QuickTime/QuickTimeUSBVDCDigitizer.component" "$targetVolume/Library/Application Support/JAMF/DisabledExtensions/"

    /bin/mv "$targetVolume/System/Library/PrivateFrameworks/CoreMediaIOServicesPrivate.fram ework/Versions/A/Resources/VDC.plugin" "$targetVolume/Library/Application Support/JAMF/DisabledExtensions/"

    /bin/mv "$targetVolume/System/Library/PrivateFrameworks/CoreMediaIOServices.framework/V ersions/A/Resources/VDC.plugin/Contents/VDC" "$targetVolume/Library/Application Support/JAMF/DisabledExtensions/"

fi

 

and the result is:

 

Error.png

I am not very good at using terminal via ARD and often my commands fail, any help would be much appreciated. 


Mac Pro, OS X Server, Lion
  • TeenTitan Level 4 Level 4 (2,410 points)

    Do you have JSS? I ask because your script contains the word JAMF allot.. if you do have a jss, is there a reason your trying to use ARD instead of your JSS to run this script?

     

    When issuing the script from ARD as a send unix command, Have you cosnidered using the option to run command as user "root" ?

     

    are you sure you want to do this? the script look like it dose more then just disable the isite. And do you know how to undo this if you change your mind?