Hi, in my logon.bat file i put : net time \\admin /SET /YES to synchronise computer time with the server. This works when the user who is login in has administrator rights on the computer. How can i do with users who are just "member of the domain"? Is there a way to run this command "as administrator" ? Thanks for any help
i did it this way, Or use ntp service in xp .. or use GPEDIT.MSC ( group policies ) For this goto Computer config - Windows Settings - Security Settings - - Local policy - UserRights. in here below there is "System Time Change" Just add the domain group where all of you domain users are in. ( for me : "domain users" ) This way you give domain users rights to adjust time. Louis>-----Oorspronkelijk bericht----- >Van: samba-bounces+louis=van-belle.nl@lists.samba.org >[mailto:samba-bounces+louis=van-belle.nl@lists.samba.org] >Namens Patrick DUBAU >Verzonden: dinsdag 11 oktober 2005 9:06 >Aan: samba@lists.samba.org >Onderwerp: [Samba] synchronise time > >Hi, > >in my logon.bat file i put : net time \\admin /SET /YES to synchronise >computer time with the server. >This works when the user who is login in has administrator >rights on the >computer. >How can i do with users who are just "member of the domain"? >Is there a >way to run this command "as administrator" ? >Thanks for any help > >-- >To unsubscribe from this list go to the following URL and read the >instructions: https://lists.samba.org/mailman/listinfo/samba >
Patrick DUBAU schrieb: > Hi, > > in my logon.bat file i put : net time \\admin /SET /YES to synchronise computer time with the server. > This works when the user who is login in has administrator rights on the computer. > How can i do with users who are just "member of the domain"? Is there a way to run this command "as administrator" ? > Thanks for any help I use WPKG for that - http://wpkg.org - (and for all other tasks needing administrator rights, like changing printers, installing and updating software, changing file permissions and registry entries etc.). -- Tomek
Patrick DUBAU wrote:> in my logon.bat file i put : net time \\admin /SET /YES to synchronise > computer time with the server. > This works when the user who is login in has administrator rights on > the computer. > How can i do with users who are just "member of the domain"? Is there > a way to run this command "as administrator" ?Why not use NTP instead? Windows supports NTP (the Windows Time Service), and http://msi-repository.sourceforge.net/ has "NTP for Windows" MSI's that make using it easy. (I haven't tried these to know how they work.) Josh Kelley
Tomasz Chmielewski a ?crit :> Patrick DUBAU schrieb: > >> Thanks for all your answers. >> I found another way to solve my problem >> I use cpau.exe found at http://www.joeware.net/win/free/tools/cpau.htm >> First step : create an encrypt file by the following command (execute >> on c:\ -because on netwotk drive it won't work) : >> cpau.exe ?u iufm\administrator ?p xxxx -ex ? net time \\admin /set >> /yes ? -file setime.txt ?enc > > > doesn't it mean a regular user can access the Administrator password? > it's encrypted, but is it that hard to guess? >Well i hope it isn't. Here is a cat from the encrypt file 365355F67345113374357370223237D30E76100A74A73E74B71F70A73C66C72F65104110111104103105101105102F76103B76B73E74C73112B71B72106B6 3E70106107107103104106100C76101121E73100113E73A76E67C65E71C64A71113105106104103106102101104B77E76F24C74D77113C75A65E65C71D621 06107112126105101125C77B77116A76B74 and so on ... I didn't put all the content of the file...