Re: [Samba] help - logon script

2009-03-17 Thread John Doe

 I change from logon.exe that i put on every user directory which has script 
 like 
 this 
 
 REGEDIT4
 
 [HKEY_CURRENT_USER\Control Panel\International]
 
 iTime=1
 sTimeFormat=HH:mm:ss  
 
 But when i try to login the time format doesn't change it still in 12 format, 
 i've tried many times but still the same. 

Do you mean you included something like:

  regedit /s x:\path\to\set24.reg

to your login script and it is not working?
Did you try to run the line manualy to see if it works?

JD


  

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] help - logon script

2009-03-17 Thread Adam Williams
have you put that regedit4 data into a file and ran it with regedit /s 
time.reg in their login script?


yudi shiddiq wrote:

Hello everybody...

I need help about logon script, this time i want to change time format from 12 
format to 24 format on pc client.
I'm using samba 3.0.20 on PDC and the client is mostly win xp but we have pc 
with os win ME too.

I change from logon.exe that i put on every user directory which has script like this 


REGEDIT4

[HKEY_CURRENT_USER\Control Panel\International]

iTime=1
sTimeFormat=HH:mm:ss  

But when i try to login the time format doesn't change it still in 12 format, i've tried many times but still the same. 


Is there any clue...

I'm sorry if there is any mistake on my english.:)

Thx



  
  

--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] help - logon script

2009-03-17 Thread Mark Casey


Adam Williams wrote:
have you put that regedit4 data into a file and ran it with regedit /s 
time.reg in their login script?


yudi shiddiq wrote:

Hello everybody...

I need help about logon script, this time i want to change time 
format from 12 format to 24 format on pc client.
I'm using samba 3.0.20 on PDC and the client is mostly win xp but we 
have pc with os win ME too.


I change from logon.exe that i put on every user directory which has 
script like this

REGEDIT4

[HKEY_CURRENT_USER\Control Panel\International]

iTime=1
sTimeFormat=HH:mm:ss 
But when i try to login the time format doesn't change it still in 12 
format, i've tried many times but still the same.

Is there any clue...

I'm sorry if there is any mistake on my english.:)

Thx



  


Oooo yay a registry question. A few things to keep in mind, starting 
with the most obvious (some, I realize, you may already know...but I'm 
gonna paint with a wide brush).


1. The _CURRENT_USER hive of the registry is just that, per user. 
Changes to one user will not effect others.

But when i try to login the time format doesn't change
If you set the script ONLY for your users and then YOU login with your 
own account that does not have the script, then it makes sense that your 
time would not change.


2. You do not need to leave these changes in the logon script. Once the 
change is actually made for each user, it should stick. Once it is 
working you can leave it there for a few weeks (until everyone has 
logged in) and then remove it.


3. You can modify  [HKEY_USERS\.DEFAULT\Control Panel\International] 
with your preferred settings, and all NEW users will inherit them in 
their HKCU.


4. Some settings in various versions of Windows are VERY hard to change 
via scripts. For example in WinXP, changing whether the Start menu 
hides, is locked, has quick launch, and etc is rather difficult. The 
reason is that Windows XP reads the settings into explorer.exe from the 
user's HKCU before your logon script can work, and writes them back at 
logoff; rendering scripts useless. (not to mention that all of those 
settings are globbed into one long binary string (50 characters or so) 
representing all of the settings).


I just tested the time settings on my Win XP Pro system and manual 
changes seem to be retained, and the time format did change when I 
logged back on...just be aware that Windows may be working against you 
(depending on the version and what you are trying to change, etc).


5. You can mount a user's HKCU as a subkey of HKLM even when they are 
logged off. Open HKLM and go to File- load hive. Choose the user's 
ntuser.dat file (usually C:\documents and settings\USERNAME\ntuser.dat). 
This can be invaluable for investingating things or for changing 
settings like the ones I described in #4. (In fact, deciphering the long 
binary string for the start menu settings and writing a program to 
enumerate all the users, mount their ntuser.dat, and make the change 
when they are not logged in is the only way I've seen #4 done.)


Other than that, try what others have suggested here. Make sure the time 
format is actually changing when you merge the .reg manually or manually 
edit the registry. Also note that there is the command line REG command 
that can be used to work with individual keys, should your command line 
merge method never work.


HTH
-Mark


--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] Help ! Logon script doesn't work on XP

2004-04-09 Thread Thomas Rankin
On Fri, 9 Apr 2004, M. Vancl wrote:

 Hi,

 I have very strange problem:
 I had created logon script (bat file dynamically generated by root peexec)
 and tested it successfully on Win98 workstation.
 Now I'm testing it on XP wkst., but the same (created by the same method)
 script is during logon not executed.
 What is absolutely mysterious for me ? The script is really read by
 workstation durin logon - I saw it in network traffic (caught by tcpdump and
 displayed by ethereal).
 Here is copy of current script (of course - every line o file ends with
 \r\n):
 --- snip ---
 @echo off
 set CLIENT=prog01t
 set USER=p01861
 set SERVER=sambaii
 set SMBPID=24631
 set ARCH=WinXP
 copy /b z:\logon.bat %TEMP%\logon.bat
 %TEMP%\logon.bat
 --- snip ---
 After logon there is no file %TEMP%\logon.bat.
 Next, when I manually do net use z: \\sambaii\netlogon and execute my
 logon script from there, everything is done by my wishes...

 Does have  anybody some idea ?

Are you sure the XP client is logging onto the NT domain?
XP can just memorise network connections etc. and appear to be logging on.

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Help ! Logon script doesn't work on XP

2004-04-09 Thread flinchlock
Quoting Thomas Rankin [EMAIL PROTECTED]:

 On Fri, 9 Apr 2004, M. Vancl wrote:

  copy /b z:\logon.bat %TEMP%\logon.bat

  %TEMP%\logon.bat

Are you 100% sure TEMP is set before this script is ran?

I was also doing some experimenting, and I had incorrectly redefined
the TEMP variable!

Try adding these two lines to the top of the login script:

set
pause

HTH,
Mike
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Help ! Logon script doesn't work on XP

2004-04-09 Thread RRuegner
M. Vancl schrieb:

Hi,

I have very strange problem:
I had created logon script (bat file dynamically generated by root peexec)
and tested it successfully on Win98 workstation.
Now I'm testing it on XP wkst., but the same (created by the same method)
script is during logon not executed.
What is absolutely mysterious for me ? The script is really read by
workstation durin logon - I saw it in network traffic (caught by tcpdump and
displayed by ethereal).
Here is copy of current script (of course - every line o file ends with
\r\n):
--- snip ---
@echo off
set CLIENT=prog01t
set USER=p01861
set SERVER=sambaii
set SMBPID=24631
set ARCH=WinXP
copy /b z:\logon.bat %TEMP%\logon.bat
%TEMP%\logon.bat
--- snip ---
After logon there is no file %TEMP%\logon.bat.
Next, when I manually do net use z: \\sambaii\netlogon and execute my
logon script from there, everything is done by my wishes...
Does have  anybody some idea ?

Thanks for any advice

M. Vancl




hi, what is this with copy etc, place you bat file ( must be written in 
dos editor ) in a netlogon share on samba , make it readable and it will 
executed, for sure you can create the scipt on the fly with perl as 
prexec to that share ( example in the samba source ) but after that ( if 
you have the right parameter in smb.conf the script will be executed by 
the win client automaticly no need for net use and copy it to the 
client ,after all some win versions need diffrent syntax with bat files 
honor them.
i think your special failure depend on user rights on the win machine , 
xp as multiuser system want to have admin rights to execute your bat , 
check your event log
Regards
--
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba