Local login script

D

dj

Hi guys,

I need to set up a lot of notebooks with a local script as they do not join
a domain. I want to do this automaticly like in a vbs script. In a normal
situation when I use a PC connected to the domain I use:

Set objUser = GetObject _
("LDAP://cn=myerken,ou=management,dc=fabrikam,dc=com")
objUser.Put "scriptPath", "logon.vbs"

Is there any way to change this so it points to the local computer name?

Thanks
 
P

Pegasus \(MVP\)

The simplest way to execute a logon script is to place the script
into "%AllUsersProfile%\Start Menu\Programs\Startup".
 
D

dj

Thanks Pegasus thats a gold solution.


Pegasus (MVP) said:
The simplest way to execute a logon script is to place the script
into "%AllUsersProfile%\Start Menu\Programs\Startup".
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top