Technology Questions

Go Back   Technology Questions > Software Questions > Operating System Questions > Windows XP

Windows XP Discuss the Microsoft Windows XP Operating System

Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old 07-14-2008, 01:10 PM
PatrickMail@gmx.de
Newsgroup Contributor
 
Posts: n/a
"Using hdparm in limited user accounts" or "starting progs with adminrights before waking up from hibernation"

Hi everybody,

I am using the programm hdparm to modify the settings of my HDD
(especially Advanced Power Management). This program works fine, but
has to be executed in each session. This is no problem, because it can
simply be but into a batch file and placed in the start-up folder.

However, I frequently use limited user accounts. Here, the command
does not work. It terminates with "hda: Permission denied". Is there
an option to let windows execute the command before I log into the
limited user account and thus to keep the option set while I work in
that account? I also have to mention that I usually use the hibernate
function, so actually, there is no real start-up process.

The situation is the following: When I am looged in as an admin and
start hdparm and then change into a limited account everything is fine
and the HDD option is set. When I then put the computer into
hibernation and then wake it up again next morning the setting is gone
and I have to switch to an admin account to make hdparm set the option
again.

Does anybody of you have an idea how I could solve this problem?

Greetings.





Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

 
Old 07-14-2008, 01:10 PM
  #2 (permalink)  
Old 07-14-2008, 01:50 PM
Pegasus \(MVP\)
Newsgroup Contributor
 
Posts: n/a
Re: "Using hdparm in limited user accounts" or "starting progs with admin rights before waking up from hibernation"


<PatrickMail@gmx.de> wrote in message
news:859c16e3-c1de-4a4b-9d5c-dfa1697c2919@m36g2000hse.googlegroups.com...
> Hi everybody,
>
> I am using the programm hdparm to modify the settings of my HDD
> (especially Advanced Power Management). This program works fine, but
> has to be executed in each session. This is no problem, because it can
> simply be but into a batch file and placed in the start-up folder.
>
> However, I frequently use limited user accounts. Here, the command
> does not work. It terminates with "hda: Permission denied". Is there
> an option to let windows execute the command before I log into the
> limited user account and thus to keep the option set while I work in
> that account? I also have to mention that I usually use the hibernate
> function, so actually, there is no real start-up process.
>
> The situation is the following: When I am looged in as an admin and
> start hdparm and then change into a limited account everything is fine
> and the HDD option is set. When I then put the computer into
> hibernation and then wake it up again next morning the setting is gone
> and I have to switch to an admin account to make hdparm set the option
> again.
>
> Does anybody of you have an idea how I could solve this problem?
>
> Greetings.


Since this program affects the system, not the user session, you should
execute the command as part of your startup process. It would be
sufficient to schedule your batch file to run at boot time. Don't invoke
it as part of the logon process.

When returning from hibernation then you could use Hibernate Trigger
to invoke your batch file again:
http://www.desimonesystems.com/suspendtrigger/index.php
I haven't tried it myself - this is an educated guess.


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #3 (permalink)  
Old 07-14-2008, 02:30 PM
PatrickBrzoskaPB@googlemail.com
Newsgroup Contributor
 
Posts: n/a
Re: "Using hdparm in limited user accounts" or "starting progs withadmin rights before waking up from hibernation"

Hi, when I use Hibernate Trigger programs are not executed with admin
rights. It is just like starting the batch myself by clicking when
returning from hibernation to my limited account.

On 14 Jul., 22:42, "Pegasus \(MVP\)" <I....@fly.com.oz> wrote:
> <PatrickM...@gmx.de> wrote in message
>
> news:859c16e3-c1de-4a4b-9d5c-dfa1697c2919@m36g2000hse.googlegroups.com...
>
>
>
> > Hi everybody,

>
> > I am using the programm hdparm to modify the settings of my HDD
> > (especially Advanced Power Management). This program works fine, but
> > has to be executed in each session. This is no problem, because it can
> > simply be but into a batch file and placed in the start-up folder.

>
> > However, I frequently use limited user accounts. Here, the command
> > does not work. It terminates with "hda: Permission denied". Is there
> > an option to let windows execute the command before I log into the
> > limited user account and thus to keep the option set while I work in
> > that account? I also have to mention that I usually use the hibernate
> > function, so actually, there is no real start-up process.

