Announcement

Collapse
No announcement yet.

Scripting on Local Machine

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

  • Scripting on Local Machine

    I have several (50+) users that need to log into the same pc (shared PC). Rather than have to login as each user individually, I would like to be able to have a script run when they log into the PC to map network drives and connect to a network printer. They all have domain logins, but I can't apply a script to GP in AD because it will affect them at their regular desk PC. Can I somehow have a script sitting on the shared PC that will run when they login?

  • #2
    Re: Scripting on Local Machine

    How about copying the script into each user's startup folder? Just make sure the script checks whether the resources have already been mapped.

    -vP

    Comment


    • #3
      Re: Scripting on Local Machine

      Apply a script to the GPO linked to the OU where the computer account is and enable Loopback Policy Processing.

      Comment


      • #4
        Re: Scripting on Local Machine

        Maybe you could add computername comparison to the existing logon script?
        Code:
        Set objNetwork = WScript.CreateObject("WScript.Network")
        strComputer = objNetwork.ComputerName
        
        If UCase(strComputer) = UCase("sharedPC") Then
           sDrive = "z:" : sPath = "\\server\share"
           objNetwork.MapNetworkDrive sDrive, sPath
           strUNCPrinter = "\\server\HP LaserJet"
           objNetwork.AddWindowsPrinterConnection strUNCPrinter
           wscript.quit
        Else
         ' the code of the original logon script comes here...
        
        End If
        Wscript.quit
        \Rems

        This posting is provided "AS IS" with no warranties, and confers no rights.

        __________________

        ** Remember to give credit where credit's due **
        and leave Reputation Points for meaningful posts

        Comment

        Working...
        X