#173151 - 2007-01-24 01:44 PM
Domain Logon script using KixForms.dll
|
Stoffel
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 (1171 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
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
|
|
|
|
#173191 - 2007-01-25 11:59 AM
Re: Domain Logon script using KixForms.dll
[Re: Sealeopard]
|
Stoffel
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
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
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:
[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
|
|
|
|
#196534 - 2009-10-30 11:31 AM
Re: Domain Logon script using KixForms.dll
[Re: Stoffel]
|
DiscoDan79
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
|
|
|
|
Moderator: Glenn Barnas, NTDOC, Arend_, Jochen, Radimus, Allen, ShaneEP, Ruud van Velsen, Mart
|
0 registered
and 429 anonymous users online.
|
|
|