Logon scripts question

The short version of the guide is: connect your microsoft tools to nsdc-servername once you installed the AD account provider, and it will act as any regular AD environment.

When you install the AD account provider, you are asked for an IP in the same segment as your Nethserver green-interface. That is the IP you can connect to with mmc snap-ins.

You will have to ‘mix’ as Nethserver does not provide tools to administer the active directory, at all. Barring user creation, you need microsoft or compatible tools. The good thing is, they work like normal.

You can, but you’ll need to install it: yum install nano.

can I write regular windows scripts?
for example for net use:
net use a:\Network path /persistent: yes

Yes, that’s possible.

Thank you for the answer.
Now, how can I relate this logon script to a specific user, in a way that whenever the user logs own he/she will see the the drive letter ?

Thank you.

There’s a thread about this:

There’s also a windows file server page and I just recognized an incredible AD howto from @planet_jeroen, both may also cover this topic (in future)…

I made the steps in this howto and I’m not able to get to netlogon folder allthough I’m using an admin user.
Any ideas ?
Thank you.

Just paste the script in \\nsdc-servername\netlogon and it should work when it is entered in the user-profile.

Not working.

I just created a file logon.bat in my netlogon share, with the following content:
net use k: \servername\share

I added ‘logon.bat’ to my users profile as logon script, and have the expected share after logging out and back in. You probably have a typo somewhere if this doesnt work for you, or there is something else wrong. Without error logs it is hard to predict what is wrong.

“not working” doesn’t work for us either, meaning that we can’t help you if you don’t help us to understand…
please attach some logs or screenshots
thank you

1 Like

I’m able to get to the nsdc server by using its IP through the user pc
meaning, I log on as administrator to the user pc and use \ip and not \nsdc-server.
But this is where I stopped,

sorry I’m new to this.
Don’t know where are the logs.

\\ip\netlogon\ should work as well. You just place any script there, and reference it in the userprofile under the profile tab, as logon script, woithout the \\ip\netlogon part.

So if there is a script called abc.def in your netlogon share, you will only put abc.def in the logon script field of the user.

1 Like

This what I see and can’t get into netlogon and I don’t have the properties in your pic.
Unbenannt2

I tried it now and was able to connect via hostname instead of IP. The AD server which is a virtual container has it’s own name formed of nsdc-YOURNETHSERVERNAME. My NethServer is called server, so I have the AD container including the netlogonshare available with hostname nsdc-server.

grafik

1 Like

You should use \netbiosdomainname\administrator to logon to that share, and should then have access to it … you can find the logs here:

afbeelding

Not sure which one to look in tho :blush:

1 Like

how can I know my server name ?

First thing to know is that your NethServer is not the Samba AD server.
You installed your NethServer with some name, you can find that under Server Name in the server manager.
The server manager can be found at the IP of your server on port 980

https://ip:980

Your Samba AD container, will get the same name, with ‘nsdc-’ prepended. So if you named your server ‘myserver’ your AD container will be ‘nsdc-myserver’.

That name will only resolve when you use the same DNS server tho, so perhaps that isnt ready yet as you are installing, and that would explain why you need IP’s.

1 Like