Giter Club home page Giter Club logo

jamfproscripts's People

Contributors

charliwest avatar mm2270 avatar rtrouton avatar rustymyers avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

jamfproscripts's Issues

Instant Reboot

selectable_SoftwareUpdate.sh
I'm wondering how difficult it would be to add a reboot option rather than waiting for the 5 minute progress bar to complete? I hate to remove the progress, but a reboot now would be a nice option to have.

create_ARD_computer_list.sh error

Hi Mike,

Thanks for all the hard work you do - you probably hear it often but we mean it! When you have time could you check out this consistent error I get when using this script:

Running Mac OS X 10.10.5 (14F1807)
Verifying /usr/local/jamf/bin/jamf...
/usr/local/jamf/bin/jamf is current (9.82)
Verifying /usr/sbin/jamf...
/usr/sbin/jamf does not exist.
Verifying /Library/Preferences/com.jamfsoftware.jamf.plist...
Preparing Policy...
Executing Policy 2016-05-10 at 4:10 PM | myusername | 1 Computer
Running script Create ARD list...
Script exit code: 0
Script result: 4878:4884: syntax error: A identifier can’t go after this “"”. (-2740)
-:1: parser error : Document is empty
-:1: parser error : Document is empty
-:1: parser error : Document is empty
ARD group plist named ".plist" was created successfully and moved to your Desktop
Submitting log to https://myjjurl:8443/
Finished.

The resulting plist looks like so:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>items</key>
    <array>
        <dict>
            <key>hardwareAddress</key>
            <string></string>
            <key>name</key>
            <string></string>
            <key>networkAddress</key>
            <string></string>
            <key>networkPort</key>
            <integer>3283</integer>
            <key>vncPort</key>
            <integer>5900</integer>
        </dict>
    </array>
    <key>listName</key>
    <string></string>
    <key>uuid</key>
    <string>D0680978-16BF-11E6-AD61-ACBC32883C51</string>
</dict>
</plist>

I get the same output when running it from the Terminal. Whats baffling me is the syntax error which I gather isn't happening on other JSS and OS version for other people.

Problem with policy banner

Every once and while I get a Mac that is stuck on the policy banner https://support.apple.com/en-us/HT202277 and the user can't click on the agree button.

I found under the policy banner is the lock screen from the com.LockLoginScreen.plist and this seems to prevent the update from finishing or the user is restarting the computer because they don't see the lock screen telling them not to restart the computer.

I'm thinking I could move or rename the banner file in /Library/Security/ when the com.LockLoginScreen.plist file is being created but my initial attempts have broken your script.

Any chance you could add in a check for the policy banner, disable it, and enable it after the the update is finished, or some other idea to prevent policy banner from hiding the update lock screen?

getJavaVersion has dangling \r

There's a \r at the end of currVersBase from the getJavaVersion, so the compare fails and will bug you in Self Service mode

Added a sed item to to kill \r: -e "s/"$'\r'"//g"

So it is now:
currVersBase=$( curl -sfA "${UAGENT}" "${URL}" 2>/dev/null | awk -F'[>|<]' '/Version/{print}' | sed -e 's/Version //;s/ Update /./' -e "s/"$'\r'"//g")

download_jss_scripts.sh downloads are empty

Heya, when running the download_jss_scripts.sh script all the files being downloaded are totally empty. I also get this error for each script:

DEBUG: Script name is: Microsoft Lync Uninstall
DEBUG: Script extension is: Microsoft Lync Uninstall
Downloaded script "Microsoft Lync Uninstall.sh"...
-:10: parser error : Opening and ending tag mismatch: br line 8 and p
</p>
    ^
-:11: parser error : Opening and ending tag mismatch: p line 8 and body
</body>
       ^
-:12: parser error : Opening and ending tag mismatch: body line 5 and html
</html>
       ^
-:13: parser error : Premature end of data in tag html line 1

^

Since I get that for each script download attempted it does not seem to be an issue with the scripts themselves since they can't all be completely identical.

Update Core Missing Apps

I'm not sure if this is still being maintained, but I thought I would ask.

Some of the apps are not able to be updated by the script, the ones I've had trouble with are Acrobat, FireFox and CyberDuck. The script will run and report to the user:

"No version was found on your Mac... OS version is too old or too new".

The logs in JSS for the policy also report an issue, but the policy does run successfully.

"We have internet access, but couldn't pull version information for Adobe Reader."

I am testing on 10.10.5 running JSS 9.81

selectable_SoftwareUpdate.sh need to add caffeinate

Hi,

I have had a couple laptops get stuck when using selectable_SoftwareUpdate.sh
I was able to ssh into the computers and send a command caffeinate -u that "woke" all the sleeping process and the computer rebooted as expected. The computers had no user logged in when the script ran. I'm running this script using Casper.

I was wondering if you could add to the selectable_SoftwareUpdate.sh script, the command caffeinate for computers OS X 10.9, or greater to prevent a computer from sleeping while this script is running.

Mike

reboot_scheduler exit error: shutdown: can't detach from console Error running script: return code was 255.

When using reboot_scheduler in a policy in Casper, the following error sometimes is returned:

Executing Policy Weekly Software Updates (Creative)
Running script reboot_scheduler.sh...
Script exit code: 255
Script result: Start timestamp: Fri Feb 19 09:58:22 PST 2016
A user "blee" is logged in on this Mac. Proceeding...
No pre-assigned deferral was set for the script. Prompting user for input...
2016-02-19 09:58:50.723 cocoaDialog[10231:92956] Couldn't contact spell checker for U.S. English
User chose a 5 minute deferral for reboot
reboot delay is 5
Beginning 5 minute reboot delay
shutdown: [pid 10548]
Shutdown at Fri Feb 19 10:03:57 2016.
shutdown: can't detach from console
Error running script: return code was 255.
Running command softwareupdate -i -a...
Result of command:
No updates are available.
Software Update Tool
Copyright 2002-2012 Apple Inc.

Finding available software
Running Recon...

Definitely running CD 3.0-beta 7. Is this an error with CD or with the script?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.