Giter Club home page Giter Club logo

filevault2_scripts's Introduction

Copyright (c) 2010, JAMF Software, LLC. All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. * Neither the name of the JAMF Software, LLC nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY JAMF SOFTWARE, LLC "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL JAMF SOFTWARE, LLC BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

filevault2_scripts's People

Contributors

bramgcohen avatar fortunst avatar homebysix avatar sdelsaz 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  avatar  avatar  avatar  avatar  avatar

filevault2_scripts's Issues

Quick Fix for Big Sur

Line 111 add: OSBigSur=/usr/bin/sw_vers -productVersion | awk -F. {'print $1'}

Line 177 add:

elif [[ $OSBigSur = 11 ]]; then
result=$(expect -c "
log_user 0
spawn fdesetup changerecovery -personal
expect "Enter the user name:"
send {${userName}}
send \r
expect "Enter a password for '/', or the recovery key:"
send {${userPass}}
send \r
log_user 1
expect eof
")

Copy and logo not displaying correctly

When this runs I just get the first line of text. Also the icon doesn't show up even with custom branding set..

To generate a new FileVault key
Enter login password for 'USER'

FileVault2_Scripts/reissueKey.sh

FileVault2_Scripts/reissueKey.sh
thanks for the script I would like to avoid asking the user to enter the password every time

if the MAC managed by JAMF or laps user can force any time with their admin user and pass

can you pls define the laps user or local admin user name and password via a parameter to avoid asking the user to enter the password

so this can be automated in the back end without any interaction.

Script output contains the password itself

  1. Script version we use in a Jamf policy: https://github.com/jamf/FileVault2_Scripts/blob/master/reissueKey.sh
  2. If user has {, } symbols in a password or their combination (not 100% sure here, but both of our users affected and my test user pass contained both { (before) and } (after)). For the log bellow password was: {12345<abc{abC,abc}
  3. Both script output in a terminal and a Jamf Policy log have a cleartext password:
    Script result: Prompting dfilevault for their login password. missing close-brace while executing "send {{12345<abc{abC,abc}} send \r log_user 1 expect eof " Successfully Changed FV2 Key button returned:Close

Success Message - Unnecessary Capitalization

reissueKey.sh

Line 185, successAlert
Line 192, errorAlert

Both lines unnecessarily capitalize "Changed" in the display dialog text. This should be changed to lowercase for proper grammar and consistency with the haltAlert which is already lowercase.

Reissued FileVault key does not sync to Jamf Pro

The script runs successfully by prompting for the users password and then reissuing a new recovery key. However, that new key never syncs to Jamf Pro. It will either display 'invalid' or 'unknown'. Does anyone have experience with this?

NSInvalidArgumentException

We are seeing this in our environment on a very limited number of 10.15.x devices. Any ideas?

Script result: Prompting wantedwriter for their login password.
2021-08-20 13:05:40.937 osascript[64483:2165352] -[__NSCFConstantString objectAtIndex:]: unrecognized selector sent to instance 0x7fff8e2540e0
2021-08-20 13:05:40.956 osascript[64483:2165352] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSCFConstantString objectAtIndex:]: unrecognized selector sent to instance 0x7fff8e2540e0'
*** First throw call stack:
(
0 CoreFoundation 0x00007fff36a21627 __exceptionPreprocess + 250
1 libobjc.A.dylib 0x00007fff6f8bd5bf objc_exception_throw + 48
2 CoreFoundation 0x00007fff36aa0757 -[NSObject(NSObject) __retain_OA] + 0
3 CoreFoundation 0x00007fff36985e8b forwarding + 1427
4 CoreFoundation 0x00007fff36985868 CF_forwarding_prep_0 + 120
5 CoreFoundation 0x00007fff36954967 CFArrayContainsValue + 197
6 HIServices 0x00007fff34c5b7b9 TransformProcessType + 927
7 osascript 0x000000010c9e402c osascript + 12332
8 HIToolbox 0x00007fff3566f7c5 AEInteractWithUser + 53
9 StandardAdditions 0x000000010f60c8b9 CSDSTEXTurl
+ 5865
10 StandardAdditions 0x000000010f5fd331 AEVTsysodlog + 85
11 AE 0x00007fff37d18203 _AppleEventsCheckInAppWithBlock + 18103
12 AE 0x00007fff37d27c83 AESendMessage + 2838
13 AE 0x00007fff37d33fb1 aeSend + 355
14 osascript 0x000000010c9e2b25 osascript + 6949
15 AppleScript 0x00007fff4a85b342 _Z13ComponentSendPK6AEDescPS_ii + 485
16 AppleScript 0x00007fff4a86cf0a _ZN15TUASApplication4SendEP25TStackFrame_UASRemoteSendP6AEDescS3_hhh + 2332
17 AppleScript 0x00007fff4a88dca7 _Z13UASRemoteSendhhhhhPh + 548
18 AppleScript 0x00007fff4a8661f0 _Z13UASActor_Sendhhh + 383
19 AppleScript 0x00007fff4a899402 _Z13UASValue_Sendhh14TUASClassIndexh + 326
20 AppleScript 0x00007fff4a870ff9 _Z11UASExecute1v + 288
21 AppleScript 0x00007fff4a844b26 _Z14ASExecuteEventPK6AEDescjiPj + 614
22 AppleScript 0x00007fff4a83d971 AppleScriptComponent + 1677
23 AppleScript 0x00007fff4a856bdb _ZN12AGenericCall8DelegateEP23ComponentInstanceRecord + 37
24 AppleScript 0x00007fff4a856ba1 _ZN15AGenericManager13HandleOSACallEP19ComponentParameters + 57
25 AppleScript 0x00007fff4a85618c GenericComponent + 156
26 OpenScripting 0x00007fff358b23e2 OSAExecuteEvent + 50
27 osascript 0x000000010c9e35bd osascript + 9661
28 libdyld.dylib 0x00007fff70a65cc9 start + 1
29 ??? 0x0000000000000003 0x0 + 3
)
libc++abi.dylib: terminating with uncaught exception of type NSException
Error Changing Key

Error: Password is required.
Error: User could not be authenticated.
Error: Unable to unlock or authenticate to FileVault.

2021-08-20 13:05:51.343 osascript[64491:2165814] -[__NSCFConstantString objectAtIndex:]: unrecognized selector sent to instance 0x7fff8e2540e0
2021-08-20 13:05:51.344 osascript[64491:2165814] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSCFConstantString objectAtIndex:]: unrecognized selector sent to instance 0x7fff8e2540e0'
*** First throw call stack:
(
0 CoreFoundation 0x00007fff36a21627 __exceptionPreprocess + 250
1 libobjc.A.dylib 0x00007fff6f8bd5bf objc_exception_throw + 48
2 CoreFoundation 0x00007fff36aa0757 -[NSObject(NSObject) __retain_OA] + 0
3 CoreFoundation 0x00007fff36985e8b forwarding + 1427
4 CoreFoundation 0x00007fff36985868 CF_forwarding_prep_0 + 120
5 CoreFoundation 0x00007fff36954967 CFArrayContainsValue + 197
6 HIServices 0x00007fff34c5b7b9 TransformProcessType + 927
7 osascript 0x000000010c27702c osascript + 12332
8 HIToolbox 0x00007fff3566f7c5 AEInteractWithUser + 53
9 StandardAdditions 0x000000010ee9e8b9 CSDSTEXTurl
+ 5865
10 StandardAdditions 0x000000010ee8f331 AEVTsysodlog + 85
11 AE 0x00007fff37d18203 _AppleEventsCheckInAppWithBlock + 18103
12 AE 0x00007fff37d27c83 AESendMessage + 2838
13 AE 0x00007fff37d33fb1 aeSend + 355
14 osascript 0x000000010c275b25 osascript + 6949
15 AppleScript 0x00007fff4a85b342 _Z13ComponentSendPK6AEDescPS_ii + 485
16 AppleScript 0x00007fff4a86cf0a _ZN15TUASApplication4SendEP25TStackFrame_UASRemoteSendP6AEDescS3_hhh + 2332
17 AppleScript 0x00007fff4a88dca7 _Z13UASRemoteSendhhhhhPh + 548
18 AppleScript 0x00007fff4a8661f0 _Z13UASActor_Sendhhh + 383
19 AppleScript 0x00007fff4a899402 _Z13UASValue_Sendhh14TUASClassIndexh + 326
20 AppleScript 0x00007fff4a870ff9 _Z11UASExecute1v + 288
21 AppleScript 0x00007fff4a844b26 _Z14ASExecuteEventPK6AEDescjiPj + 614
22 AppleScript 0x00007fff4a83d971 AppleScriptComponent + 1677
23 AppleScript 0x00007fff4a856bdb _ZN12AGenericCall8DelegateEP23ComponentInstanceRecord + 37
24 AppleScript 0x00007fff4a856ba1 _ZN15AGenericManager13HandleOSACallEP19ComponentParameters + 57
25 AppleScript 0x00007fff4a85618c GenericComponent + 156
26 OpenScripting 0x00007fff358b23e2 OSAExecuteEvent + 50
27 osascript 0x000000010c2765bd osascript + 9661
28 libdyld.dylib 0x00007fff70a65cc9 start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
/Library/Application Support/JAMF/tmp/FileVault - Reissue Recovery Key: line 191: 64491 Abort trap: 6 /usr/bin/osascript -e "
on run
display dialog "FileVault Key not Changed" & return & "$result" buttons {"Cancel", "Try Again"} default button 2 with title "$orgName FileVault Key Reset" with icon POSIX file "$brandIcon"
end run"
Prompting wantedwriter for their login password.
2021-08-20 13:05:51.528 osascript[64492:2165848] -[__NSCFConstantString objectAtIndex:]: unrecognized selector sent to instance 0x7fff8e2540e0
2021-08-20 13:05:51.529 osascript[64492:2165848] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSCFConstantString objectAtIndex:]: unrecognized selector sent to instance 0x7fff8e2540e0'
*** First throw call stack:
(
0 CoreFoundation 0x00007fff36a21627 __exceptionPreprocess + 250
1 libobjc.A.dylib 0x00007fff6f8bd5bf objc_exception_throw + 48
2 CoreFoundation 0x00007fff36aa0757 -[NSObject(NSObject) __retain_OA] + 0
3 CoreFoundation 0x00007fff36985e8b forwarding + 1427
4 CoreFoundation 0x00007fff36985868 CF_forwarding_prep_0 + 120
5 CoreFoundation 0x00007fff36954967 CFArrayContainsValue + 197
6 HIServices 0x00007fff34c5b7b9 TransformProcessType + 927
7 osascript 0x00000001098c202c osascript + 12332
8 HIToolbox 0x00007fff3566f7c5 AEInteractWithUser + 53
9 StandardAdditions 0x000000010c4e98b9 CSDSTEXTurl
+ 5865
10 StandardAdditions 0x000000010c4da331 AEVTsysodlog + 85
11 AE 0x00007fff37d18203 _AppleEventsCheckInAppWithBlock + 18103
12 AE 0x00007fff37d27c83 AESendMessage + 2838
13 AE 0x00007fff37d33fb1 aeSend + 355
14 osascript 0x00000001098c0b25 osascript + 6949
15 AppleScript 0x00007fff4a85b342 _Z13ComponentSendPK6AEDescPS_ii + 485
16 AppleScript 0x00007fff4a86cf0a _ZN15TUASApplication4SendEP25TStackFrame_UASRemoteSendP6AEDescS3_hhh + 2332
17 AppleScript 0x00007fff4a88dca7 _Z13UASRemoteSendhhhhhPh + 548
18 AppleScript 0x00007fff4a8661f0 _Z13UASActor_Sendhhh + 383
19 AppleScript 0x00007fff4a899402 _Z13UASValue_Sendhh14TUASClassIndexh + 326
20 AppleScript 0x00007fff4a870ff9 _Z11UASExecute1v + 288
21 AppleScript 0x00007fff4a844b26 _Z14ASExecuteEventPK6AEDescjiPj + 614
22 AppleScript 0x00007fff4a83d971 AppleScriptComponent + 1677
23 AppleScript 0x00007fff4a856bdb _ZN12AGenericCall8DelegateEP23ComponentInstanceRecord + 37
24 AppleScript 0x00007fff4a856ba1 _ZN15AGenericManager13HandleOSACallEP19ComponentParameters + 57
25 AppleScript 0x00007fff4a85618c GenericComponent + 156
26 OpenScripting 0x00007fff358b23e2 OSAExecuteEvent + 50
27 osascript 0x00000001098c15bd osascript + 9661
28 libdyld.dylib 0x00007fff70a65cc9 start + 1
29 ??? 0x0000000000000003 0x0 + 3
)
libc++abi.dylib: terminating with uncaught exception of type NSException
Error Changing Key

