Logon script question

Discussion in 'OT Technology' started by KungFool7, Jul 5, 2007.

  1. KungFool7

    KungFool7 keep driving—it's getting earlier

    Joined:
    Jun 22, 2005
    Messages:
    1,122
    Likes Received:
    0
    So, i was poking around on our server and noticed that my logon script is a good bit different than the other 2 guys here. There's some extra stuff in here besides mapping the network drives and I was curious what they are...

    @echo off
    net use /delete /yes *
    rem net stop "Windows Time"
    rem net time /setsntp:xxx.xxx.xxx.xxx
    rem net start "Windows Time"
    net time /set \\server /y
    net use i: /home
    net use M: \\server\DATA /persistent:yes
    net use x: \\server\APPS /persistent:yes
    net use q: \\server\qb /persistent:yes
    REGEDIT /S m:\cached.reg
    exit


    Mainly i'm curious in the final entry just before exit. is the setsntp part assigning me a static ip?
     
  2. P07r0457

    P07r0457 New Member

    Joined:
    Sep 20, 2004
    Messages:
    28,491
    Likes Received:
    0
    Location:
    Southern Oregon
    setsntp is setting your system clock.
     
  3. KungFool7

    KungFool7 keep driving—it's getting earlier

    Joined:
    Jun 22, 2005
    Messages:
    1,122
    Likes Received:
    0
    so it's just matching my local time with the server that has the IP address i blanked out?

    how about that regedit command? i know the /s portion of it hides whatever is going on...i dont get the m:\cached.reg part though.

    some registry file on the server that modifies my local registry?

    edit: below is the cached.reg file
     
  4. KungFool7

    KungFool7 keep driving—it's getting earlier

    Joined:
    Jun 22, 2005
    Messages:
    1,122
    Likes Received:
    0
    Windows Registry Editor Version 5.00

    [HKEY_CURRENT_USER\Software\Policies\Microsoft\office\11.0\outlook\cached mode]
    "upload"=dword:00000001
    "download"=dword:00000001
    "maximum"=dword:00000001
     
  5. P07r0457

    P07r0457 New Member

    Joined:
    Sep 20, 2004
    Messages:
    28,491
    Likes Received:
    0
    Location:
    Southern Oregon
    basically it's getting the time off that ip addr and then setting your system time to match it.

    the regedit is just importing a .reg file from the M:\ network drive. It's setting cache settings for outlook. I assume you use an exchange server
     
  6. KungFool7

    KungFool7 keep driving—it's getting earlier

    Joined:
    Jun 22, 2005
    Messages:
    1,122
    Likes Received:
    0
    right right.

    MMk then, thank ya. Just making sure they're not trying to find the nudie pictures of my girlfriend like they keep saying they are...(the nudies that are no longer on this computer) ;)

    sneaky computer people.

    thanks jolly
     

Share This Page