MSFN Forum: Unattended Remote User Login Script - MSFN Forum

Jump to content



Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Unattended Remote User Login Script Script for Workstation login from server Rate Topic: -----

#1 User is offline   dmbarnett 

  • Group: Members
  • Posts: 2
  • Joined: 10-February 05

  Posted 19 February 2005 - 11:04 AM

I have a network with W2K servers and workstations. I need to create a script that will allow a process running on a server (or other workstation) to perform an unattended login of a user on a workstation that is at the Alt-Ctrl-Del state. Does anyone know of such a script or have any ideas on the best way to create one?

Thanks for the help.

DB


#2 User is offline   Marsden 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 446
  • Joined: 17-May 04

Posted 20 February 2005 - 07:46 PM

Not with the Ctrl-Alt-Del...

#3 User is offline   Dahi 

  • Member
  • PipPip
  • Group: Members
  • Posts: 146
  • Joined: 25-November 03

Posted 20 February 2005 - 08:09 PM

The server could set Autologon in the workstation registry then remotely reboot it with shutdown.
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon]
"DefaultUserName"="User name"
"DefaultPassword"="12345678"
"DefaultDomainName"=""
"AutoAdminLogon"="1"
"AutoLogonCount"=1

By the way, why logon? You can run processes on remote workstations as any user without having to login.

#4 User is offline   dmbarnett 

  • Group: Members
  • Posts: 2
  • Joined: 10-February 05

Posted 20 February 2005 - 10:54 PM

I wouldn't need to logon except in w2k the defrag is no longer executable either as an AT command or any otherway that I can figure out. That is the only program that I can't get to work.

Thanks

#5 User is offline   Marsden 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 446
  • Joined: 17-May 04

Posted 20 February 2005 - 10:56 PM

Use Diskeeper "Set It and Forget It" and then no need to logon.

#6 User is offline   Marsden 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 446
  • Joined: 17-May 04

Posted 21 February 2005 - 12:46 AM

Const ForReading = 1

strInputFile = "C:\ComputerList.txt"

Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objTextStream = objFSO.OpenTextFile(strInputFile, ForReading)
arrComputers = Split(objTextStream.ReadAll, vbCrLf)
objTextStream.Close

Set StdOut = WScript.StdOut

On Error Resume Next
For Each strComputer In arrComputers

      Set objWMIService = GetObject("winmgmts:" & _
          "{impersonationLevel=Impersonate}!\\" _
               & strComputer & "\root\cimv2")
      If Err.Number Then
         StdOut.WriteLine "ERROR:   " & strComputer & _
               " [WMI connection failed]"
         Err.Clear
      Else
         WScript.Echo "Computer " & strComputer & vbNewLine
         Set colPnPDevices = objWMIService.ExecQuery _
             ("Select * from Win32_PnPEntity",,48)
         For Each objPnP in colPnPDevices
             Wscript.Echo "Name: " & objPnP.Name
         Next
      End If
Next


Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy