[python-win32] SetSystemTime: A required privilege is not held by the client

Tim Roberts timr at probo.com
Wed Apr 16 19:48:43 CEST 2008


Robert wrote:
> SetSystemTime on Vista admin account throws:
>
> (1314, 'SetSystemTime', 'A required privilege is not held by
> the client.')
>
> Not known from previous Windows versions.
> With what switch or whatever can this be enabled?
>   

Remember that, on Vista, unlike previous systems, logging in as an 
administrator does not automatically give every process administrator 
privileges.  This is one of the most invasive and annoying attributes of 
Vista.  To get administrator privileges, a process has to be "elevated" 
(memories of Young Frankenstein).

As a first test, does it work if you run it from an elevated command line?

-- 
Tim Roberts, timr at probo.com
Providenza & Boekelheide, Inc.



More information about the python-win32 mailing list