Solved

want to add regentries to a Kix login script

Posted on 2006-10-19
13
1,255 Views
Last Modified: 2008-01-09
Good Morning,
  I am not the best at scripting but I need to add some Reg Entries to a Kix Login Script so that it changes existing users.  I am not sure how to get it to write the values but here is what I need to do.

("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run") "ctfmon.exe"=-
("HKEY_CURRENT_USER\Software\Microsoft\CTF") "Disable Thread Input Manager"=dword:00000001
("HKEY_CURRENT_USER\Software\Microsoft\CTF") "ShowDeskBand"=dword:00000000


Thanks
Trav
0
Comment
Question by:tolsonkra
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 7
  • 5
13 Comments
 
LVL 14

Expert Comment

by:inbarasan
ID: 17765236
Dear tolsonkra,
> egentries to a Kix login script
$loc="Key Path like this "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run"
$=writevalue($loc,"ScreenSaverIsSecure","1","REG_SZ")
$=writevalue($loc,"ScreenSaveActive","1","REG_SZ")
$=writevalue($loc,"ScreenSaveTimeOut","300","REG_SZ")

This is the way you need to do on the kix. With this model you can check it


Cheers!
Inba
0
 
LVL 26

Expert Comment

by:Pber
ID: 17765264
Try this:

$key = "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run"
$rc = WRITEVALUE($key,"ctfmon.exe","-","REG_SZ")

$key = "HKEY_CURRENT_USER\Software\Microsoft\CTF"
$rc = WRITEVALUE($key,"Disable Thread Input Manager","00000001","REG_DWORD")

$key = "HKEY_CURRENT_USER\Software\Microsoft\CTF"
$rc = WRITEVALUE($key,"ShowDeskBand","00000000","REG_DWORD")
0
 
LVL 3

Author Comment

by:tolsonkra
ID: 17765326
Sorry I don't want to screw this up so would this be the way to write it up exactly Pber?  This is to modify profiles in Terminal Services and Kix?

I do have 1 reg entry in the script but I didn't write it (but is needed)  I am just leary on the whole registry thing.

$reg = WRITEVALUE ("HKEY_LOCAL_MACHINE\Software\Microsoft\MSSQLServer\Client\SuperSocketNetlib\LastConnect", "kra-fs1\cpas", "-33423352:np:\\KRA-FS1\pipe\MSSQL$CPAS\sql\query", "REG_SZ")


0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 26

Expert Comment

by:Pber
ID: 17765352
This works fine for me.  

The problem might be with security of the user logging on.  The user must be an administrator to have write access to the key provided.

0
 
LVL 3

Author Comment

by:tolsonkra
ID: 17765370
I also caught an error in my post.

("HKEY_CURRENT_USER\Software\Microsoft\CTF") "ShowDeskBand"=dword:00000000

should be

("HKEY_CURRENT_USER\Software\Microsoft\CTF\MSUTB") "ShowDeskBand"=dword:00000000

0
 
LVL 26

Expert Comment

by:Pber
ID: 17765405
Simple change:

$key = "HKEY_CURRENT_USER\Software\Microsoft\CTF\MSUTB"
$rc = WRITEVALUE($key,"ShowDeskBand","00000000","REG_DWORD")
0
 
LVL 3

Author Comment

by:tolsonkra
ID: 17765426
Is there a way to do it if they are not an administrator?
0
 
LVL 26

Expert Comment

by:Pber
ID: 17765458
The keys with HKEY_CURRENT_USER will be no issue.

On the Citrix server you load regedit and navigate to the key:
("HKEY_LOCAL_MACHINE\Software\Microsoft\MSSQLServer\Client\SuperSocketNetlib\LastConnect

Then right click it and select security.  Add the user or group that needs to change this key and grant them write permission.

0
 
LVL 26

Expert Comment

by:Pber
ID: 17765499
I guess there is no Write option, you would have to give them Full Control.

Be careful doing this.  Modifying permissions in the registry is not really recommended.  
0
 
LVL 26

Expert Comment

by:Pber
ID: 17765510
Woops, that's right click and Permissions.
(:
0
 
LVL 3

Author Comment

by:tolsonkra
ID: 17765537
I already have the key working.  I just wasn't sure on how to get the new ones to work.  Thanks.

("HKEY_LOCAL_MACHINE\Software\Microsoft\MSSQLServer\Client\SuperSocketNetlib\LastConnect
0
 
LVL 26

Accepted Solution

by:
Pber earned 500 total points
ID: 17765567
Not a problem, glad to help.
0
 
LVL 3

Author Comment

by:tolsonkra
ID: 17774424
Pber all went smooth thanks.
0

Featured Post

NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Server Login Issue 4 65
Inserting a column in a table that creates an ID and row number 4 70
MS Endpoint Protection 2 76
HP Printer on Windows 2003 Terminal Server 4 65
Restoring deleted objects in Active Directory has been a standard feature in Active Directory for many years, yet some admins may not know what is available.
While rebooting windows server 2003 server , it's showing "active directory rebuilding indices please wait" at startup. It took a little while for this process to complete and once we logged on not all the services were started so another reboot is …
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decade…

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question