Twitter iPhone pliant OnePlus 11 PS5 Disney+ Orange Livebox Windows 11

gestion acces internet pour utilisateurs

11 réponses
Avatar
grodep
Bonjour a tous et bonne année, voilà ma question : j'aimerai restreindre a
certaines plages horaires l'acces a internet selon les comptes utilisateurs
créés sur un pc( XP pro) . Il me semble qu'a partir de l'invite de commande
il était très facile de faire ça, le probleme est que j'ai gravement oublié
la commande qui permettait celà .. si qqun pouvait me la rappeler ainsi que
la syntaxe de celle-ci
Merci d'avance

10 réponses

1 2
Avatar
Fabrice [MVP]
Bonsoir,

Si cela était "TRÈS FACILE" je pense, que vous sauriez le faire :)

En fait, je ne pense pas qu'une solution de type "ligne de commande" sache
le faire :)

Je pense que SEUL un programme EXTERNE à Windows XP, peux vous faire une tel
gestion des accès, un programme de PROXY, comme ProxyPlus, ou WinProxy, et
sûrement des tas d'autres.

--
Fabrice
Microsoft MVP
http://www.fab3d.fr.st
Faq Windows XP :
http://a.vouillon.online.fr/faq-winxp.htm

"Frappe avec ta tête"
Avatar
grodep
je m'en voudrais de contredire un mvp, mais suis pourtant sur d'avoir déjà
vu et meme appliqué avec succes cette méthode qui permet en quelques lignes
de commande de regler jour par jour et pour chaque utilisateur les plages
horaires d'autorisation de connexion... m'en vais rechercher ça, et vous
tiendrais au courant si je remets la main dessus :)
Mais tant que j'ai pas trouvé, je mettrai ça sur le compte de ma mémoire qui
me joue des tours, et qu'en fait il s'agissait d'autre choses ;)
"Fabrice [MVP]" a écrit dans le message de
news:
Bonsoir,

Si cela était "TRÈS FACILE" je pense, que vous sauriez le faire :)

En fait, je ne pense pas qu'une solution de type "ligne de commande" sache
le faire :)

Je pense que SEUL un programme EXTERNE à Windows XP, peux vous faire une
tel gestion des accès, un programme de PROXY, comme ProxyPlus, ou
WinProxy, et sûrement des tas d'autres.

--
Fabrice
Microsoft MVP
http://www.fab3d.fr.st
Faq Windows XP :
http://a.vouillon.online.fr/faq-winxp.htm

"Frappe avec ta tête"



Avatar
Fabrice [MVP]
Non, si j'ai tore, j'ai tore :D j'assume, je ne suis qu'un être humain !

En plus, si je me trompe, j'apprend encore un truc en plus, c'est tout
bénéfique :)

Ce qui est certain, c'est que cela ne peux pas être "Très Simple"
-
Fabrice
Microsoft MVP
http://www.fab3d.fr.st
Faq Windows XP :
http://a.vouillon.online.fr/faq-winxp.htm

"Frappe avec ta tête"
Avatar
Philippe T [MS]
Bonjour,

Je crois que ce dont vous parler c'est : net user et plus particulièrement
l'option "/times"

<<<
Net user
Adds or modifies user accounts or displays user account information.

Syntax
net user [UserName [Password | *] [Options]] [/domain]

net user [UserName {Password | *} /add [Options] [/domain]]

net user [UserName [/delete] [/domain]]

Parameters
UserName
Specifies the name of the user account to add, delete, modify, or view.
The name of the user account can have as many as 20 characters.
Password
Assigns or changes a password for the user's account. Type an asterisk (*)
to produce a prompt for the password. The password is not displayed when you
type it at the password prompt.
/domain
Performs the operation on the domain controller in the computer's primary
domain.
Options
Specifies a command-line option. The following table lists valid
command-line options that you can use. Command-line option syntax
Description
/active:{no | yes} Enables or disables the user account. If the user
account is not active, the user cannot access resources on the computer. The
default is yes (that is, active).
/comment:"Text" Provides a descriptive comment about the user's
account. This comment can have as many as 48 characters. Enclose the text in
quotation marks.
/countrycode:NNN Uses the operating system Country/Region codes to
implement the specified language files for a user's Help and error messages.
A value of 0 signifies the default Country/Region code.
/expires:{{MM/DD/YYYY | DD/MM/YYYY | mmm,dd ,YYYY} | never} Causes
the user account to expire if you specify date. Expiration dates can be in
[MM/DD/YYYY], [DD/MM/YYYY], or [mmm,dd ,YYYY] format, depending on the
Country/Region code. Note that the account expires at the beginning of the
specified date. For the month value, you can use numbers, spell it out, or
use a three-letter abbreviation (that is, Jan, Feb, Mar, Apr, May, Jun, Jul,
Aug, Sep, Oct, Nov, Dec). You can use two or four numbers for the year
value. Use commas or slashes to separate parts of the date. Do not use
spaces. If you omit YYYY, the next occurrence of the date (that is,
according to your computer's date and time) is assumed. For example, the
following entries are equivalent if entered between Jan. 10, 1994, and Jan.
8, 1995:
jan,9
1/9/95
january,9,1995
1/9

/fullname:"Name" Specifies a user's full name rather than a user
name. Enclose the name in quotation marks.
/homedir:Path Sets the path for the user's home directory. The path
must exist.
/passwordchg:{yes | no} Specifies whether users can change their own
password. The default is yes.
/passwordreq:{yes | no} Specifies whether a user account must have a
password. The default is yes.
/profilepath:[Path] Sets a path for the user's logon profile. This
path points to a registry profile.
/scriptpath:Path Sets a path for the user's logon script. Path
cannot be an absolute path. Path is relative to
%systemroot%System32ReplImportScripts.
/times:{Day[-Day][,Day[-Day]] ,Time[-Time][,Time[-Time]] [;.] | all}
Specifies the times that users are allowed to use the computer. Time is
limited to 1-hour increments. For the Day values, you can spell out or use
abbreviations (that is, M,T,W,Th,F,Sa,Su). You can use 12-hour or 24-hour
notation for hours. If you use 12-hour notation, use AM and PM, or A.M. and
P.M. The value all means a user can always log on. A null value (blank)
means a user can never log on. Separate day and time with commas, and units
of day and time with semicolons (for example, M,4AM-5PM;T,1PM-3PM). Do not
use spaces when designating times.
/usercomment:"Text" Specifies that an administrator can add or
change the "User comment" for the account. Enclose the text in quotation
marks.
/workstations:{ComputerName[,...] | *} Lists as many as eight
workstations from which a user can log on to the network. Separate multiple
entries in the list with commas. If /workstations has no list or if the list
is an asterisk (*), users can log on from any computer.






Phil.
________________________________________________________
Philippe TROTIN http://blogs.msdn.com/ptrotin
Microsoft Services France http://www.microsoft.com/france

"Fabrice [MVP]" wrote in message
news:#
Non, si j'ai tore, j'ai tore :D j'assume, je ne suis qu'un être humain !

En plus, si je me trompe, j'apprend encore un truc en plus, c'est tout
bénéfique :)

Ce qui est certain, c'est que cela ne peux pas être "Très Simple"
-
Fabrice
Microsoft MVP
http://www.fab3d.fr.st
Faq Windows XP :
http://a.vouillon.online.fr/faq-winxp.htm

"Frappe avec ta tête"






Avatar
grodep
yeeeeeeeeeeeeeeees c ça !!! un grand merci
"Philippe T [MS]" a écrit dans le message de
news:
Bonjour,

Je crois que ce dont vous parler c'est : net user et plus particulièrement
l'option "/times"

<<<
Net user
Adds or modifies user accounts or displays user account information.

Syntax
net user [UserName [Password | *] [Options]] [/domain]

net user [UserName {Password | *} /add [Options] [/domain]]

net user [UserName [/delete] [/domain]]

