Hi
I’m new here, but I really need some help. I’m pretty new to actionscripting, so i hope you guys can help me out.
I would like to wipe the protector key of bitlocker from the device (in case when it’s stolen etc).
Therefore I had the following Fixlet:
delete __createfile
createfile until __END__
C:\Windows\System32\manage-bde -fr c:
set SWDExitCode=%errorlevel%
exit %SWDExitCode%
__END__
move __createfile run_{id of active action}.bat
wait run_{id of active action}.bat
delete run_{id of active action}.bat
// Get the return code of the previous action.
parameter "returnCode" = "{exit code of action}"
// Delete the protector file before restarting: it needs to be renewed afterwards
if {exists folder "C:\Apps\IEM\TMP"}
if {exists file "C:\Apps\IEM\TMP\Protectors.dat"}
delete "C:\Apps\IEM\TMP\Protectors.dat"
endif
endif
// Restart the computer
run cmd /c "START shutdown /r /t 05"
// Task will now exit.
exit {parameter "returnCode"}
The problem I have is that the Fixlet doesn’t recognize my commando in the bat-file. If I change this commando with another one like “shutdown -r -t 0” then it works. So it does not recognize the bitlocker command.
I also tried to change “System32” with “Sysnative”, but without any luck (which one is best to use btw?)
I hope you guys can help me out. If you need more info i’m happy to give it to you.
Thanks!
Greetings
Arne