Page 1 of 1 1
Topic Options
#148074 - 2005-09-20 04:49 PM Script help (Extreme NOOB question)
jsankey Offline
Fresh Scripter

Registered: 2005-05-02
Posts: 5
ok - my apologies for this. I am a complete beginner with Kixtart, and what little I know I have learned by reading my predecessors code and the online help file. what I'm trying to do here is, based on group membership, check for the existence of migrated.txt, and if it DOES exist, bypass the registry entries, and if it DOESN'T exist, execute the registry entries and copy migrated.txt to the path specified. when I run it, this does not seem to be evaluating group membership and it is running for everyone. Im sure you can all shoot holes in this code... can someone offer some advice here? Or some suggestions on cleaning it up? thanks much
Code:
 
;IF INGROUP ("NWMDConvTest") > 0
; ? "In Global Group Triad\NWMDConvTest"
; If Exist ("%userprofile%\Local Settings\Application Data\Microsoft\Outlook\migrated.txt")
; ENDIF
; Else
; DelValue("HKEY_CURRENT_USER\Software\Microsoft\Office\11.0\Outlook\Setup", "First-Run")
; DelValue("HKEY_CURRENT_USER\Software\Microsoft\Office\11.0\Outlook\Setup", "FirstRun")
; WRITEVALUE("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Exchange\Client\Extensions", "Exchange Extensions", "4.0;emsuix32.dll;7;011111111111110;1111011100", "REG_SZ")
; WRITEVALUE("HKEY_CURRENT_USER\Software\Microsoft\Office\11.0\Outlook\Setup", "ImportPRF", "\\nwmd-ms1\installs\2003\TriadProfileMigration\UpdateProfile\UpdateProfile.PRF", "REG_SZ")
; COPY "\\nwmd-ms1\netlogon\migrated.txt" "%userprofile%\Local Settings\Application Data\Microsoft\Outlook\migrated.txt"
;ENDIF


Top
#148075 - 2005-09-20 04:54 PM Re: Script help (Extreme NOOB question)
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Have you tried flushing the group cache with -F or by deleting the reg key?
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#148076 - 2005-09-20 04:58 PM Re: Script help (Extreme NOOB question)
jsankey Offline
Fresh Scripter

Registered: 2005-05-02
Posts: 5
No - and honestly, I'm not sure exactly what you are referring to. is the -F something in Kixtart?
Top
#148077 - 2005-09-20 04:59 PM Re: Script help (Extreme NOOB question)
Bryce Offline
KiX Supporter
*****

Registered: 2000-02-29
Posts: 3167
Loc: Houston TX
some funny stuff with your If statments...
is this what you are after?
Code:

If InGroup ("NWMDConvTest") > 0
? "In Global Group Triad\NWMDConvTest"
If not Exist ("%userprofile%\Local Settings\Application Data\Microsoft\Outlook\migrated.txt")
DelValue("HKEY_CURRENT_USER\Software\Microsoft\Office\11.0\Outlook\Setup", "First-Run")
DelValue("HKEY_CURRENT_USER\Software\Microsoft\Office\11.0\Outlook\Setup", "FirstRun")
WriteValue("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Exchange\Client\Extensions", "Exchange Extensions", "4.0;emsuix32.dll;7;011111111111110;1111011100", "REG_SZ")
WriteValue("HKEY_CURRENT_USER\Software\Microsoft\Office\11.0\Outlook\Setup", "ImportPRF", "\\nwmd-ms1\installs\2003\TriadProfileMigration\UpdateProfile\UpdateProfile.PRF", "REG_SZ")
Copy "\\nwmd-ms1\netlogon\migrated.txt" "%userprofile%\Local Settings\Application Data\Microsoft\Outlook\migrated.txt"
EndIf
EndIf


Top
#148078 - 2005-09-20 05:01 PM Re: Script help (Extreme NOOB question)
jsankey Offline
Fresh Scripter

Registered: 2005-05-02
Posts: 5
hehe... if you think this is funny, you should see the rest of the script. :-/

yes, I think that probably is exactly what I'm looking for. will give that a try. THANK YOU!

Top
#148079 - 2005-09-20 05:03 PM Re: Script help (Extreme NOOB question)
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Yes, -F is explained in the manual and a few hundred (thousand) times on this board.

Not is NOT available in all versions.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#148080 - 2005-09-20 05:07 PM Re: Script help (Extreme NOOB question)
jsankey Offline
Fresh Scripter

Registered: 2005-05-02
Posts: 5
damn.... why does all you mods script look all clean and mine looks, well... like crap? eh... I'll get there one of these days.
Top
#148081 - 2005-09-20 05:08 PM Re: Script help (Extreme NOOB question)
Bryce Offline
KiX Supporter
*****

Registered: 2000-02-29
Posts: 3167
Loc: Houston TX
I think "NOT" is avaliable in all version that support the -f command... right?
Top
#148082 - 2005-09-20 07:31 PM Re: Script help (Extreme NOOB question)
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Well... I don't have the 4.0 manual but it is listed as an enhancement in 4.02 on page 5.

Edited by Les (2005-09-20 08:07 PM)
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
Page 1 of 1 1


Moderator:  Glenn Barnas, NTDOC, Arend_, Jochen, Radimus, Allen, ShaneEP, Ruud van Velsen, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 476 anonymous users online.
Newest Members
batdk82, StuTheCoder, M_Moore, BeeEm, min_seow
17885 Registered Users

Generated in 0.061 seconds in which 0.027 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org