Parameters
UserName
Specifies the name of the user account to add, delete, modify, or view.
The name of the user account can have as many as 20 characters.
Password
Assigns or changes a password for the user's account. Type an asterisk
(*)
to produce a prompt for the password. The password is not displayed when
you
type it at the password prompt.
/domain
Performs the operation on the domain controller in the computer's primary
domain.
Options
Specifies a command-line option. The following table lists valid
command-line options that you can use. Command-line option syntax
Description
/active:{no | yes} Enables or disables the user account. If the
user
account is not active, the user cannot access resources on the computer.
The
default is yes (that is, active).
/comment:"Text" Provides a descriptive comment about the user's
account. This comment can have as many as 48 characters. Enclose the text
in
quotation marks.
/countrycode:NNN Uses the operating system Country/Region codes to
implement the specified language files for a user's Help and error
messages.
A value of 0 signifies the default Country/Region code.
/expires:{{MM/DD/YYYY | DD/MM/YYYY | mmm,dd ,YYYY} | never} Causes
the user account to expire if you specify date. Expiration dates can be in
[MM/DD/YYYY], [DD/MM/YYYY], or [mmm,dd ,YYYY] format, depending on the
Country/Region code. Note that the account expires at the beginning of the
specified date. For the month value, you can use numbers, spell it out, or
use a three-letter abbreviation (that is, Jan, Feb, Mar, Apr, May, Jun,
Jul,
Aug, Sep, Oct, Nov, Dec). You can use two or four numbers for the year
value. Use commas or slashes to separate parts of the date. Do not use
spaces. If you omit YYYY, the next occurrence of the date (that is,
according to your computer's date and time) is assumed. For example, the
following entries are equivalent if entered between Jan. 10, 1994, and
Jan.
8, 1995:
jan,9
1/9/95
january,9,1995
1/9

/fullname:"Name" Specifies a user's full name rather than a user
name. Enclose the name in quotation marks.
/homedir:Path Sets the path for the user's home directory. The path
must exist.
/passwordchg:{yes | no} Specifies whether users can change their
own
password. The default is yes.
/passwordreq:{yes | no} Specifies whether a user account must have
a
password. The default is yes.
/profilepath:[Path] Sets a path for the user's logon profile. This
path points to a registry profile.
/scriptpath:Path Sets a path for the user's logon script. Path
cannot be an absolute path. Path is relative to
%systemroot%System32ReplImportScripts.
/times:{Day[-Day][,Day[-Day]] ,Time[-Time][,Time[-Time]] [;.] |
all}
Specifies the times that users are allowed to use the computer. Time is
limited to 1-hour increments. For the Day values, you can spell out or use
abbreviations (that is, M,T,W,Th,F,Sa,Su). You can use 12-hour or 24-hour
notation for hours. If you use 12-hour notation, use AM and PM, or A.M.
and
P.M. The value all means a user can always log on. A null value (blank)
means a user can never log on. Separate day and time with commas, and
units
of day and time with semicolons (for example, M,4AM-5PM;T,1PM-3PM). Do not
use spaces when designating times.
/usercomment:"Text" Specifies that an administrator can add or
change the "User comment" for the account. Enclose the text in quotation
marks.
/workstations:{ComputerName[,...] | *} Lists as many as eight
workstations from which a user can log on to the network. Separate
multiple
entries in the list with commas. If /workstations has no list or if the
list
is an asterisk (*), users can log on from any computer.






Phil.
________________________________________________________
Philippe TROTIN http://blogs.msdn.com/ptrotin
Microsoft Services France http://www.microsoft.com/france

"Fabrice [MVP]" wrote in message
news:#
Non, si j'ai tore, j'ai tore :D j'assume, je ne suis qu'un être humain !

En plus, si je me trompe, j'apprend encore un truc en plus, c'est tout
bénéfique :)

Ce qui est certain, c'est que cela ne peux pas être "Très Simple"
-
Fabrice
Microsoft MVP
http://www.fab3d.fr.st
Faq Windows XP :
http://a.vouillon.online.fr/faq-winxp.htm

"Frappe avec ta tête"










Avatar
grodep
et pour les non réceptifs a l'anglais, ainsi qu'afin d'avoir un exemple
clair de ce que ça peut donner :
http://www.d2i.ch/pn/az/n.html
"Philippe T [MS]" a écrit dans le message de
news:
Bonjour,

Je crois que ce dont vous parler c'est : net user et plus particulièrement
l'option "/times"

<<<
Net user
Adds or modifies user accounts or displays user account information.

Syntax
net user [UserName [Password | *] [Options]] [/domain]

net user [UserName {Password | *} /add [Options] [/domain]]

net user [UserName [/delete] [/domain]]

Parameters
UserName
Specifies the name of the user account to add, delete, modify, or view.
The name of the user account can have as many as 20 characters.
Password
Assigns or changes a password for the user's account. Type an asterisk
(*)
to produce a prompt for the password. The password is not displayed when
you
type it at the password prompt.
/domain
Performs the operation on the domain controller in the computer's primary
domain.
Options
Specifies a command-line option. The following table lists valid
command-line options that you can use. Command-line option syntax
Description
/active:{no | yes} Enables or disables the user account. If the
user
account is not active, the user cannot access resources on the computer.
The
default is yes (that is, active).
/comment:"Text" Provides a descriptive comment about the user's
account. This comment can have as many as 48 characters. Enclose the text
in
quotation marks.
/countrycode:NNN Uses the operating system Country/Region codes to
implement the specified language files for a user's Help and error
messages.
A value of 0 signifies the default Country/Region code.
/expires:{{MM/DD/YYYY | DD/MM/YYYY | mmm,dd ,YYYY} | never} Causes
the user account to expire if you specify date. Expiration dates can be in
[MM/DD/YYYY], [DD/MM/YYYY], or [mmm,dd ,YYYY] format, depending on the
Country/Region code. Note that the account expires at the beginning of the
specified date. For the month value, you can use numbers, spell it out, or
use a three-letter abbreviation (that is, Jan, Feb, Mar, Apr, May, Jun,
Jul,
Aug, Sep, Oct, Nov, Dec). You can use two or four numbers for the year
value. Use commas or slashes to separate parts of the date. Do not use
spaces. If you omit YYYY, the next occurrence of the date (that is,
according to your computer's date and time) is assumed. For example, the
following entries are equivalent if entered between Jan. 10, 1994, and
Jan.
8, 1995:
jan,9
1/9/95
january,9,1995
1/9

/fullname:"Name" Specifies a user's full name rather than a user
name. Enclose the name in quotation marks.
/homedir:Path Sets the path for the user's home directory. The path
must exist.
/passwordchg:{yes | no} Specifies whether users can change their
own
password. The default is yes.
/passwordreq:{yes | no} Specifies whether a user account must have
a
password. The default is yes.
/profilepath:[Path] Sets a path for the user's logon profile. This
path points to a registry profile.
/scriptpath:Path Sets a path for the user's logon script. Path
cannot be an absolute path. Path is relative to
%systemroot%System32ReplImportScripts.
/times:{Day[-Day][,Day[-Day]] ,Time[-Time][,Time[-Time]] [;.] |
all}
Specifies the times that users are allowed to use the computer. Time is
limited to 1-hour increments. For the Day values, you can spell out or use
abbreviations (that is, M,T,W,Th,F,Sa,Su). You can use 12-hour or 24-hour
notation for hours. If you use 12-hour notation, use AM and PM, or A.M.
and
P.M. The value all means a user can always log on. A null value (blank)
means a user can never log on. Separate day and time with commas, and
units
of day and time with semicolons (for example, M,4AM-5PM;T,1PM-3PM). Do not
use spaces when designating times.
/usercomment:"Text" Specifies that an administrator can add or
change the "User comment" for the account. Enclose the text in quotation
marks.
/workstations:{ComputerName[,...] | *} Lists as many as eight
workstations from which a user can log on to the network. Separate
multiple
entries in the list with commas. If /workstations has no list or if the
list
is an asterisk (*), users can log on from any computer.






Phil.
________________________________________________________
Philippe TROTIN http://blogs.msdn.com/ptrotin
Microsoft Services France http://www.microsoft.com/france

"Fabrice [MVP]" wrote in message
news:#
Non, si j'ai tore, j'ai tore :D j'assume, je ne suis qu'un être humain !

En plus, si je me trompe, j'apprend encore un truc en plus, c'est tout
bénéfique :)

Ce qui est certain, c'est que cela ne peux pas être "Très Simple"
-
Fabrice
Microsoft MVP
http://www.fab3d.fr.st
Faq Windows XP :
http://a.vouillon.online.fr/faq-winxp.htm

"Frappe avec ta tête"










Avatar
grodep
Fabrice n'avait pas completement tort, voire meme pas tort du tout, puisque
cette commande ne restreint pas seulement l'acces a internet, mais carrément
l'ouverture de session.Je fais donc mon mea culpa, mea culpa mea maxima
culpa, la question était mal posée, et donc un grand merci a philippe qui y
a mal répondu :))))
"Philippe T [MS]" a écrit dans le message de
news:
Bonjour,

Je crois que ce dont vous parler c'est : net user et plus particulièrement
l'option "/times"

<<<
Net user
Adds or modifies user accounts or displays user account information.

Syntax
net user [UserName [Password | *] [Options]] [/domain]

net user [UserName {Password | *} /add [Options] [/domain]]

net user [UserName [/delete] [/domain]]

Parameters
UserName
Specifies the name of the user account to add, delete, modify, or view.
The name of the user account can have as many as 20 characters.
Password
Assigns or changes a password for the user's account. Type an asterisk
(*)
to produce a prompt for the password. The password is not displayed when
you
type it at the password prompt.
/domain
Performs the operation on the domain controller in the computer's primary
domain.
Options
Specifies a command-line option. The following table lists valid
command-line options that you can use. Command-line option syntax
Description
/active:{no | yes} Enables or disables the user account. If the
user
account is not active, the user cannot access resources on the computer.
The
default is yes (that is, active).
/comment:"Text" Provides a descriptive comment about the user's
account. This comment can have as many as 48 characters. Enclose the text
in
quotation marks.
/countrycode:NNN Uses the operating system Country/Region codes to
implement the specified language files for a user's Help and error
messages.
A value of 0 signifies the default Country/Region code.
/expires:{{MM/DD/YYYY | DD/MM/YYYY | mmm,dd ,YYYY} | never} Causes
the user account to expire if you specify date. Expiration dates can be in
[MM/DD/YYYY], [DD/MM/YYYY], or [mmm,dd ,YYYY] format, depending on the
Country/Region code. Note that the account expires at the beginning of the
specified date. For the month value, you can use numbers, spell it out, or
use a three-letter abbreviation (that is, Jan, Feb, Mar, Apr, May, Jun,
Jul,
Aug, Sep, Oct, Nov, Dec). You can use two or four numbers for the year
value. Use commas or slashes to separate parts of the date. Do not use
spaces. If you omit YYYY, the next occurrence of the date (that is,
according to your computer's date and time) is assumed. For example, the
following entries are equivalent if entered between Jan. 10, 1994, and
Jan.
8, 1995:
jan,9
1/9/95
january,9,1995
1/9

/fullname:"Name" Specifies a user's full name rather than a user
name. Enclose the name in quotation marks.
/homedir:Path Sets the path for the user's home directory. The path
must exist.
/passwordchg:{yes | no} Specifies whether users can change their
own
password. The default is yes.
/passwordreq:{yes | no} Specifies whether a user account must have
a
password. The default is yes.
/profilepath:[Path] Sets a path for the user's logon profile. This
path points to a registry profile.
/scriptpath:Path Sets a path for the user's logon script. Path
cannot be an absolute path. Path is relative to
%systemroot%System32ReplImportScripts.
/times:{Day[-Day][,Day[-Day]] ,Time[-Time][,Time[-Time]] [;.] |
all}
Specifies the times that users are allowed to use the computer. Time is
limited to 1-hour increments. For the Day values, you can spell out or use
abbreviations (that is, M,T,W,Th,F,Sa,Su). You can use 12-hour or 24-hour
notation for hours. If you use 12-hour notation, use AM and PM, or A.M.
and
P.M. The value all means a user can always log on. A null value (blank)
means a user can never log on. Separate day and time with commas, and
units
of day and time with semicolons (for example, M,4AM-5PM;T,1PM-3PM). Do not
use spaces when designating times.
/usercomment:"Text" Specifies that an administrator can add or
change the "User comment" for the account. Enclose the text in quotation
marks.
/workstations:{ComputerName[,...] | *} Lists as many as eight
workstations from which a user can log on to the network. Separate
multiple
entries in the list with commas. If /workstations has no list or if the
list
is an asterisk (*), users can log on from any computer.






Phil.
________________________________________________________
Philippe TROTIN http://blogs.msdn.com/ptrotin
Microsoft Services France http://www.microsoft.com/france

"Fabrice [MVP]" wrote in message
news:#
Non, si j'ai tore, j'ai tore :D j'assume, je ne suis qu'un être humain !

En plus, si je me trompe, j'apprend encore un truc en plus, c'est tout
bénéfique :)

Ce qui est certain, c'est que cela ne peux pas être "Très Simple"
-
Fabrice
Microsoft MVP
http://www.fab3d.fr.st
Faq Windows XP :
http://a.vouillon.online.fr/faq-winxp.htm

"Frappe avec ta tête"










Avatar
Philippe T [MS]
Bonjour,

Pas de quoi : j'ai déja donné dans ce genre de paramétrage !!! :-)

Phil.
________________________________________________________
Philippe TROTIN http://blogs.msdn.com/ptrotin
Microsoft Services France http://www.microsoft.com/france

"grodep" wrote in message
news:
yeeeeeeeeeeeeeeees c ça !!! un grand merci
"Philippe T [MS]" a écrit dans le message
de

news:
Bonjour,

Je crois que ce dont vous parler c'est : net user et plus
particulièrement


l'option "/times"

<<<
Net user
Adds or modifies user accounts or displays user account information.

Syntax
net user [UserName [Password | *] [Options]] [/domain]

net user [UserName {Password | *} /add [Options] [/domain]]

net user [UserName [/delete] [/domain]]

Parameters
UserName
Specifies the name of the user account to add, delete, modify, or view.
The name of the user account can have as many as 20 characters.
Password
Assigns or changes a password for the user's account. Type an asterisk
(*)
to produce a prompt for the password. The password is not displayed when
you
type it at the password prompt.
/domain
Performs the operation on the domain controller in the computer's
primary


domain.
Options
Specifies a command-line option. The following table lists valid
command-line options that you can use. Command-line option syntax
Description
/active:{no | yes} Enables or disables the user account. If the
user
account is not active, the user cannot access resources on the computer.
The
default is yes (that is, active).
/comment:"Text" Provides a descriptive comment about the user's
account. This comment can have as many as 48 characters. Enclose the
text


in
quotation marks.
/countrycode:NNN Uses the operating system Country/Region codes
to


implement the specified language files for a user's Help and error
messages.
A value of 0 signifies the default Country/Region code.
/expires:{{MM/DD/YYYY | DD/MM/YYYY | mmm,dd ,YYYY} | never}
Causes


the user account to expire if you specify date. Expiration dates can be
in


[MM/DD/YYYY], [DD/MM/YYYY], or [mmm,dd ,YYYY] format, depending on the
Country/Region code. Note that the account expires at the beginning of
the


specified date. For the month value, you can use numbers, spell it out,
or


use a three-letter abbreviation (that is, Jan, Feb, Mar, Apr, May, Jun,
Jul,
Aug, Sep, Oct, Nov, Dec). You can use two or four numbers for the year
value. Use commas or slashes to separate parts of the date. Do not use
spaces. If you omit YYYY, the next occurrence of the date (that is,
according to your computer's date and time) is assumed. For example, the
following entries are equivalent if entered between Jan. 10, 1994, and
Jan.
8, 1995:
jan,9
1/9/95
january,9,1995
1/9

/fullname:"Name" Specifies a user's full name rather than a user
name. Enclose the name in quotation marks.
/homedir:Path Sets the path for the user's home directory. The
path


must exist.
/passwordchg:{yes | no} Specifies whether users can change their
own
password. The default is yes.
/passwordreq:{yes | no} Specifies whether a user account must
have


a
password. The default is yes.
/profilepath:[Path] Sets a path for the user's logon profile.
This


path points to a registry profile.
/scriptpath:Path Sets a path for the user's logon script. Path
cannot be an absolute path. Path is relative to
%systemroot%System32ReplImportScripts.
/times:{Day[-Day][,Day[-Day]] ,Time[-Time][,Time[-Time]] [;.] |
all}
Specifies the times that users are allowed to use the computer. Time is
limited to 1-hour increments. For the Day values, you can spell out or
use


abbreviations (that is, M,T,W,Th,F,Sa,Su). You can use 12-hour or
24-hour


notation for hours. If you use 12-hour notation, use AM and PM, or A.M.
and
P.M. The value all means a user can always log on. A null value (blank)
means a user can never log on. Separate day and time with commas, and
units
of day and time with semicolons (for example, M,4AM-5PM;T,1PM-3PM). Do
not


use spaces when designating times.
/usercomment:"Text" Specifies that an administrator can add or
change the "User comment" for the account. Enclose the text in quotation
marks.
/workstations:{ComputerName[,...] | *} Lists as many as eight
workstations from which a user can log on to the network. Separate
multiple
entries in the list with commas. If /workstations has no list or if the
list
is an asterisk (*), users can log on from any computer.






Phil.
________________________________________________________
Philippe TROTIN http://blogs.msdn.com/ptrotin
Microsoft Services France http://www.microsoft.com/france

"Fabrice [MVP]" wrote in message
news:#
Non, si j'ai tore, j'ai tore :D j'assume, je ne suis qu'un être humain
!




En plus, si je me trompe, j'apprend encore un truc en plus, c'est tout
bénéfique :)

Ce qui est certain, c'est que cela ne peux pas être "Très Simple"
-
Fabrice
Microsoft MVP
http://www.fab3d.fr.st
Faq Windows XP :
http://a.vouillon.online.fr/faq-winxp.htm

"Frappe avec ta tête"














Avatar
Philippe T [MS]
Bonjour,

Merci tout de même. :-)

Par contre c'est bien de cela que vous parliez donc je n'avais pas tout à
fait mal répondu non plus :-)

Phil.
________________________________________________________
Philippe TROTIN http://blogs.msdn.com/ptrotin
Microsoft Services France http://www.microsoft.com/france

"grodep" wrote in message
news:##
Fabrice n'avait pas completement tort, voire meme pas tort du tout,
puisque

cette commande ne restreint pas seulement l'acces a internet, mais
carrément

l'ouverture de session.Je fais donc mon mea culpa, mea culpa mea maxima
culpa, la question était mal posée, et donc un grand merci a philippe qui
y

a mal répondu :))))
"Philippe T [MS]" a écrit dans le message
de

news:
Bonjour,

Je crois que ce dont vous parler c'est : net user et plus
particulièrement


l'option "/times"

<<<
Net user
Adds or modifies user accounts or displays user account information.

Syntax
net user [UserName [Password | *] [Options]] [/domain]

net user [UserName {Password | *} /add [Options] [/domain]]

net user [UserName [/delete] [/domain]]

Parameters
UserName
Specifies the name of the user account to add, delete, modify, or view.
The name of the user account can have as many as 20 characters.
Password
Assigns or changes a password for the user's account. Type an asterisk
(*)
to produce a prompt for the password. The password is not displayed when
you
type it at the password prompt.
/domain
Performs the operation on the domain controller in the computer's
primary


domain.
Options
Specifies a command-line option. The following table lists valid
command-line options that you can use. Command-line option syntax
Description
/active:{no | yes} Enables or disables the user account. If the
user
account is not active, the user cannot access resources on the computer.
The
default is yes (that is, active).
/comment:"Text" Provides a descriptive comment about the user's
account. This comment can have as many as 48 characters. Enclose the
text


in
quotation marks.
/countrycode:NNN Uses the operating system Country/Region codes
to


implement the specified language files for a user's Help and error
messages.
A value of 0 signifies the default Country/Region code.
/expires:{{MM/DD/YYYY | DD/MM/YYYY | mmm,dd ,YYYY} | never}
Causes


the user account to expire if you specify date. Expiration dates can be
in


[MM/DD/YYYY], [DD/MM/YYYY], or [mmm,dd ,YYYY] format, depending on the
Country/Region code. Note that the account expires at the beginning of
the


specified date. For the month value, you can use numbers, spell it out,
or


use a three-letter abbreviation (that is, Jan, Feb, Mar, Apr, May, Jun,
Jul,
Aug, Sep, Oct, Nov, Dec). You can use two or four numbers for the year
value. Use commas or slashes to separate parts of the date. Do not use
spaces. If you omit YYYY, the next occurrence of the date (that is,
according to your computer's date and time) is assumed. For example, the
following entries are equivalent if entered between Jan. 10, 1994, and
Jan.
8, 1995:
jan,9
1/9/95
january,9,1995
1/9

/fullname:"Name" Specifies a user's full name rather than a user
name. Enclose the name in quotation marks.
/homedir:Path Sets the path for the user's home directory. The
path


must exist.
/passwordchg:{yes | no} Specifies whether users can change their
own
password. The default is yes.
/passwordreq:{yes | no} Specifies whether a user account must
have


a
password. The default is yes.
/profilepath:[Path] Sets a path for the user's logon profile.
This


path points to a registry profile.
/scriptpath:Path Sets a path for the user's logon script. Path
cannot be an absolute path. Path is relative to
%systemroot%System32ReplImportScripts.
/times:{Day[-Day][,Day[-Day]] ,Time[-Time][,Time[-Time]] [;.] |
all}
Specifies the times that users are allowed to use the computer. Time is
limited to 1-hour increments. For the Day values, you can spell out or
use


abbreviations (that is, M,T,W,Th,F,Sa,Su). You can use 12-hour or
24-hour


notation for hours. If you use 12-hour notation, use AM and PM, or A.M.
and
P.M. The value all means a user can always log on. A null value (blank)
means a user can never log on. Separate day and time with commas, and
units
of day and time with semicolons (for example, M,4AM-5PM;T,1PM-3PM). Do
not


use spaces when designating times.
/usercomment:"Text" Specifies that an administrator can add or
change the "User comment" for the account. Enclose the text in quotation
marks.
/workstations:{ComputerName[,...] | *} Lists as many as eight
workstations from which a user can log on to the network. Separate
multiple
entries in the list with commas. If /workstations has no list or if the
list
is an asterisk (*), users can log on from any computer.






Phil.
________________________________________________________
Philippe TROTIN http://blogs.msdn.com/ptrotin
Microsoft Services France http://www.microsoft.com/france

"Fabrice [MVP]" wrote in message
news:#
Non, si j'ai tore, j'ai tore :D j'assume, je ne suis qu'un être humain
!




En plus, si je me trompe, j'apprend encore un truc en plus, c'est tout
bénéfique :)

Ce qui est certain, c'est que cela ne peux pas être "Très Simple"
-
Fabrice
Microsoft MVP
http://www.fab3d.fr.st
Faq Windows XP :
http://a.vouillon.online.fr/faq-winxp.htm

"Frappe avec ta tête"














Avatar
grodep
ct une boutade, je disais mal répondu, paske c'était pas la réponse a la
question qui était : comment agir sur les acces internet des utilisateurs
par le biais d'une commande et que la commande donnée ne permet d'agir que
sur les ouvertures de sessions.
Mais oui tres bien répondu puisque c'est la commande que je cherchais,
j'avais juste oublié qu'elle ne permettait pas de gerer l'acces internet .
;)
"Philippe T [MS]" a écrit dans le message de
news:
Bonjour,

Merci tout de même. :-)

Par contre c'est bien de cela que vous parliez donc je n'avais pas tout à
fait mal répondu non plus :-)

Phil.
________________________________________________________
Philippe TROTIN http://blogs.msdn.com/ptrotin
Microsoft Services France http://www.microsoft.com/france

"grodep" wrote in message
news:##
Fabrice n'avait pas completement tort, voire meme pas tort du tout,
puisque

cette commande ne restreint pas seulement l'acces a internet, mais
carrément

l'ouverture de session.Je fais donc mon mea culpa, mea culpa mea maxima
culpa, la question était mal posée, et donc un grand merci a philippe qui
y

a mal répondu :))))
"Philippe T [MS]" a écrit dans le message
de

news:
Bonjour,

Je crois que ce dont vous parler c'est : net user et plus
particulièrement


l'option "/times"

<<<
Net user
Adds or modifies user accounts or displays user account information.

Syntax
net user [UserName [Password | *] [Options]] [/domain]

net user [UserName {Password | *} /add [Options] [/domain]]

net user [UserName [/delete] [/domain]]

Parameters
UserName
Specifies the name of the user account to add, delete, modify, or
view.
The name of the user account can have as many as 20 characters.
Password
Assigns or changes a password for the user's account. Type an asterisk
(*)
to produce a prompt for the password. The password is not displayed
when
you
type it at the password prompt.
/domain
Performs the operation on the domain controller in the computer's
primary


domain.
Options
Specifies a command-line option. The following table lists valid
command-line options that you can use. Command-line option syntax
Description
/active:{no | yes} Enables or disables the user account. If the
user
account is not active, the user cannot access resources on the
computer.
The
default is yes (that is, active).
/comment:"Text" Provides a descriptive comment about the user's
account. This comment can have as many as 48 characters. Enclose the
text


in
quotation marks.
/countrycode:NNN Uses the operating system Country/Region codes
to


implement the specified language files for a user's Help and error
messages.
A value of 0 signifies the default Country/Region code.
/expires:{{MM/DD/YYYY | DD/MM/YYYY | mmm,dd ,YYYY} | never}
Causes


the user account to expire if you specify date. Expiration dates can be
in


[MM/DD/YYYY], [DD/MM/YYYY], or [mmm,dd ,YYYY] format, depending on the
Country/Region code. Note that the account expires at the beginning of
the


specified date. For the month value, you can use numbers, spell it out,
or


use a three-letter abbreviation (that is, Jan, Feb, Mar, Apr, May, Jun,
Jul,
Aug, Sep, Oct, Nov, Dec). You can use two or four numbers for the year
value. Use commas or slashes to separate parts of the date. Do not use
spaces. If you omit YYYY, the next occurrence of the date (that is,
according to your computer's date and time) is assumed. For example,
the
following entries are equivalent if entered between Jan. 10, 1994, and
Jan.
8, 1995:
jan,9
1/9/95
january,9,1995
1/9

/fullname:"Name" Specifies a user's full name rather than a user
name. Enclose the name in quotation marks.
/homedir:Path Sets the path for the user's home directory. The
path


must exist.
/passwordchg:{yes | no} Specifies whether users can change their
own
password. The default is yes.
/passwordreq:{yes | no} Specifies whether a user account must
have


a
password. The default is yes.
/profilepath:[Path] Sets a path for the user's logon profile.
This


path points to a registry profile.
/scriptpath:Path Sets a path for the user's logon script. Path
cannot be an absolute path. Path is relative to
%systemroot%System32ReplImportScripts.
/times:{Day[-Day][,Day[-Day]] ,Time[-Time][,Time[-Time]] [;.] |
all}
Specifies the times that users are allowed to use the computer. Time is
limited to 1-hour increments. For the Day values, you can spell out or
use


abbreviations (that is, M,T,W,Th,F,Sa,Su). You can use 12-hour or
24-hour


notation for hours. If you use 12-hour notation, use AM and PM, or A.M.
and
P.M. The value all means a user can always log on. A null value (blank)
means a user can never log on. Separate day and time with commas, and
units
of day and time with semicolons (for example, M,4AM-5PM;T,1PM-3PM). Do
not


use spaces when designating times.
/usercomment:"Text" Specifies that an administrator can add or
change the "User comment" for the account. Enclose the text in
quotation
marks.
/workstations:{ComputerName[,...] | *} Lists as many as eight
workstations from which a user can log on to the network. Separate
multiple
entries in the list with commas. If /workstations has no list or if the
list
is an asterisk (*), users can log on from any computer.






Phil.
________________________________________________________
Philippe TROTIN http://blogs.msdn.com/ptrotin
Microsoft Services France http://www.microsoft.com/france

"Fabrice [MVP]" wrote in message
news:#
Non, si j'ai tore, j'ai tore :D j'assume, je ne suis qu'un être humain
!




En plus, si je me trompe, j'apprend encore un truc en plus, c'est tout
bénéfique :)

Ce qui est certain, c'est que cela ne peux pas être "Très Simple"
-
Fabrice
Microsoft MVP
http://www.fab3d.fr.st
Faq Windows XP :
http://a.vouillon.online.fr/faq-winxp.htm

"Frappe avec ta tête"


















1 2