script de logon...

28/06/2006 - 01:33 por Edmundo J. Davila | Informe spam
Hola amig@s:

Alguien podria ayudarme con un script que me permita dar un saludo cada vez
que un usuario hace un logon (buenos dias, tardes o noches, usuario fulano
de tal) y que mapee una unidad donde exista una carpeta con el login del
usuario que se acaba de autenticar.

Además tengo 2 preguntas:

1. ¿en que ruta debo poner este script y donde le indico que cada vez que
el usuario se logonee se ejecute el script?
2. ¿como hago para asignar solamente una cuota de 2MB como maximo a cada
carpeta de usuario?

De antemano muchas gracias por su ayuda.

Saludos,

Edmundo J. Dávila
 

Leer las respuestas

#1 Rodolfo Parrado Gutiérrez [MVP]
28/06/2006 - 02:09 | Informe spam
Por partes las cuotas de disco deben ser configuradas en el servidor en la particion donde graban. Si dispones de R2 2003, puedes colocar cuotas sobre carpetas.

en la pagina www.OptimumX.com puedes usar message box para el mensaje

este es un ejemplo

MessageBox.exe /C:Bienvenido /M: Hola %username% Esta Pc es %Computername% Validado en %logonserver% /w:30




Displays a custom message box and returns the user's
response (which button was pressed) in the exit code.

The syntax of this command is:

MessageBox.exe /C:caption /M:message [/W:seconds] [/T:type] [/T:?]

/C: specifies the caption to display in the title bar.
/M: specifies the message to display to the user.
/W: number of seconds to wait before timing out (optional).
/T: specifies the type of icon and buttons (optional).
/T:? Displays extended help for /T: options and return codes.

All occurrences of \ will be converted to a new-line character.
All occurrences of \\t will be converted to a tab character.

/? displays this syntax and always returns 0.
/T:? displays extended syntax and always returns 0.
Success returns a non-zero value, zero indicates a failure.


Copyright ©1999-2003 Marty List,



The number following the /T: switch in MessageBox.exe specifies the
contents and behavior of the dialog box. This parameter can be a
combination of flags from the following groups. As an example, to
display the Yes, No and Cancel buttons, add 3. To show a yellow
exclamation icon add 48. To make 'Cancel' the default button, add
512. Like this /T:563 (3+48+512V3)

Buttons to display
0 Display OK button only.
1 Display OK and Cancel buttons.
2 Display Abort, Retry, and Ignore buttons.
3 Display Yes, No, and Cancel buttons.
4 Display Yes and No buttons.
5 Display Retry and Cancel buttons.

Icon to display
16 Stop symbol
32 Question mark
48 Exclamation mark
64 Information symbol

Default button
0 First button is default.
256 Second button is default.
512 Third button is default.

Modality
0 Application-modal. The user must respond to the message box before
continuing work in the application.
4096 System-modal. All applications are suspended until the user
responds to the message box.

Return Codes
0 There was an error or the user did not respond within the specified
time-out period.
1 OK button selected.
2 Cancel button selected.
3 Abort button selected.
4 Retry button selected.
5 Ignore button selected.
6 Yes button selected.
7 No button selected.


==

System Requirements:

Windows XP; Windows 2000; Windows NT
Windows ME; Windows 98; Windows 95


Revision History:

1.10 03/06/2003
Fixed bug with leading \t and in message.
Fixed bug with consecutive backslashes in message.
Added support for the /T:? switch.

1.00 01/29/2000
Initial release.


Rodolfo Parrado Gutiérrez
https://mvp.support.microsoft.com/p...68a-e09...
Bogotá - Colombia
¬¬-
MVP Windows Server Security
MCT, MCSE, MCSA, MCDST, MCP+I
¬¬-
Este mensaje se proporciona "como está" sin garantías de ninguna índole, y
no otorga ningún derecho.

¬¬-
"Edmundo J. Davila" wrote in message news:%230%
Hola :

Alguien podria ayudarme con un script que me permita dar un saludo cada vez
que un usuario hace un logon (buenos dias, tardes o noches, usuario fulano
de tal) y que mapee una unidad donde exista una carpeta con el login del
usuario que se acaba de autenticar.

Además tengo 2 preguntas:

1. ¿en que ruta debo poner este script y donde le indico que cada vez que
el usuario se logonee se ejecute el script?
2. ¿como hago para asignar solamente una cuota de 2MB como maximo a cada
carpeta de usuario?

De antemano muchas gracias por su ayuda.

Saludos,

Edmundo J. Dávila


Preguntas similares