#148074 - 2005-09-20 04:49 PM
Script help (Extreme NOOB question)
|
jsankey
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
|
|
|
|
#148076 - 2005-09-20 04:58 PM
Re: Script help (Extreme NOOB question)
|
jsankey
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
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
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
|
|
|
|
#148080 - 2005-09-20 05:07 PM
Re: Script help (Extreme NOOB question)
|
jsankey
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
|
|
|
|
Moderator: Glenn Barnas, NTDOC, Arend_, Jochen, Radimus, Allen, ShaneEP, Ruud van Velsen, Mart
|
0 registered
and 476 anonymous users online.
|
|
|