>
> > The situation is the following: When I am looged in as an admin and
> > start hdparm and then change into a limited account everything is fine
> > and the HDD option is set. When I then put the computer into
> > hibernation and then wake it up again next morning the setting is gone
> > and I have to switch to an admin account to make hdparm set the option
> > again.

>
> > Does anybody of you have an idea how I could solve this problem?

>
> > Greetings.

>
> Since this program affects the system, not the user session, you should
> execute the command as part of your startup process. It would be
> sufficient to schedule your batch file to run at boot time. Don't invoke
> it as part of the logon process.
>
> When returning from hibernation then you could use Hibernate Trigger
> to invoke your batch file again:http://www.desimonesystems.com/suspendtrigger/index.php
> I haven't tried it myself - this is an educated guess.


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #4 (permalink)  
Old 07-14-2008, 02:30 PM
Pegasus \(MVP\)
Newsgroup Contributor
 
Posts: n/a
Re: "Using hdparm in limited user accounts" or "starting progs with admin rights before waking up from hibernation"


<PatrickBrzoskaPB@googlemail.com> wrote in message
news:82f53d91-72b2-4ea6-8d45-91fd0497eb21@i76g2000hsf.googlegroups.com...
> Hi, when I use Hibernate Trigger programs are not executed with admin
> rights. It is just like starting the batch myself by clicking when
> returning from hibernation to my limited account.
>


You could get Hibernat Trigger to create a semaphore file which
gets picked up by a task scheduled to run every five minutes. Not
particularly elegant but effective . . .


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #5 (permalink)  
Old 07-14-2008, 02:30 PM
PatrickBrzoskaPB@googlemail.com
Newsgroup Contributor
 
Posts: n/a
Re: "Using hdparm in limited user accounts" or "starting progs withadmin rights before waking up from hibernation"


Semaphore file? What's this? And how will it overcome the limited
rights on a LUA?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #6 (permalink)  
Old 07-14-2008, 03:00 PM
Pegasus \(MVP\)
Newsgroup Contributor
 
Posts: n/a
Re: "Using hdparm in limited user accounts" or "starting progs with admin rights before waking up from hibernation"


<PatrickBrzoskaPB@googlemail.com> wrote in message
news:4f92e34c-02fb-4d9e-8b73-37c7c7820c61@m44g2000hsc.googlegroups.com...
>
> Semaphore file? What's this? And how will it overcome the limited
> rights on a LUA?


Simple:
1. You get Hibernate Trigger to create the file c:\semaphore.txt
(for example) when the machine wakes up.
2. A scheduled task running once every five minutes under
an account with admin privileges checks for the presence
of c:\semaphore.txt. When it finds it then it does two things:
a) It deletes c:\semaphore.txt.
b) It runs hdparm.exe.
As I said, not elegant but effective.


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #7 (permalink)  
Old 07-14-2008, 03:00 PM
PatrickBrzoskaPB@googlemail.com
Newsgroup Contributor
 
Posts: n/a
Re: "Using hdparm in limited user accounts" or "starting progs withadmin rights before waking up from hibernation"

But this way the admin account needs to run in the background
(slowing down the systems).
In case it runs anywhy, hdparm could also be started normally (via the
startup or via scheduled tasks "run at log-on") or am I wrong?

On 14 Jul., 23:49, "Pegasus \(MVP\)" <I....@fly.com.oz> wrote:
> <PatrickBrzosk...@googlemail.com> wrote in message
>
> news:4f92e34c-02fb-4d9e-8b73-37c7c7820c61@m44g2000hsc.googlegroups.com...
>
>
>
> > Semaphore file? What's this? And how will it overcome the limited
> > rights on a LUA?

>
> Simple:
> 1. You get Hibernate Trigger to create the file c:\semaphore.txt
> * * (for example) when the machine wakes up.
> 2. A scheduled task running once every five minutes under
> * * an account with admin privileges checks for the presence
> * * of c:\semaphore.txt. When it finds it then it does two things:
> * * a) It deletes c:\semaphore.txt.
> * * b) It runs hdparm.exe.
> As I said, not elegant but effective.


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #8 (permalink)  
Old 07-14-2008, 04:40 PM
Pegasus \(MVP\)
Newsgroup Contributor
 
Posts: n/a
Re: "Using hdparm in limited user accounts" or "starting progs with admin rights before waking up from hibernation"

