|
|
We've already apologized plenty of times for the likes of Celine Dion, Bryan Adams, even Anne Murray.
|
|
|
|
|
"Wrong" exit?
|
|
|
|
|
"Wrong" for him / her / it does not mean "wrong" for "average musical talent of the world", "Level of good taste", or even "us".
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
Steam is giving "Destiny 2" for free. It actually was a "today deal" for yesterday, but I have checked and still is working, so I suppose that it might be available for a couple of hours more.
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
Rating helpful answers is nice, but saying thanks can be even nicer.
|
|
|
|
|
I work on a number of remote VMs from my local desktop. My local desktop is locked down so I can't install anything. I have to use VMs for dev, etc.
Previously, the default was for each VM's screen to lock with the screen saver after 10 minutes.
I changed it on all of my VMs so it would never lock. Never any need to type in password multiple times a day. The sun was shining and I was smiling for many months.
Policy
Then a new update to Win10 allowed a new policy so that every screen would lock after 10 minutes.
Suddenly the skies darkened and I became very grumpy. This meant that I had to type in my password to unlock any of the numerous machines that hadn't been touched in past 10 minutes. Ugh!
Yes, small things make me grumpy. I'm a dev.
Local Security Policy
Here's where you find the policy that was changed (imgur image):
https://i.stack.imgur.com/0AkJI.png[^]
Mordac The Preventer Of Information Services
I asked Mordac about it and he said, "NO! It can't be changed, now off with you!"
There's Always A Way
So I wrote this LINQPad - free C# dev playground[^] (C#) script that touches each VM window (mstsc process) every X seconds.
[DllImport("user32.dll")]
private static extern bool SetForegroundWindow(IntPtr hWnd);
[DllImport("user32.dll", CharSet=CharSet.Auto,ExactSpelling=true)]
private static extern IntPtr SetFocus(HandleRef hWnd);
[DllImport("user32.dll")]
static extern bool ShowWindow(IntPtr hWnd, int nCmdShow);
void Main()
{
InitializeTimer();
RescanTimer.Start();
}
System.Timers.Timer RescanTimer = new System.Timers.Timer();
private void InitializeTimer()
{
RescanTimer.Interval = 45000D;
RescanTimer.Elapsed += RescanTimer_Elapsed;
}
protected void RescanTimer_Elapsed(object sender, System.Timers.ElapsedEventArgs e)
{
try{
RescanTimer.Stop();
Process[] processlist = Process.GetProcesses();
Console.WriteLine(DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"));
foreach (Process process in processlist)
{
if (!String.IsNullOrEmpty(process.MainWindowTitle))
{
if (process.ProcessName.Contains("mstsc")){
Console.WriteLine("Process: {0} ID: {1} Window title: {2}", process.ProcessName, process.Id, process.MainWindowTitle);
SetForegroundWindow(process.MainWindowHandle);
SetFocus(new HandleRef(null, process.MainWindowHandle));
ShowWindow(process.MainWindowHandle, 1);
}
}
}
Console.WriteLine();
}
finally{
RescanTimer.Start();
}
}
The timer fires and the script iterates through the processes and finds all mstsc (microsoft RDP) and Sets them to foreground, sets focus on them and does a ShowWindow -- if minimized it sets to regular).
I Know It's Stupid
It's just silly to have to do that, but, it works.
Also...
1. It doesn't use any noticeable CPU
2. it doesn't interrupt you or shift your focus to another screen (while I was typing up this, the code ran numerous times without interrupting)
3. none of the associated VM screens have locked
Yes!
Update!!
I can't believe it. It's already been done.
Dilbert Comic Strip on 2005-08-02 | Dilbert by Scott Adams[^]
Update 2
Unfortunately, if you lock your main computer then the VM windows still seem to lock. But, I believe that as long as your screen is unlocked the other VM windows won't lock.
modified 19-Nov-19 16:49pm.
|
|
|
|
|
But now things won't be so secure anymore as you can still do things !
|
|
|
|
|
RickZeeland wrote: But now things won't be so secure anymore as you can still do things !
It should still be safe since my keyboard is not authorized to be connected and my mouse buttons have been removed. I'm only allowed to move the cursor around on the screen.
|
|
|
|
|
Phew, what a relief
|
|
|
|
|
RickZeeland wrote: But now things won't be so secure anymore as you can still do things !
Ah, the penultimate in security -- the inability to actually get anything done!
|
|
|
|
|
You could be passive-aggressive and not do that and tell your boss that you waste X number of hours just to unlock your VMs during the week.
I'd rather be phishing!
|
|
|
|
|
Maximilien wrote: tell your boss that you waste X number of hours just to unlock your VMs during the week
I'm tracking each incidence in a spreadsheet.
|
|
|
|
|
Try a spreadsheet per incidence
|
|
|
|
|
Can't you use the "a presentation is active" setting anymore? It was really handy in Win7 but I didn't found it in win10. I now have an empty ppt in the autostart, when I log in, it pops up, F5 (activate presentation), Win+D (minimize all), continue working. It does the job for me, no more idle timeout
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
Rating helpful answers is nice, but saying thanks can be even nicer.
|
|
|
|
|
That sounds interesting and easy to implement, but I just looked and didn't find it in win10.
Let me know if you find it and I'll try it. Would be great.
|
|
|
|
|
C:\Windows\System32\PresentationSettings.exe
Check the upper radio button + press OK = No idle timeout until next reboot.
There was a way to deactivate the idle auto log off in the registry of Win7 too, but IIRC that is not possible in Win10 anymore.
I haven't tried to automate it in any kind, because it is theoretically not allowed by our IT.
I personally use the empty PowerPoint presentation because I find it more comfortable and I am faster with the F5 + Win-D Shortcuts than with the Mouse Clicks, besides is the most harmless option if you consider the domain policies.
Then... when I leave my workplace Win+L to lock... done
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
Rating helpful answers is nice, but saying thanks can be even nicer.
|
|
|
|
|
This would make an awesome tip/trick.
"Five fruits and vegetables a day? What a joke!
Personally, after the third watermelon, I'm full."
|
|
|
|
|
I have a variation of this problem. With W10 and a high-res monitor (2560x1440) and the combination of colors it insists on using, I can't read the standard clock. Years ago, as an experiment I wrote a digital clock so I updated that and added an option to disable the screen saver also. It solved two problems with one program.
"They have a consciousness, they have a life, they have a soul! Damn you! Let the rabbits wear glasses! Save our brothers! Can I get an amen?"
|
|
|
|
|
Is a syllabus how clowns get to field trips?
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
excluding the accident prone clowns that got on the blunderbuss
Message Signature
(Click to edit ->)
|
|
|
|
|
Syllabus? Very class-y ! Some lesson's to be learned from this TOD.
Ravings en masse^ |
---|
"The difference between genius and stupidity is that genius has its limits." - Albert Einstein | "If you are searching for perfection in others, then you seek disappointment. If you seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010 |
|
|
|
|
|
Of course!
I, for one, like Roman Numerals.
|
|
|
|
|
|
You are a master at this.
I, for one, like Roman Numerals.
|
|
|
|
|
Clowns are silly
Clowns go to field trips on a bus
Therefore, Clowns go to field trips of a syllabus
Would that be a sylla-logism?
Freedom is the freedom to say that two plus two make four. If that is granted, all else follows.
-- 6079 Smith W.
|
|
|
|