Page 1 of 1 1
Topic Options
#173151 - 2007-01-24 01:44 PM Domain Logon script using KixForms.dll
Stoffel Offline
Fresh Scripter

Registered: 2005-08-01
Posts: 17
Loc: Ede, The Netherlands
Here is a Domain logon script using the kixform.dll.

If a workstation does not have Kixforms.dll implemented the script will run in normal text mode.

A readme.txt file has been included.

cheers.


Attachments
21-Logon.zip (1131 downloads)
Description:




Edited by Stoffel (2007-01-24 01:45 PM)

Top
#173161 - 2007-01-24 04:16 PM Re: Domain Logon script using KixForms.dll [Re: Stoffel]
Phoenix1987 Offline
Fresh Scripter

Registered: 2007-01-02
Posts: 49
Loc: Rotterdam, Netherlands
looks very good.

How can i add more dots so i can specify wat hes doing ?
_________________________
A mistake is Human, But to make it a real mess you need a computer.

Top
#173182 - 2007-01-25 05:11 AM Re: Domain Logon script using KixForms.dll [Re: Phoenix1987]
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11163
Loc: Boston, MA, USA
Why not use a GPO to automatically distribute the KiXforms DLL to all computers?
_________________________
There are two types of vessels, submarines and targets.

Top
#173191 - 2007-01-25 11:59 AM Re: Domain Logon script using KixForms.dll [Re: Sealeopard]
Stoffel Offline
Fresh Scripter

Registered: 2005-08-01
Posts: 17
Loc: Ede, The Netherlands
Indeed, GPO (AD-Deployment - Assigned - Install at logon) is the easiest way to deploy the Kixforms.msi to your workstations.
Top
#173193 - 2007-01-25 12:09 PM Re: Domain Logon script using KixForms.dll [Re: Phoenix1987]
Stoffel Offline
Fresh Scripter

Registered: 2005-08-01
Posts: 17
Loc: Ede, The Netherlands
Thanx.

If you want to add "dots" (RadioButton) you must alter the Form that is being used.
This can be done in this function "DrawFormMain".
Because of the limited space it is probably needed to extend the window.

It was easier to just create some main topics (Map network.., Map printers..) and a general topic.
You can determine what the script does here.
This function determines what it does.

; +-[Name]-------------------+
; | Function DefaultActions |
; +-[Comment]----------------+---------------------------+
; | Controls the default actions performed by the script |
; +------------------------------------------------------+
Function DefaultActions()
If $ScriptMode = 1
$RBMain_Actions_Standard.Checked = 1
EndIf
; -- Call DelTemp Function --
DelTemp()

;You can add your own functions here

If $ScriptMode = 1
$RBMain_Actions_Standard.Enabled = 0
EndIf
EndFunction

This is easier to do.
You can still relay a line to the status bar of the window about what you are doing.

Ofcourse it is your call.

Everything is possible.

Top
#175934 - 2007-05-03 04:20 PM Re: Domain Logon script using KixForms.dll [Re: Stoffel]
casperinmd Offline
Fresh Scripter

Registered: 2005-03-03
Posts: 9
I have been working with your excellent script for a couple days but I can't seem to get other groups to function in the shares.ini file.

I have this in my shares.ini file:
 Code:
[Domain Users]
H="\\ServerA\Home\home_dir\%username%"
G="\\ServerB\Shared"
I="\\ServerC\Apps"
Z="\\ServerD\Utility"



; ***********************
; * Department Mappings *
; ***********************
[KixShare]
P="\\ServerA\GWagents"
Q="\\domain\netlogon"



The Domain Users is fine. However, if I understand the syntax, the section in [] is the group name or userid, so I created a KixShare group and added myself to it. However, it will never run those mappings. Actually, if I rename the Domain Users section to KixShare, it fails as well. Not sure why it isn't reading membership on my groups.

I can't seem to echo to the log file the $Groups array during the Mapping function as it is not a global function (i think that is why). Any way to troubleshoot where i am getting hung up?

Thanks,
jeff

Top
#175935 - 2007-05-03 05:16 PM Re: Domain Logon script using KixForms.dll [Re: casperinmd]
Mart Moderator Offline
KiX Supporter
*****

Registered: 2002-03-27
Posts: 4667
Loc: The Netherlands
If you could start a new thread with the contents of the ini file and the script you are using to map the drives we would be able to help you better.

Did you clear the group cache with the /f switch? See page 12 in the 4.53 manual how to use the /f switch and what is does.
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.

Top
#196534 - 2009-10-30 11:31 AM Re: Domain Logon script using KixForms.dll [Re: Stoffel]
DiscoDan79 Offline
Just in Town

Registered: 2009-10-30
Posts: 1
Loc: Johannesburg, South Africa
howzit, really cool script and works well came across a small issue with the printer addition and found it was an error within the logon.kix

On Line 326 and 328 i needed to add name to printer..

Line 326 from:

Progress(3,"Printer Added: \\$Server\$Printer")

Line 326 to:

Progress(3,"Printer Added: \\$Server\$PrinterName")

Line 328 from:

If SetDefaultPrinter("\\$Server\$Printer") = 0

Line 328 to:

If SetDefaultPrinter("\\$Server\$PrinterName") = 0

other than that splendid script that i will definately use..

Top
Page 1 of 1 1


Moderator:  Glenn Barnas, NTDOC, Arend_, Jochen, Radimus, Allen, ShaneEP, Ruud van Velsen, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 294 anonymous users online.
Newest Members
Praveer, Ollero, rayyo, Foxlicht, DonChild
17742 Registered Users

Generated in 0.041 seconds in which 0.019 seconds were spent on a total of 14 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org