Logon script help please

I need to add %logonserver%\netlogon\lsclient.exe myserver to my logon script for Lansweeper to be able to scan machines on my network.  
What do I put in the %logonserver% part and myserver part as I am a little confused on what to do.

I would greatly appreciate any help with this as I have not done scripts before other than a couple of net use ones.

Thanks
PurplePenguinAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Lee W, MVPTechnology and Business Process AdvisorCommented:
%logonserver% is an environment variable.  The line, presumably, without seeing your actual script and being unfamiliar with lansweeper you want to do, should exactly that:

%logonserver%\netlogon\lsclient.exe
0
PurplePenguinAuthor Commented:
Yes that is the line but according to Lansweeper I need to add myserver on the end.

With Lansweeper you have it on one machine with the client exe on there and then run a logon script from the DC in GPO to allow lsclient.exe access to run on other machines so we can sweep the machines for software, blah, blah, etc.............

I am assuming that I need to put the name on the server that the lansweeper program is on in the myserver bit but am not sure.
0
PurplePenguinAuthor Commented:
Oh and is it ok to add this line to an existing logon script (our sbs logon script). #
Thanks
0
Cloud Class® Course: Ruby Fundamentals

This course will introduce you to Ruby, as well as teach you about classes, methods, variables, data structures, loops, enumerable methods, and finishing touches.

Lee W, MVPTechnology and Business Process AdvisorCommented:
> Yes that is the line but according to Lansweeper I need to add
> myserver on the end.
Can you share any documentation on this?  

> With Lansweeper you have it on one machine with the client exe on there
Where is "there"?

> and then run a logon script from the DC in GPO to allow lsclient.exe access to
> run on other machines so we can sweep the machines for software, blah, blah,
> etc.............
Who said you have to run it from a GPO?

> I am assuming that I need to put the name on the server that the lansweeper
> program is on in the myserver bit but am not sure.
Really not sure what you're saying here... would be great to see some documentation.
0
PurplePenguinAuthor Commented:
Sorry here is the documentation - I am sounding vague, cos I am vague when it comes scripts so please bear with me :-)

We have Lansweeper on a machine called INEXNETMON and I want to add a line to the logon script on the DC in AD that can find the client.exe specified in the documentation.

It's probably best I let you look at the documentation and not say anything until you have, so not to sound like a complete prat!!! :o)
documentation.pdf
0
AmazingTechCommented:
Do you already have an AD logon script?

Go to a user in Active Directory and check out the Profile - Logon Script.
0
Steve KnightIT ConsultancyCommented:
Well it would seem you simply need the obvious, "myserver" is the name of your server.  %logonserver% is a 'shortcut' environment variable that returns the name of the domain controller being used when there are multiple.  If there is only one (quite possible as you mention SBS) then you could again use the server name.

i.e. it is just suggesting to run the exe from that location:

\\%logonserver%\netlogon\lsclient.exe INEXNETMON
or
\\INEXNETMON\netlogon\lsclient.exe INEXNETMON

Steve
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
PurplePenguinAuthor Commented:
Thank you Steve, that is exactly what I wanted. You can have the most points. I know it seems obvious to you but I do not really know scripts and did not want to break anything. Anyway thank you again.
0
Steve KnightIT ConsultancyCommented:
No problem, there are better ways of getting Lansweeer to run but I presume you just have the free version which I think is limited to working like this.  Another way MAY be though if you wished to run them from one machine using the tool "psexec" which you can use to remotely run a process on a different machine.   If you end up wanting it do it this way ask a related question using the link at the bottom of the Q and someone will pick i tup.

Steve
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows Batch

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.