#136812 - 2005-03-30 10:10 PM
Stupid question
|
Clayton
Fresh Scripter
Registered: 2002-08-19
Posts: 29
Loc: Tampa, FL
|
Sorry I know this is a stupid/silly question but I'm having an elderly moment and can't remember how/if this can be done.
I want to run different scripts for differnt OU's. I'm using a udf in the beginning of my script.
If InContainer('ou=OFF,dc=domain,dc=com','User')[0] can I now use "call %logonserver%\netlogon\scriptname ??
or will a Call command not work?
|
|
Top
|
|
|
|
#136814 - 2005-03-30 10:54 PM
Re: Stupid question
|
Clayton
Fresh Scripter
Registered: 2002-08-19
Posts: 29
Loc: Tampa, FL
|
Code:
Break on
Call "\\tpaprime\netlogon\udf.kix"
If InContainer('OU=TPA,dc=mfmlegal,dc=com','User')[0] Call "\\tpaprime\netlogon\tpalogin.kix" EndIf
If InContainer('ou=CLW,dc=mfmlegal,dc=com','User')[0] Call "\\clwprime\netlogon\clwlogin.kix" EndIf
I thought the call command would work but it's being hard headed for me....
There is a tab in front of the call commands. The formatting isn't holding after I post.
[edit] lonkero added the missing code-tags
Edited by Lonkero (2005-03-30 11:01 PM)
|
|
Top
|
|
|
|
#136816 - 2005-03-30 11:21 PM
Re: Stupid question
|
Clayton
Fresh Scripter
Registered: 2002-08-19
Posts: 29
Loc: Tampa, FL
|
OK the tpalogin or clwlogin does not run.. They do however run if I run them via GP or call them from a bat file.
What did you change in the code?
|
|
Top
|
|
|
|
#136818 - 2005-03-30 11:39 PM
Re: Stupid question
|
Clayton
Fresh Scripter
Registered: 2002-08-19
Posts: 29
Loc: Tampa, FL
|
Thanks I'll try that. sorry about the code posting...
|
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
1 registered
(StuTheCoder)
and 798 anonymous users online.
|
|
|