Announcement

Collapse
No announcement yet.

how to refer to the netlogon path

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • how to refer to the netlogon path

    How doI refer to the netlogon path without including the domain name/.
    IE closest server, or the server that The machine used to logon. Thnaks
    ________
    Live sex webshows
    Last edited by meterman; 16th August 2011, 12:18.

  • #2
    Re: how to refer to the netlogon path

    I would imagine it would be this

    %LOGONSERVER%\netlogon

    Comment


    • #3
      Re: how to refer to the netlogon path

      is %LOGONSERVER% then a global variable, or do I have to define it to use it?
      This does not seem to be working. Do I have my quotations wrong or somthing? I cannot get the %systemroot% variable or the %logonserver% variable to work. I must be missing somthing major



      Set WshShell = CreateObject("WScript.Shell")
      set objFSO = CreateObject("Scripting.FileSystemObject")
      strDesktop = WshShell.SpecialFolders("Desktop")


      IF Not objFSO.FileExists(strDesktop & "\digitalqrc.lnk") THEN
      set oShellLink = WshShell.CreateShortcut(strDesktop & "\digitalqrc.lnk")
      oShellLink.TargetPath = "http://www.digitalqrc.com"
      oShellLink.WindowStyle = 1
      OBJfso.CopyFile "%LOGONSERVER%\netlogon\dqrc.ico" , "%systemroot%\DQRC.ico" ,TRUE
      oShellLink.IconLocation = "%systemroot%\DQRC.ico
      oShellLink.Description = "digitalqrc"
      oShellLink.Save
      set oShellLink = NOTHING

      END IF
      Set WshShell = NOTHING
      Set objFSO = NOTHING
      ________
      Buy Vapir Oxygen
      Last edited by meterman; 16th August 2011, 12:18.

      Comment


      • #4
        Re: how to refer to the netlogon path

        %LOGONSERVER% is a variable that will return the logon server that is used.

        Have a look at this

        http://support.microsoft.com/?kbid=183495

        Comment


        • #5
          Re: how to refer to the netlogon path

          sounds to be the same as:
          http://forums.petri.com/showthread.php?t=6810
          Marcel
          Technical Consultant
          Netherlands
          http://www.phetios.com
          http://blog.nessus.nl

          MCITP(EA, SA), MCSA/E 2003:Security, CCNA, SNAF, DCUCI, CCSA/E/E+ (R60), VCP4/5, NCDA, NCIE - SAN, NCIE - BR, EMCPE
          "No matter how secure, there is always the human factor."

          "Enjoy life today, tomorrow may never come."
          "If you're going through hell, keep going. ~Winston Churchill"

          Comment

          Working...
          X