Werbung: SecurityConsole.de verwaltet Ihre Computer mit Security Essentails aus der Cloud!
30 Tage kostenfrei testen und 20% Rabatt für Ihre Bestellung mit Promocode: WBF2685582
(Promocode gültig bis 31.12.2011)

Group:  English: Windows Server » microsoft.public.windows.server.scripting
Thread: script to verify include domain if one does not exidt

HTVi
TV Discussion Newsgroups

script to verify include domain if one does not exidt
7736 <7736[ at ]webmail.co.za> 5/10/2007 12:04:35 PM
i every one.

i would like some help please..
there is a logon script that we have that installs a
certain script at logon for clients for SMS. whar we
ultimately would like to do is apply the script but also
check if a certain domain does exist.. if it does not
exist then use one that is specified.

i think this would be pretty easy for some of u guys but
i am missing something out that does not work.

Here is the script


Option Explicit
Dim objUser, objADSysInfo,test
Set objADSysInfo = CreateObject("ADSystemInfo")
Set objUser = GetObject("LDAP://" & objADSysInfo.UserName)
Dim WshShell
Set WshShell=WScript.CreateObject("WScript.Shell")
WshShell.RegWrite "HKCU\Software\Microsoft\Communicator\UserMicrosoft
RTC Instant Messaging", objUser.Mail, "REG_SZ"
WshShell.RegWrite "HKCU\Software\Microsoft\Communicator
\AutoRunWhenLogonToWindows", "1", "REG_DWORD"
WshShell.RegWrite "HKCU\Software\Microsoft\Communicator
\FirstTimeUser", "0", "REG_DWORD"
WshShell.RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion\Run
\Communicator", """C:\Program Files\Microsoft Office Communicator
\Communicator.exe""", "REG_SZ"
WshShell.RegWrite "HKCU\Software\Microsoft\Communicator
\AddToFirewallExceptionList", 0, "REG_DWORD"
WshShell.RegWrite "HKCU\Software\Microsoft\Communicator\RTCState",
01000000, "REG_BINARY"
WshShell.RegWrite "HKCU\Software\Microsoft\Communicator
\ServerAddress", "Domain nameof domain", "REG_SZ"
WshShell.RegWrite "HKCU\Software\Microsoft\Communicator\ControlPhone",
"1", "REG_DWORD"
WshShell.RegWrite "HKCU\Software\Microsoft\Communicator
\DefaultCallOutDevice", "1", "REG_DWORD"
WshShell.RegWrite "HKCU\Software\Microsoft\Communicator\ExtendedView",
1, "REG_DWORD"

Home | Search | Terms | Imprint Contact
Newsgroups Reader - provided by WiredBox.Net
Suche nach Orten, Städten, Postleitzahlen, Vorwahlen, Kfz-Kennzeichen