• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 131
  • Last Modified:

Adding xp remote in login script from nt server

I believe I  need to make a batch file, and put net use f: \\servername\sharename and at the share name I put the .reg file. I need a liitle help in putting this in the login script. I am sorry I am new to this, I have been working with Novell for the past 5 years. Below is a copy of a part of the login script, can you tell me how I would do this same thing and make it so that every user would get this reg change when they login to enable remote control. Thank you so much. also I could use help with the syntax of teh .reg file. thank you so much

; REM ** Enables DNS if $Enable9xDNS is set to 1 on Windows 9x
  Select
    Case (($OS = "WinNT4") OR ($OS = "Win2k"))
     ; REM ** This Setting only affects the Windows 9x Platform
     $Status = $abortstr
     Return
    Case (($OS = "Win95") OR ($OS = "Win98"))
     $EnableDNS = ReadValue("HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\VxD\MSTCP", "EnableDNS")
      If $EnableDNS <> "1"
     $Dummy = WriteLine (10, "Enabling DNS Setting on Workstation." + @CRLF)
     $Dummy = WriteValue ("HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\VxD\MSTCP", "EnableDNS", "1", "REG_SZ")
     $Dummy = WriteValue ("HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\VxD\MSTCP", "HostName", "@WkSta", "REG_SZ")
     $EnableDNS=1
     $Reboot = "DNS"
     $Dummy = WriteLine (10, "Updated DNS Enabled Settings." + @CRLF)
     $Dummy = WriteLine (10, "HostName set to: " + @WkSta + @CRLF)
     $Status = $updatestr
      Else
     $Dummy = WriteLine (10, "DNS is Enabled."  + @CRLF)
     $Status = $okstr
      EndIf
    Case 1
     $Dummy = WriteLine (10, "Operating System does not require DNS to be enabled." + @CRLF)
     $Status = $abortstr
     Return
  EndSelect
Return
0
eberhardt2329
Asked:
eberhardt2329
1 Solution
 
eberhardt2329Author Commented:
there was alos the starting of this question history. thank you so much to anyone that can help

http://www.experts-exchange.com/Operating_Systems/Windows_Server_2003/Q_21072219.html

0
 
jdeclueCommented:
Looks like no one wanted to touch this question... so... I will try...
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now