Page 1 of 1 1
Topic Options
#197476 - 2010-01-20 10:51 PM Input windows registry
Zanolla Offline
Just in Town

Registered: 2010-01-19
Posts: 1
Loc: Brazil - São Paulo
Input windows registry

Hello, I need to help with a script to add an information in the registry in windows vista, but users do not have administrator profile for this reason the script does not work.

I tried the following codes.

Shell 'regedit /c "\\essencis.com.br\netlogon\reg\skype_not_file_transfer.reg"'

or

WriteValue("HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Skype\Phone","ListenHTTPPorts","0","REG_DWORD")
WriteValue("HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Skype\Phone","DisableFileTransfer","1","REG_DWORD")

Someone can help me with this.

regards

Paolo Zanolla

Top
#197479 - 2010-01-21 01:41 AM Re: Input windows registry [Re: Zanolla]
Allen Administrator Online   shocked
KiX Supporter
*****

Registered: 2003-04-19
Posts: 4562
Loc: USA
Search for Runnas. Notice the double n.
Top
#197485 - 2010-01-21 12:17 PM Re: Input windows registry [Re: Allen]
Mart Moderator Offline
KiX Supporter
*****

Registered: 2002-03-27
Posts: 4673
Loc: The Netherlands
You can also do this with a script started from an admin workstation.
The basic code would look like the code below. It would be best to check if the machine is online with for example the Ping() UDF from the UDF section of this board before trying to write to its registry.

Basic remote registry write script:
 Code:
WriteValue("\\computername\HKLM\SOFTWARE\Policies\Skype\Phone","ListenHTTPPorts","0","REG_DWORD")
WriteValue("\\computername\HKLM\SOFTWARE\Policies\Skype\Phone","DisableFileTransfer","1","REG_DWORD")
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.

Top
#197521 - 2010-01-25 03:42 AM Re: Input windows registry [Re: Mart]
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
Shouldn't this preferable be deployed via a custom policy? AD and policies have been out for so long, I'm surprised that registry hacking is still done in those cases.
_________________________
There are two types of vessels, submarines and targets.

Top
#197546 - 2010-01-27 12:02 PM Re: Input windows registry [Re: Sealeopard]
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11628
Loc: CA
Well if it's a one off then I don't use a GPO either. They are costly in logon times when you have a lot of separate policies. I'd rather try to group them into as few as possible myself.
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 601 anonymous users online.
Newest Members
M_Moore, BeeEm, min_seow, Audio, Hoschi
17883 Registered Users

Generated in 0.058 seconds in which 0.03 seconds were spent on a total of 13 queries. Zlib compression enabled.

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