Setting up the INI is a braindead simple one liner. Something like this:
(untested)
Code:
break on
$INI = 'O:\HKCU.INI' ;this should be a network homeshare accessible from both the client and the TS
if ProductSuite("Terminal Server") and not ProductSuite("Single User Terminal Server")
$value = ReadProfileString($INI,'MailSettings','NewSignature')
$RC = WriteValue('HKCU\Software\Microsoft\Office\10.0\Common\MailSettings','NewSignature',$value)
Else
$value = ReadValue('HKCU\Software\Microsoft\Office\10.0\Common\MailSettings','NewSignature')
$RC = WriteProfileString($INI,'MailSettings','NewSignature',$value)
EndIf
Function ProductSuite ($Product)
Dim $Product
select
case $Product = "None" $x=0
case $Product = "Small Business" $x=1
case $Product = "Enterprise" $x=2
case $Product = "BackOffice" $x=4
case $Product = "CommunicationServer" $x=8
case $Product = "Terminal Server" $x=16
case $Product = "Small Business (Restricted)" $x=32
case $Product = "Embedded NT" $x=64
case $Product = "DataCenter" $x=128
case $Product = "Single User Terminal Server" $x=256
case $Product = "Home Edition" $x=512
case $Product = "Blade Server" $x=1024
case 1 $RC=MessageBox ("Invalid parameter used in function ProductSuite ($Product)",48)
endselect
$ProductSuite = $x & val(@ProductSuite)
Endfunction
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.