Page 3 of 3 <123
Topic Options
#134541 - 2005-03-03 06:24 PM Re: @wksta
Faithfulman Offline
Getting the hang of it

Registered: 2005-02-22
Posts: 68
Les when you get a chance could you explain your example. I prefer not to use an executable. I would just like to be able to run a simple kix script.

Thanks

Top
#134542 - 2005-03-03 08:42 PM Re: @wksta
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Maybe saomething like this untested Code:
$RC = WriteValue("HKCU\Software\Microsoft\Windows\CurrentVersion\RunOnce","KiXScript","\\server\share\wkix32.exe \\server\share\script.kix","REG_SZ")

_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#134543 - 2005-03-03 09:23 PM Re: @wksta
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
My buddy here (named Steve) just tried querying %CLIENTNAME% in an async login script, logging into terminal services, and was able to see %CLIENTNAME% resolve ok - fyi !
Top
#134544 - 2005-03-03 09:32 PM Re: @wksta
Faithfulman Offline
Getting the hang of it

Registered: 2005-02-22
Posts: 68
Can we change the script from SYNC to ASYNC??

Les, I tried your example ... and it works but you have to login once and then log off ... then log on again.

Can I just make it so it works the first time and then from there on??
Thanks,

Faithful

Top
#134545 - 2005-03-03 09:45 PM Re: @wksta
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
My buddy here just tried it using SYNC, and it still worked great - he's running Windows 2003 Terminal Services btw - fwiw idk.
Top
#134546 - 2005-03-03 10:09 PM Re: @wksta
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
Steve's script was just simply:

echo %CLIENTNAME%
pause

Top
#134547 - 2005-03-03 11:37 PM Re: @wksta
Faithfulman Offline
Getting the hang of it

Registered: 2005-02-22
Posts: 68
Well that isn't working for whatever reason Shawn.

Anyway, I just found out I have another Delima ....
We are Using NFUSE ... does anyone here use this program?
So, this kix script instead of showing the clientname...
(which it does cause we are telling it to run as a seperate script in the Registry RunOnce)
But In NFUSE the CLIENTNAME variable is changed to

DOMAIN\username

OY!!!

Anyone worked around NFUSE before?

(BTW - ours our running Win2K ... and logging in through Citrix)

Top
#134548 - 2005-03-04 12:21 AM Re: @wksta
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11623
Loc: CA
Are they only being offered the application, or are they offered the full desktop.

Top
#134549 - 2005-03-04 12:33 AM Re: @wksta
Allen Administrator Online   shocked
KiX Supporter
*****

Registered: 2003-04-19
Posts: 4545
Loc: USA
To answer your lastest question... this may help... Source
Quote:


For NFUSE remove the open C:\Program Files\Citrix\NFuse\template.ica in notepad.

Find the line
[WFClient]
Version=2
ClientName="Userlogin (something like that)"

and change to

[WFClient]
Version=2
ClientName=

Then computer name will be used instead.






And here is something that may apply to you as well: Source
Quote:


Issue

After entering a value for the client name parameter inside an ICA file that is created manually, generated by NFuse, or with the Citrix Management Console, the value is not read when the session is subsequently launched in an embedded HTML or NFuse Web page.

The value, however, is read when a session is launched as a separate window.

Example:

[WFClient]
Version=2
TcpBrowserAddress=x.x.x.x
ClientName=yourclientname

Resolution

This behavior is by design.







Top
#134550 - 2005-03-04 01:01 AM Re: @wksta
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Quote:

Les, I tried your example ... and it works but you have to login once and then log off ... then log on again.

Can I just make it so it works the first time and then from there on??



You could hand-job it into HKLM\...\Run instead of scripting it into HKCU\...\RunOnce.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#134551 - 2005-08-31 12:24 AM Re: @wksta
Faithfulman Offline
Getting the hang of it

Registered: 2005-02-22
Posts: 68
Hi all,

I have taken this login script out of the login policy but apparently
the script still shows up in the registry and hasn't left. Any idea as
to why it doesn't go away?

Top
#134552 - 2005-08-31 05:30 PM Re: @wksta
StarwarsKid Offline
Seasoned Scripter
*****

Registered: 2005-06-15
Posts: 506
Loc: Oregon, USA
Is the computer name stored in the registry somewhere in Win9x? I know in XP you have a few references, one of which being the distinguished name, which could be stripped down to the simple computer name.

Here's another example...
Quote:

[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\ComputerName\ActiveComputerName]
"ComputerName"="PROMETHEUS"




????

Top
Page 3 of 3 <123


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

Who's Online
1 registered (Allen) and 382 anonymous users online.
Newest Members
gespanntleuchten, DaveatAdvanced, Paulo_Alves, UsTaaa, xxJJxx
17864 Registered Users

Generated in 0.062 seconds in which 0.025 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