Error: Password is required.
Error: User could not be authenticated.
Error: Unable to unlock or authenticate to FileVault.

2021-08-20 13:06:01.847 osascript[64497:2166533] -[__NSCFConstantString objectAtIndex:]: unrecognized selector sent to instance 0x7fff8e2540e0
2021-08-20 13:06:01.848 osascript[64497:2166533] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSCFConstantString objectAtIndex:]: unrecognized selector sent to instance 0x7fff8e2540e0'
*** First throw call stack:
(
0 CoreFoundation 0x00007fff36a21627 __exceptionPreprocess + 250
1 libobjc.A.dylib 0x00007fff6f8bd5bf objc_exception_throw + 48
2 CoreFoundation 0x00007fff36aa0757 -[NSObject(NSObject) __retain_OA] + 0
3 CoreFoundation 0x00007fff36985e8b forwarding + 1427
4 CoreFoundation 0x00007fff36985868 CF_forwarding_prep_0 + 120
5 CoreFoundation 0x00007fff36954967 CFArrayContainsValue + 197
6 HIServices 0x00007fff34c5b7b9 TransformProcessType + 927
7 osascript 0x00000001077a202c osascript + 12332
8 HIToolbox 0x00007fff3566f7c5 AEInteractWithUser + 53
9 StandardAdditions 0x000000010a3c78b9 CSDSTEXTurl
+ 5865
10 StandardAdditions 0x000000010a3b8331 AEVTsysodlog + 85
11 AE 0x00007fff37d18203 _AppleEventsCheckInAppWithBlock + 18103
12 AE 0x00007fff37d27c83 AESendMessage + 2838
13 AE 0x00007fff37d33fb1 aeSend + 355
14 osascript 0x00000001077a0b25 osascript + 6949
15 AppleScript 0x00007fff4a85b342 _Z13ComponentSendPK6AEDescPS_ii + 485
16 AppleScript 0x00007fff4a86cf0a _ZN15TUASApplication4SendEP25TStackFrame_UASRemoteSendP6AEDescS3_hhh + 2332
17 AppleScript 0x00007fff4a88dca7 _Z13UASRemoteSendhhhhhPh + 548
18 AppleScript 0x00007fff4a8661f0 _Z13UASActor_Sendhhh + 383
19 AppleScript 0x00007fff4a899402 _Z13UASValue_Sendhh14TUASClassIndexh + 326
20 AppleScript 0x00007fff4a870ff9 _Z11UASExecute1v + 288
21 AppleScript 0x00007fff4a844b26 _Z14ASExecuteEventPK6AEDescjiPj + 614
22 AppleScript 0x00007fff4a83d971 AppleScriptComponent + 1677
23 AppleScript 0x00007fff4a856bdb _ZN12AGenericCall8DelegateEP23ComponentInstanceRecord + 37
24 AppleScript 0x00007fff4a856ba1 _ZN15AGenericManager13HandleOSACallEP19ComponentParameters + 57
25 AppleScript 0x00007fff4a85618c GenericComponent + 156
26 OpenScripting 0x00007fff358b23e2 OSAExecuteEvent + 50
27 osascript 0x00000001077a15bd osascript + 9661
28 libdyld.dylib 0x00007fff70a65cc9 start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
/Library/Application Support/JAMF/tmp/FileVault - Reissue Recovery Key: line 191: 64497 Abort trap: 6 /usr/bin/osascript -e "
on run
display dialog "FileVault Key not Changed" & return & "$result" buttons {"Cancel", "Try Again"} default button 2 with title "$orgName FileVault Key Reset" with icon POSIX file "$brandIcon"
end run"
Prompting wantedwriter for their login password.
2021-08-20 13:06:02.054 osascript[64498:2166562] -[__NSCFConstantString objectAtIndex:]: unrecognized selector sent to instance 0x7fff8e2540e0
2021-08-20 13:06:02.055 osascript[64498:2166562] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSCFConstantString objectAtIndex:]: unrecognized selector sent to instance 0x7fff8e2540e0'
*** First throw call stack:
(
0 CoreFoundation 0x00007fff36a21627 __exceptionPreprocess + 250
1 libobjc.A.dylib 0x00007fff6f8bd5bf objc_exception_throw + 48
2 CoreFoundation 0x00007fff36aa0757 -[NSObject(NSObject) __retain_OA] + 0
3 CoreFoundation 0x00007fff36985e8b forwarding + 1427
4 CoreFoundation 0x00007fff36985868 CF_forwarding_prep_0 + 120
5 CoreFoundation 0x00007fff36954967 CFArrayContainsValue + 197
6 HIServices 0x00007fff34c5b7b9 TransformProcessType + 927
7 osascript 0x000000010698802c osascript + 12332
8 HIToolbox 0x00007fff3566f7c5 AEInteractWithUser + 53
9 StandardAdditions 0x00000001095b08b9 CSDSTEXTurl
+ 5865
10 StandardAdditions 0x00000001095a1331 AEVTsysodlog + 85
11 AE 0x00007fff37d18203 _AppleEventsCheckInAppWithBlock + 18103
12 AE 0x00007fff37d27c83 AESendMessage + 2838
13 AE 0x00007fff37d33fb1 aeSend + 355
14 osascript 0x0000000106986b25 osascript + 6949
15 AppleScript 0x00007fff4a85b342 _Z13ComponentSendPK6AEDescPS_ii + 485
16 AppleScript 0x00007fff4a86cf0a _ZN15TUASApplication4SendEP25TStackFrame_UASRemoteSendP6AEDescS3_hhh + 2332
17 AppleScript 0x00007fff4a88dca7 _Z13UASRemoteSendhhhhhPh + 548
18 AppleScript 0x00007fff4a8661f0 _Z13UASActor_Sendhhh + 383
19 AppleScript 0x00007fff4a899402 _Z13UASValue_Sendhh14TUASClassIndexh + 326
20 AppleScript 0x00007fff4a870ff9 _Z11UASExecute1v + 288
21 AppleScript 0x00007fff4a844b26 _Z14ASExecuteEventPK6AEDescjiPj + 614
22 AppleScript 0x00007fff4a83d971 AppleScriptComponent + 1677
23 AppleScript 0x00007fff4a856bdb _ZN12AGenericCall8DelegateEP23ComponentInstanceRecord + 37
24 AppleScript 0x00007fff4a856ba1 _ZN15AGenericManager13HandleOSACallEP19ComponentParameters + 57
25 AppleScript 0x00007fff4a85618c GenericComponent + 156
26 OpenScripting 0x00007fff358b23e2 OSAExecuteEvent + 50
27 osascript 0x00000001069875bd osascript + 9661
28 libdyld.dylib 0x00007fff70a65cc9 start + 1
29 ??? 0x0000000000000003 0x0 + 3
)
libc++abi.dylib: terminating with uncaught exception of type NSException
Error Changing Key
2021-08-20 13:06:12.407 osascript[64503:2167214] -[__NSCFConstantString objectAtIndex:]: unrecognized selector sent to instance 0x7fff8e2540e0
2021-08-20 13:06:12.408 osascript[64503:2167214] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSCFConstantString objectAtIndex:]: unrecognized selector sent to instance 0x7fff8e2540e0'
*** First throw call stack:
(
0 CoreFoundation 0x00007fff36a21627 __exceptionPreprocess + 250
1 libobjc.A.dylib 0x00007fff6f8bd5bf objc_exception_throw + 48
2 CoreFoundation 0x00007fff36aa0757 -[NSObject(NSObject) __retain_OA] + 0
3 CoreFoundation 0x00007fff36985e8b forwarding + 1427
4 CoreFoundation 0x00007fff36985868 CF_forwarding_prep_0 + 120
5 CoreFoundation 0x00007fff36954967 CFArrayContainsValue + 197
6 HIServices 0x00007fff34c5b7b9 TransformProcessType + 927
7 osascript 0x000000010feef02c osascript + 12332
8 HIToolbox 0x00007fff3566f7c5 AEInteractWithUser + 53
9 StandardAdditions 0x0000000112b168b9 CSDSTEXTurl
+ 5865
10 StandardAdditions 0x0000000112b07331 AEVTsysodlog + 85
11 AE 0x00007fff37d18203 _AppleEventsCheckInAppWithBlock + 18103
12 AE 0x00007fff37d27c83 AESendMessage + 2838
13 AE 0x00007fff37d33fb1 aeSend + 355
14 osascript 0x000000010feedb25 osascript + 6949
15 AppleScript 0x00007fff4a85b342 _Z13ComponentSendPK6AEDescPS_ii + 485
16 AppleScript 0x00007fff4a86cf0a _ZN15TUASApplication4SendEP25TStackFrame_UASRemoteSendP6AEDescS3_hhh + 2332
17 AppleScript 0x00007fff4a88dca7 _Z13UASRemoteSendhhhhhPh + 548
18 AppleScript 0x00007fff4a8661f0 _Z13UASActor_Sendhhh + 383
19 AppleScript 0x00007fff4a899402 _Z13UASValue_Sendhh14TUASClassIndexh + 326
20 AppleScript 0x00007fff4a870ff9 _Z11UASExecute1v + 288
21 AppleScript 0x00007fff4a844b26 _Z14ASExecuteEventPK6AEDescjiPj + 614
22 AppleScript 0x00007fff4a83d971 AppleScriptComponent + 1677
23 AppleScript 0x00007fff4a856bdb _ZN12AGenericCall8DelegateEP23ComponentInstanceRecord + 37
24 AppleScript 0x00007fff4a856ba1 _ZN15AGenericManager13HandleOSACallEP19ComponentParameters + 57
25 AppleScript 0x00007fff4a85618c GenericComponent + 156
26 OpenScripting 0x00007fff358b23e2 OSAExecuteEvent + 50
27 osascript 0x000000010feee5bd osascript + 9661
28 libdyld.dylib 0x00007fff70a65cc9 start + 1
29 ??? 0x0000000000000003 0x0 + 3
)
libc++abi.dylib: terminating with uncaught exception of type NSException
/Library/Application Support/JAMF/tmp/FileVault - Reissue Recovery Key: line 205: 64503 Abort trap: 6 /usr/bin/osascript -e "
on run
display dialog "FileVault Key not changed" & return & "$haltMsg" buttons {"Close"} default button 1 with title "$orgName FileVault Key Reset" with icon POSIX file "$brandIcon"
end run
"
Quitting.. Too Many failures

Creating app with Platypus

Hello!

I tried to create an application using your script as we would like to assist our service desk rotating filevault key for macOS users.

However, when I type a wrong password, the return result is not getting processed. It says 'Successfully Changed FV2 Key' every time.

Have you ever tried testing this scrip using Platypus?

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.