Run under administrator rights
Hi! I make Sidebar gadget for time synchronization. I need to rum followimg code var WshShell = new ActiveXObject("WScript.Shell"); WshShell.Run ("w32tm.exe /resync",10, true); but w32tm.exe don't run under administrator rights. How I can run it with administrator rights? Thank you in advance. Other question I need run timedate.cpl applet. How I can run it with opened tab "Internet Time" (tab #2) like rundll32.exe /d shell32.dll,Control_RunDLL timedate.cpl,,1 (opened tab#1).
September 26th, 2011 2:40am

Hi, There is no need for such a gadget as Windows will resync its' time with the configured time services often enough to provide accurate time. If you suspect your clock skews too much, you can configure the pollinginterval forw32tm; please take a look at this article which demonstrates common uses and configurations for the Windows Time Service: http://support.microsoft.com/kb/816042 Another consideration is that end-users should not mess around with time settings (especially in domain environments) because Kerebros authentication relies on accurate time. That makes time a critical component to be manged by the administrator. As far as I know, gadgets are meant for en-user information, not for cerating management tools: http://msdn.microsoft.com/en-us/library/windows/desktop/bb508510(v=vs.85).aspx MCP/MCSA/MCTS/MCITP
Free Windows Admin Tool Kit Click here and download it now
September 26th, 2011 6:28am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics