Hi all,
I just need the script below to only run if users are in a particular group so something with an if> then > else End
Option Explicit
On error resume next
Dim WshShell
Dim Onet
Set oNet = WScript.CreateObject("WScript.Network")
Set WshShell = WScript.CreateObject("WScript.Shell")
'wshShell.popup ("Detected Outlook XP")
WshShell.RegDelete ("HKCU\Software\Microsoft\Office\10.0\Outlook\Setup\First-Run")
WshShell.RegWrite
"HKCU\Software\Microsoft\Office\10.0\Outlook\Setup\ImportPRF","\\----\----\%username%\lbbd.PRF","REG_SZ"
Wshshell.run ("\\---\---\outlook\lbbd.PRF")
wscript.sleep 10000
I just need the script below to only run if users are in a particular group so something with an if> then > else End
Option Explicit
On error resume next
Dim WshShell
Dim Onet
Set oNet = WScript.CreateObject("WScript.Network")
Set WshShell = WScript.CreateObject("WScript.Shell")
'wshShell.popup ("Detected Outlook XP")
WshShell.RegDelete ("HKCU\Software\Microsoft\Office\10.0\Outlook\Setup\First-Run")
WshShell.RegWrite
"HKCU\Software\Microsoft\Office\10.0\Outlook\Setup\ImportPRF","\\----\----\%username%\lbbd.PRF","REG_SZ"
Wshshell.run ("\\---\---\outlook\lbbd.PRF")
wscript.sleep 10000