T
T
Trianid Trianid2015-12-13 19:55:23
System administration
Trianid Trianid, 2015-12-13 19:55:23

How to change the WINDOWS 7 local security policy setting not via mmc?

Hello Toaster! Faced a problem. I want to change the time value in the security policy:
26ebef292ab048568800f9967e649332.png
But I want to set 1 Sec. Where can I go to fix it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
LESHIY_ODESSA, 2015-12-13
@LESHIY_ODESSA

But I want to put 1 Sec. Where can I go to fix it?

All settings are in the registry - [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System]
But in your case a) set 1 sec. impossible b) a fundamentally wrong idea.
1. Do not close RDP with a "cross", but press START -> END SESSION.
2. If you have the SERVER version, then when the connection is interrupted, "End the session" goes.
3. Make a label "END SESSION".
C:\Windows\System32\shutdown.exe -l
/? Help display. The same as without parameters.
/i Display a graphical user interface.
This parameter must be the first.
/l End the session. This option cannot be used with
the /m or /d options.
/s Shut down the computer.
/r Shut down and restart the computer.
/g Shut down and restart the computer. After restarting
the system, launch all registered applications.
/a Cancel system shutdown.
This option can only be used during the waiting period.
/p Shut down the local computer immediately without warning.
Can be used with the /d and /f options.
/h Switches the local computer to hibernation mode.
Can be used with the /f option.
/e Specifies the reason for the unexpected shutdown of the computer.
/m \\computer Specifies the target computer.
/t xxx Specifies a delay of xxx seconds before shutting down the
computer.
Valid range: 0-315360000 (10 years); default value:
30.
If the timeout period is greater than 0,
the /f option is applied.
/c "comment" Comment with reason for restart or shutdown.
The maximum length is 512 characters.
/f Forces running applications to close without warning
users.
The /f option is used if the /t option
set to a value greater than 0.
/d [p|u:]xx:yy You must specify a reason to reboot or shutdown.
"p" means scheduled reboot or shutdown.
"u" means that the reason is user defined.
If neither "p" nor "u" is specified, a reboot or shutdown
is unscheduled.
xx is the major reason number (positive integer
less than 256).
yy is the minor reason number (positive
integer less than 65536).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question