Questions tagged [lock]

A generic term for placing a restriction of some sort. It could refer to placing a password-based or biometric protection over a device, a system or a set of data. It could also refer to placing read-only protection on certain configuration or data (like files). Questions using this tag can also be regarding the opposite action of unlocking.

Locking is a generic term for which the meaning could depend on the context.

Most notably, in general computer usage, it refers to placing a password-based or biometric protection over a device, a system or a set of data. Examples include the operating system's lock screen, and password protection on files and folders.

It could also refer to freezing certain configuration or data (like files) so that it is protected from misconfiguration or unintended change by the user who locked it or by others. Examples include the administrative locks placed on system configuration modules, and the act of making files read-only for the users or inaccessible for other applications by the application opening them (known as file locking).

Questions using this tag can also be regarding the opposite action of unlocking. These questions could be about problems that appear during the attempt to reverse the effects of a lock, or that persists after the unlock has been performed.

In computer programming, locking refers to a method of synchronization between two contenting applications or threads sharing the same data. Questions regarding this are best asked in Stack Overflow.

168 questions
36
votes
7 answers

Where does Windows store icon positions?

Where do Windows XP/Vista/7/... save the positions of the icons on the desktop? Is there a built-in way to save the positions? Can I lock the position of certain items?
bot47
  • 1,922
33
votes
5 answers

How to lock a file in Windows without changing it or using third party tools?

Is there a way to lock a file with on-board tools so it can't be deleted or overwritten? For testing of copy scripts I need to lock files temporarily to check the error handling in the scripts. Till XP I used loading a file in debug.exe to lock it.…
marsh-wiggle
  • 3,134
18
votes
5 answers

does a CMD window stop running while Windows 10 lock screen is enabled?

I'm not sure how the lock works in Windows 10, but I'd like to access the features of locking my screen after a CMD process has been executed. As the CMD window would already be running before the screen is locked, does this mean it would continue…
14
votes
2 answers

Audio from headphones is muted after screen is locked or sleep mode (Windows 8.1)

The adventure (how it all started) Exactly as in the title, whenever I lock the screen (by pressing Windows + L or Ctrl + Alt + Del -> Lock) audio stops working. Well, partially, since speakers still work perfectly but headphones (line out) don't!…
13
votes
8 answers

Why does my screen keep locking every two minutes or so?

I am running Windows 10 Pro, build 10586, on a Lenovo T-520. Fairly recently a behaviour has appeared, where the screen locks, and goes blank, after about 2 minutes of not using the PC. I have checked all power settings, every single one, and…
ProfK
  • 2,741
10
votes
9 answers

TeamViewer 8 - Log into locked session

I want to use TV8 between my home & work PCs (both running win7 pro). The problem is that my work pc is configured to lock after 5mins of inactivity and to relog back again you have to press Ctr+Alt+Del and insert your password. The above feature…
lephleg
  • 221
9
votes
7 answers

Is there a way to shut down and lock a PC at a predetermined time?

I have a 14 year old boy who's obsessed with his gaming PC so much that he stays awake all night sometimes and sleeps all day. Normally that would cause havoc with his schooling but he's being home schooled where he lives with his mother. Is there…
Jim
  • 91
8
votes
3 answers

How to lock Windows 10 screen without a keyboard?

I know I can lock windows (in particular I'm using windows 10) via the keyboard with Win+L. However, if I don't have a keyboard attached is there a way to lock the session with just the mouse? I know I can sign out by right-clicking the start menu…
User
  • 3,835
8
votes
0 answers

How to disable MS Word from locking opened files

Microsoft Word has a annoying habit of whenever it opens a word file to prevent other runtimes from accessing it. As far as I can perceive, it's to prevent a lost update scenario with word files. So whenever I save a file and want to send it by…
Zarylo
  • 83
6
votes
4 answers

How to prevent windows from locking / sleeping (without admin privileges)

I know it is possible to disable auto log out from control panel. I want to know is there a way to prevent windows from locking/ sleeping without changing any security options.
6
votes
1 answer

Unlock PC with Windows Task Scheduler

I need to set up a Scheduled Task to unlock Windows 7 PC at specific time. And second Task, to lock at other specific time. Is this possible by cmd.exe command, or I need to use some third party software? By unlock I meen unlock logon screen. What…
BlueMark
  • 287
  • 1
  • 4
  • 10
6
votes
1 answer

Does Windows allow to rename a folder containing locked files?

Being aware that the family of Windows OSes uses mandatory file locking while POSIX family systems use advisory lock, I was wondering if Windows is capable to have a directory structure renamed, while it contains one or more files that have been…
5
votes
2 answers

Run a batch file when I lock/unlock my computer

Is there a way I can run a batch file upon locking my computer, and then run another batch file when I unlock it? (Windows 8.1) Thank you!
intA
  • 423
5
votes
2 answers

Will cron.daily wait for jobs to finish before starting the next one?

This page http://wiki.ci.uchicago.edu/I2U2/WebalizerConfiguration suggests renaming /etc/cron.daily/logrotate so it comes after /etc/cron.daily/webalizer - webalizer should be done before logrotate kicks in. Is that true ? Will cron.daily wait for…
4
votes
2 answers

"Console lock display off time-out" not working

I followed the advice of numerous tutorials to enable the "Console lock display off time-out" setting in advanced power options, and I have changed my currently active plan to time out after 1 minute on the lock screen: My problem is, it simply…
Jez
  • 3,028
1
2 3
11 12