If you can measure a slow-down effect of a scheduled task that executes
the command

if not exist c:\semaphore.txt goto :eof

then I would love to hear how you achieve this amazing feat.

I covered the startup sequence in my previous reply - please have
another look at it.

<PatrickBrzoskaPB@googlemail.com> wrote in message
news:7ab1f536-b3df-4302-996b-cb207ff609c1@w7g2000hsa.googlegroups.com...
But this way the admin account needs to run in the background
(slowing down the systems).
In case it runs anywhy, hdparm could also be started normally (via the
startup or via scheduled tasks "run at log-on") or am I wrong?

On 14 Jul., 23:49, "Pegasus \(MVP\)" <I....@fly.com.oz> wrote:
> <PatrickBrzosk...@googlemail.com> wrote in message
>
> news:4f92e34c-02fb-4d9e-8b73-37c7c7820c61@m44g2000hsc.googlegroups.com...
>
>
>
> > Semaphore file? What's this? And how will it overcome the limited
> > rights on a LUA?

>
> Simple:
> 1. You get Hibernate Trigger to create the file c:\semaphore.txt
> (for example) when the machine wakes up.
> 2. A scheduled task running once every five minutes under
> an account with admin privileges checks for the presence
> of c:\semaphore.txt. When it finds it then it does two things:
> a) It deletes c:\semaphore.txt.
> b) It runs hdparm.exe.
> As I said, not elegant but effective.



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #9 (permalink)  
Old 07-16-2008, 03:41 PM
PatrickBrzoskaPB@googlemail.com
Newsgroup Contributor
 
Posts: n/a
Re: "Using hdparm in limited user accounts" or "starting progs withadmin rights before waking up from hibernation"

Hi, I found another solution for my problem.

I simply run the program using the command "runas /user:USERNAME
"Progname.exe". Works fine.

On 15 Jul., 01:15, "Pegasus \(MVP\)" <I....@fly.com.oz> wrote:
> If you can measure a slow-down effect of a scheduled task that executes
> the command
>
> if not exist c:\semaphore.txt goto :eof
>
> then I would love to hear how you achieve this amazing feat.
>
> I covered the startup sequence in my previous reply - please have
> another look at it.
>
> <PatrickBrzosk...@googlemail.com> wrote in message
>
> news:7ab1f536-b3df-4302-996b-cb207ff609c1@w7g2000hsa.googlegroups.com...
> But *this way the admin account needs to run in the background
> (slowing down the systems).
> In case it runs anywhy, hdparm could also be started normally (via the
> startup or via scheduled tasks "run at log-on") or am I wrong?
>
> On 14 Jul., 23:49, "Pegasus \(MVP\)" <I....@fly.com.oz> wrote:
>
> > <PatrickBrzosk...@googlemail.com> wrote in message

>
> >news:4f92e34c-02fb-4d9e-8b73-37c7c7820c61@m44g2000hsc.googlegroups.com....

>
> > > Semaphore file? What's this? And how will it overcome the limited
> > > rights on a LUA?

>
> > Simple:
> > 1. You get Hibernate Trigger to create the file c:\semaphore.txt
> > (for example) when the machine wakes up.
> > 2. A scheduled task running once every five minutes under
> > an account with admin privileges checks for the presence
> > of c:\semaphore.txt. When it finds it then it does two things:
> > a) It deletes c:\semaphore.txt.
> > b) It runs hdparm.exe.
> > As I said, not elegant but effective.


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do you change your account from "limited" to "administrator"? Pam A. Windows XP 6 03-19-2008 07:30 PM
Use of Limited Accounts in "Windows XP". Don J Windows XP 4 10-26-2007 10:20 AM
"user accounts" vs "user profiles" Richard Fangnail Windows XP 2 10-15-2007 10:50 AM
"User Accounts" AND "User Accounts 2" in Control Panel Opinicus Windows XP 12 01-04-2007 05:22 AM
"Safely remove hardware" not shown in "Users" vs "Domain Users" grouped user SE Windows XP 5 01-04-2007 04:46 AM


New To Technology Questions? Do You Need Help with Your Computer or Device? Do You Need Help with this site?

All times are GMT -8. The time now is 02:50 PM.


2003 - 2009 All Rights Reserved. Technology Questions

Search Engine Friendly URLs by vBSEO 3.3.0