Dear,Welcome to the board.
We have create a little script.
The first part can be used for code for all users.
The second part will only be executed for all NONE ADMINISTRATORS users
and for an ADMINISTRATORS user that press YES or that doesn't response
to the question after 1 minute.
code:
;
; - first part of your script f.e. to mapped minimum amount of drives
;
$execute_mode="yes"
IF (INGROUP("Administrators") <> 0)
$answer=MessageBox("Administrator, do you want to run the script?","Administrator",20,60)
IF ($answer = 7) ; - 7 = No -
$execute_mode="no"
ELSE ; - 6 = Yes / -1 = No response from user -
$execute_mode="yes"
ENDIF
ENDIF
IF ($execute_mode <> "yes")
GOTO end_script
ENDIF
;
; - second part of your script f.e. registry settings
;
:end_script
EXIT
Greetings.
------------------
Site map: