Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Trying to make .BAT to start screensaver and lock screen Win 7 pro 64

12 Mar 2013   #1
voiceartistusa

Windows 7 Professional 64bit
 
 
Trying to make .BAT to start screensaver and lock screen Win 7 pro 64

I am trying to make a shortcut to lock my screen and invoke the screensaver with one batch file.

I came up with this:

@echo off
rem ScreenSaver
cd %windir%\
start WLXPGSS.SCR
rem LOCK
cd %windir%\system32
start rundll32.exe user32.dll,LockWorkStation
exit


With this batch file, the screen locks (need to put in my password) but the screen saver doesn't start.
Upon entering my password, I see the settings for that particular screensaver were called for not the actual screensaver.

However, when I run C:\Windows\WLXPGSS.SCR the screensaver plays but doesn't "Show welcome screen" and password prompt as selected in the screen saver properties.

I want to click one batch file to lock the screen and play that screensaver only.

That screensaver, by the way, seems it's only part of "Windows Live Setup" which needs to be downloaded from here ...possibly not on all Windows 7 computers.
File Name: wlsetup-web.exe

Here is what is included with Windows Live Setup...you can choose only what you want at install time.

Anyone have any ideas?

Thanks




My System SpecsSystem Spec
.

12 Mar 2013   #2
Parman

Windows 7 Ultimate x64
 
 

I'm guessing it is running the screensaver then locking the PC losing the screensaver.

If you switch the order does the screensaver part still run?
My System SpecsSystem Spec
12 Mar 2013   #3
voiceartistusa

Windows 7 Professional 64bit
 
 

By switching the order like this

@echo off
rem LOCK
cd %windir%\system32
start rundll32.exe user32.dll,LockWorkStation
rem ScreenSaver
cd %windir%\
start WLXPGSS.SCR
exit


Same thing, I see the welcome screen, then I type in my password and I see the settings for that screensaver.

I even tried this...same results.

@echo off
rem LOCK
cd %windir%\system32
start rundll32.exe user32.dll,LockWorkStation
rem ScreenSaver
cd %windir%\WLXPGSS.SCR
start WLXPGSS.SCR
exit

My System SpecsSystem Spec
.


17 Mar 2013   #4
Keithuk

Windows 7 Professional 32bit SP1
 
 

Many years ago we I used Windows XP at work if you left you computer for a while you had to log off. When you came back you had to login again and wait for everything to establish itself this is a bit time consuming.

I made an app in VB that you could run and the screen would be locked so no one could use my computer. You type in a password and it unlocks, it also have one of the Windows screensavers that activated after a while. When we changed over to Windows 7 it still worked.
My System SpecsSystem Spec
05 Mar 2014   #5
morrisminor948

Win 7 Enterprise x64
 
 
Try this

Try:
start WLXPGSS.SCR /start
My System SpecsSystem Spec
Reply

 Trying to make .BAT to start screensaver and lock screen Win 7 pro 64




Thread Tools





Similar help and support threads
Thread Forum
Win7 install lock on start screen
I have run accross an unusual problem installing win7 on two different laptops and getting the same result, stuck on start up screen directing after the first loading of files. The logo does not even start to appear. I have been repairing and building computers for about 15yrs. now and I have...
Installation & Setup
need script to set screensaver / lock out to 10 minutes
need script to set screensaver / lock out to 10 minutes . Is such a think possible ? thanks
General Discussion
Lock PC by Power Options not screensaver
Hello, I am unable to lock my PC via power options. Although I have set it as to lock PC, it is impossible to do it as per Windows XP. The only way to lock it is through the screensaver, but this is not an option for me as I work 10 hours at an office and I prefer the blank screensaver to...
Customization
Caps lock, num lock, scroll lock screen messages
Hi, how to disable Caps lock, num lock, scroll lock screen messages? I have desktop pc with two keyboards usb and bluetooth. Also TOSHIBA Bluetooth Stack software, but in device manager: keyboard > hid keyboard device both using microsoft drivers. And I dont have any software installed...
General Discussion
Auto screen lock(NOT SCREENSAVER)
Screensaver is disabled. After a few minutes, 5 I think, Window 7 lcoks the computer and put up the password prompt. I have looked through user accounts, security menus, searched web, but can't find anything. How do I disable/control this? Screensaver is disabled.
System Security
How to lock PC without the need of a screensaver?
I've read somewhere here before that Windows 7 introduced a feature wherein you can lock your PC without the need of a screensaver. My question is how can I access this, or change this setting? Local Security Policy? GPedit? :confused:
General Discussion

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd

All times are GMT -5. The time now is 22:56.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App