Page 1 of 2 12>
Topic Options
#114620 - 2004-02-23 06:31 PM Wake Screen Saver
sliver Offline
Getting the hang of it

Registered: 2002-09-05
Posts: 94
Trying to use send keys like so:

$nul=SendKeys("m")
or
SendKeys("{ENTER}")

to wake a remote machine from it's screen saver....but it does not seem to work (using psexec to run the command on the remote machine...psexec reports kix file as started and successful).
Is there another way to wake a pc using kix or any utility...should'nt this work??

Top
#114621 - 2004-02-23 07:08 PM Re: Wake Screen Saver
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
The script will need to run under the same account as the account used to activate the screensaver. Why do you need to do this? There might be alternative solutions.
_________________________
There are two types of vessels, submarines and targets.

Top
#114622 - 2004-02-23 08:44 PM Re: Wake Screen Saver
sliver Offline
Getting the hang of it

Registered: 2002-09-05
Posts: 94
I need this because pre sp4 sms clients will not install when the package is set to "only when user is logged on" and a screen saver is on. It works fine once you get the screen saver off but for some reason sms detects a screen saver being on as a the user is logged off....thus we want to run a little pre job to wake any machines who have the screen saver on (using psexec).
Top
#114623 - 2004-02-23 08:57 PM Re: Wake Screen Saver
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
hmm...
so why don't you install it in logonscript?
_________________________
!

download KiXnet

Top
#114624 - 2004-02-23 09:03 PM Re: Wake Screen Saver
sliver Offline
Getting the hang of it

Registered: 2002-09-05
Posts: 94
It runs through loginscript as well but for people that are already logged on and away from their desks for the weekend....and whose screensaver has kicked in they should be getting the package through SMS...but are not because of the screen saver thing.
Thats why we wanted to run this first for everyone who was still on the network and not going to logon in the morning and then kick off the package on their pc's.


Top
#114625 - 2004-02-23 09:14 PM Re: Wake Screen Saver
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
Why don't you run it as a scheduled task as a silent install?
_________________________
There are two types of vessels, submarines and targets.

Top
#114626 - 2004-02-23 09:27 PM Re: Wake Screen Saver
Co Offline
MM club member
***

Registered: 2000-11-20
Posts: 1342
Loc: NL
Google discussion groups



Quote:

This can be done (sorta)....

Modify the key to 0 as so.... "hkcu\control
panel\desktop\screensaverIsSecure=0"


The next time someone jiggles the mouse the password screen will come up,
but the screen saver (the logon screen saver anyway) will re-read the
registry setting for itself as it goes back to sleep from the jiggle (about
a minute later), the next time it's jiggled, it's not locked.

I did this to fix a hung SMS job throughout our environment a couple months
ago. I scheduled an AT command using Reg.exe from the Resource Kit because
you cannot get to HKCU remotely. We just had to have someone jiggle the
mouse on the workstations in their area to get it going, but not an Admin.

You may be able to get some code to work that attempts to wake the machine
(the replacement of jiggle the mouse) and it should work. It's kludgy but it
does work and in my opinion is a security flaw!

Shawn




_________________________
Co


Top
#114627 - 2004-02-23 09:45 PM Re: Wake Screen Saver
sliver Offline
Getting the hang of it

Registered: 2002-09-05
Posts: 94
Why don't you run it as a scheduled task as a silent install?

Can you run a scheduled task as the user who is logged in (and set this up remotely)??? These apps needs to install under the users context because of HKCU settings and not the admin or system context. I have not found a way to do this using jt.exe or At.
If you know a way to run a scheduled task as the user (remotely) please post because this would be very useful for me.

Top
#114628 - 2004-02-23 09:58 PM Re: Wake Screen Saver
Co Offline
MM club member
***

Registered: 2000-11-20
Posts: 1342
Loc: NL
You have to create a script which search for the current user's SID in HKEY_USERS...

I know it is possible... But i never did it with Kix. A co-worker has created a script with Wise Package studio which does this job.
_________________________
Co


Top
#114629 - 2004-02-23 10:23 PM Re: Wake Screen Saver
sliver Offline
Getting the hang of it

Registered: 2002-09-05
Posts: 94
but how to add the users password to the scheduled job??? or would you not need that if you grab his sid?
Top
#114630 - 2004-02-23 10:36 PM Re: Wake Screen Saver
Co Offline
MM club member
***

Registered: 2000-11-20
Posts: 1342
Loc: NL
It is hard to say.. When you edit HKCU or HKU you have to reboot... MMM well, it depends, We use this Wise script as part of the loginscript and changes are made directly so a reboot is not required. But we use XP mabye that's why... What OS's do you use? W2K i guess...

Edited by Co (2004-02-24 07:16 AM)
_________________________
Co


Top
#114631 - 2004-02-24 09:05 AM Re: Wake Screen Saver
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
why would someone need a reboot?
I've heard that before too, I don't get that.

at maximum you need to shut the proggies that hold on to something old, thus many times easiest is to log off user or kill explorer.
_________________________
!

download KiXnet

Top
#114632 - 2004-02-24 09:27 AM Re: Wake Screen Saver
Co Offline
MM club member
***

Registered: 2000-11-20
Posts: 1342
Loc: NL
MMM, you've got a point...

Edited by Co (2004-02-24 09:27 AM)
_________________________
Co


Top
#114633 - 2004-02-24 09:28 AM Re: Wake Screen Saver
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
mmm, I know
_________________________
!

download KiXnet

Top
#114634 - 2004-02-24 03:26 PM Re: Wake Screen Saver
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
See also UpdateUserParameters() - updates per-user system parameters
_________________________
There are two types of vessels, submarines and targets.

Top
#114635 - 2004-02-24 03:58 PM Re: Wake Screen Saver
sliver Offline
Getting the hang of it

Registered: 2002-09-05
Posts: 94
Maybe I should pose this question then.....is there a way to run an executable remotely in the users account context????
Top
#114636 - 2004-02-24 04:34 PM Re: Wake Screen Saver
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
Yes, if you have the username/password. Have you tried to remotely force a logoff/reboot event? This would force the user to rerun the login script.
_________________________
There are two types of vessels, submarines and targets.

Top
#114637 - 2004-02-24 05:04 PM Re: Wake Screen Saver
sliver Offline
Getting the hang of it

Registered: 2002-09-05
Posts: 94
Good idea but I know in the past they do not let us do logoff\shitdown events because too many users left important data unsaved on their desktops and lost it because of the logoff.
Top
#114638 - 2004-02-24 06:10 PM Re: Wake Screen Saver
Radimus Moderator Offline
Moderator
*****

Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
they don't let us do shitdown events either
_________________________
How to ask questions the smart way <-----------> Before you ask

Top
#114639 - 2004-02-24 08:07 PM Re: Wake Screen Saver
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
How about shitup? Is that allowed?
_________________________
There are two types of vessels, submarines and targets.

Top
Page 1 of 2 12>


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 837 anonymous users online.
Newest Members
M_Moore, BeeEm, min_seow, Audio, Hoschi
17883 Registered Users

Generated in 0.072 seconds in which 0.043 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org