Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Script file for Domain users

Status
Not open for further replies.

jimyuk

Technical User
Sep 30, 2003
9
GB
Please can someone tell me how to make a script file so domian users just before they logon onto the domain will be presented with a message/dialog box with some company information

Plz help
 
This solution will work for W2K and XP using AD

this simple script will display the info
' begin script
Code:
Dim strCompanyInfo
  strCompanyInfo = "  Your company here"  + chr(13)
  strCompanyInfo = strCompanyInfo + "    address here"  + chr(13)
  strCompanyInfo = strCompanyInfo + " contwact info here"  + chr(13)
  strCompanyInfo = strCompanyInfo + "put disclaimer here"  + chr(13)
  msgbox(strCompanyInfo)
' end script

The slightly more difficult part of this is Using GPedit on the local machine or having a network admin set the policy via the OU (Organizational Unit) in AD (Active Directory) to set the Startup/logon script to run.

If you want it to run when the PC boots up (before logon) copy the file to
(Windir)\system32\GroupPolicy\Machine\Scripts\Startup
and then set the following policy
Computer Configuration - Windows Settings - Scripts (Startup/Shutdown) - Startup


If you want it to run after the user logs on copy the file to
(Windir)\system32\GroupPolicy\User\Scripts\Logon
and then set the following policy
User Configuration - Windows Settings - Scripts (Logon/Logoff) - Logon

Good Luck
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top