Auto lock Windows desktop connected to 2012 R2 AD server.

Auto lock Windows 7 and up desktop connected to 2012 R2 AD server via a GPO. I've found a couple links that show how to activate the Screen Saver but I'm wanting the same effect, as if you ctl-alt-del and click "Lock this Computer".

Is this possible?
HaroldNetwork EngineerAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

NVITEnd-user supportCommented:
Make a LockPC.bat file of this code:
rundll32.exe user32.dll, LockWorkStation

Open in new window

To run it, double-click the LockPC.bat file

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
HaroldNetwork EngineerAuthor Commented:
NVIT: where does the GPO come in?
Then use the GPO that requires a pw.
Creating Active Directory Users from a Text File

If your organization has a need to mass-create AD user accounts, watch this video to see how its done without the need for scripting or other unnecessary complexities.

HaroldNetwork EngineerAuthor Commented:
McKnife: sorry not set this up either. You have an example of this?
What example?
There are different screen saver policies. Simply download the GPO reference for windows if you look for policies.
In the user policy part ->adm. templates ->control panel - personalization
there are all the screen saver policies. ->"password protect the screen saver" is its name.
HaroldNetwork EngineerAuthor Commented:
McKnife:"What example?" I was referring to the password GP. Never setup a GPO requiring a password or not.
Sure. And I have named the path and policy name for that, now use it :)
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows Server 2012

From novice to tech pro — start learning today.