Page 1 of 1 1
Topic Options
#56669 - 2001-06-23 07:41 AM DNS Updates on Worksations
Anonymous
Unregistered


Hi Guys:

I have some machine with NT and Win2k.While i am modifying DNS Entries by kix logon Script they are work once they have admin rights.Any one has any idea how to modify DNS entries on all desktops without admin permissions?

Top
#56670 - 2001-06-23 08:42 AM Re: DNS Updates on Worksations
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
Look into the following info using SU..
http://kix.isorg.net/other_scripts/su/

HTH,

- Kent

------------------
Moderator/Admin
Get/Post Scripts
http://www.win-scripts.com

_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
#56671 - 2001-06-24 06:43 PM Re: DNS Updates on Worksations
Anonymous
Unregistered


You could use config.pol using a custom .adm template.
Top
#56672 - 2001-06-26 11:45 PM Re: DNS Updates on Worksations
masken Offline
MM club member
*****

Registered: 2000-11-27
Posts: 1222
Loc: Gothenburg, Sweden
Aren't you using DCHP for your clients? If you do, my tip would be to set the DNS entries (global if you've got subnet's etc) in the DHCP manager instead of scriptning (also good for hardware that is DHCP compatible, printerservers etc etc)
_________________________
The tart is out there

Top
#56673 - 2001-06-27 10:41 PM Re: DNS Updates on Worksations
Anonymous
Unregistered


Hello Everyone,

I hope I can get some help here. I'm running W2K Svr, with 50 W2k Pro clients.

I have a logon script with Kix32 (v3.63) which is running on the NETLOGON folder and specified on each user account under the "Profile" tab like this "Logon Script: kix32 \\fla-server-1\netlogon\script\scriptname.kix".

I have placed the path for the location under Group Policy for the DC under "Scripts(Logon/Logoff)>Logon>Script Name: \\fla-server-1\NETLOGON\script\scriptname.kix and Script Parameters is empty.

The script reads like this:

=======================================
CLS


;Setup User's Personal Drive
if exist ("\\fla-server-1\users\" + @userid)
USE H: "\\fla-server-1\users\%username%"
USE S: "\\fla-server-1\shared"
USE P: "\\fla-server-1\apps"
endif

;Group related Drive Mappings
if ingroup("management")
USE x: "\\fla-server-1\executive"
endif
if ingroup("Finance")
USE F: "\\fla-server-1\accounting"
endif
if ingroup("Information Technology")
USE I: "\\fla-server-1\IT"
endif
if ingroup("Human Resources")
USE L: "\\fla-server-1\HR"
endif

;Set Network Time
SETTIME "\\fla-server-1"

;Delete Workstations temp files
RUN "del %temp%"


exit

=========================================

So far, the script works...BUT every user who logs in, with the exception of the Domain Admins, get a "kix32" folder at the begining...which everyone has to actually close manually.

I would also like to add a sting to add all the printers of the within the network when a new user log in.

Can someone help me out with this request?

Thanks a million!
Hector G.

Top
#56674 - 2001-06-28 06:18 AM Re: DNS Updates on Worksations
MCA Offline
KiX Supporter
*****

Registered: 2000-04-28
Posts: 5152
Loc: Netherlands, EU
Dear

We had some remarks:


  • when the %temp% isn't defined it is possible that the wrong
    files will be deleted. First check: does mine %temp% variable exist.
    Secondly check: do the directory exist.
  • with a del you are only deleting files in specified
    directory. Subdirectories and files in subdirectories will not
    be deleted.
    A better suggestion is: use deltree command, which can
    handle also open files. Other commands will stop processing
    your command.


    We suggest to modify it to:

    code:

    IF (len("%temp%") <> 0)
    IF (Exist("%temp%\nul") = 1)
    run '%comspec% /c echo Y|del %temp%'
    ENDIF
    ENDIF

    a better suggestion is:

    code:

    IF (len("%temp%") <> 0)
    IF (Exist("%temp%\nul") = 1)
    run '%comspec% /c deltree /y %temp%\.'
    ENDIF
    ENDIF

    a last suggestion is:

    code:

    IF (Exist("c:\winnt\temp\nul") = 1)
    run '%comspec% /c deltree /y c:\winnt\temp\.'
    ENDIF
    IF (Exist("c:\windows\temp\nul") = 1)
    run '%comspec% /c deltree /y c:\windows\temp\.'
    ENDIF
    IF (Exist("c:\temp\nul") = 1)
    run '%comspec% /c deltree /y c:\temp\.'
    ENDIF


    Only files and subdirectories in specified directories will be deleted.
    The names aren't influenced by other settings and you know that the
    specified directories can do any harm by deletion.
    Greetings.


    ------------------
    Site map:

    [list]

  • scripting@wanadoo.nl
  • History of Site/Last info of Site
  • Links to Favorite Sites
  • Summary of Site

[This message has been edited by MCA (edited 28 June 2001).]

_________________________
email scripting@wanadoo.nl homepage scripting@wanadoo.nl | Links | Summary of Site Site KiXforms FAQ kixtart.org library collection mirror MCA | FAQ & UDF help file UDF kixtart.org library collection mirror MCA | mirror USA | mirror europe UDF scriptlogic library collection UDFs | mirror MCA

Top
#56675 - 2001-06-30 07:50 PM Re: DNS Updates on Worksations
Anonymous
Unregistered


Hi Guys

Sorry i couldn't post for your replies.I am using DHCP but soe clients IP addresses are hardcoded and the users doesn't have any admin rights.I used intel landesk to modify.But is there any way i can use Kix with out installing any additiona components?

-Sridhar.


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 764 anonymous users online.
Newest Members
ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder, M_Moore
17887 Registered Users

Generated in 0.163 seconds in which 0.141 seconds were spent on a total of 12 queries. Zlib compression enabled.

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