PC Review


Reply
Thread Tools Rate Thread

adding a line to ...drivers/etc/services using group policies

 
 
Stefan Sczekalla-Waldschmidt
Guest
Posts: n/a
 
      16th Nov 2006
Hi

we are using group-policies to deploy software to certain computers.

A package we are going to make needs an updated Lin in
....drivers/etc/services.

Any Idea how I can "patch" this file to add a certain line ?

Kind Regards,

Stefan
 
Reply With Quote
 
 
 
 
Mark Heitbrink [MVP]
Guest
Posts: n/a
 
      16th Nov 2006
Hi,

Stefan Sczekalla-Waldschmidt schrieb:
> we are using group-policies to deploy software to certain computers.
> A package we are going to make needs an updated Lin in
> ....drivers/etc/services.
> Any Idea how I can "patch" this file to add a certain line ?


Deploy it with a selfmade MSI or just edit it with a computer
startup script.

echo "name port/proto shortname #info" >>
%systemroot\system32\drivers\etc\services

But to be honest, who needs this file? Itīs just information ...

Mark
--
Mark Heitbrink - MVP Windows Server - Group Policy

Homepage: www.gruppenrichtlinien.de - deutsch
Blog: gpupdate.spaces.live.com - english
 
Reply With Quote
 
Stefan Sczekalla-Waldschmidt
Guest
Posts: n/a
 
      17th Nov 2006
Hello Mark,

I already had seen several pices of software using etc/services to gahter
which "Ports" to use.

well and due to having several pices of software changing thouse files
I can't simply deploy a "ready"-made file - I really need to change an
existing.

One idea I developed ist to deploy a "change the f*ing file batch" and
run this batch by modifying the "runonce" reg key ...

Kind regards

Stefan

"Mark Heitbrink [MVP]" <spam-(E-Mail Removed)> wrote in
news:(E-Mail Removed):

> Hi,
>
> Stefan Sczekalla-Waldschmidt schrieb:
>> we are using group-policies to deploy software to certain computers.
>> A package we are going to make needs an updated Lin in
>> ....drivers/etc/services.
>> Any Idea how I can "patch" this file to add a certain line ?

>
> Deploy it with a selfmade MSI or just edit it with a computer
> startup script.
>
> echo "name port/proto shortname #info" >>
> %systemroot\system32\drivers\etc\services
>
> But to be honest, who needs this file? Itīs just information ...
>
> Mark


 
Reply With Quote
 
Mark Heitbrink [MVP]
Guest
Posts: n/a
 
      17th Nov 2006
Hi,

Stefan Sczekalla-Waldschmidt schrieb:
> I already had seen several pices of software using etc/services to gahter
> which "Ports" to use.


Really? Iīm shocked. My file is never edited and from 2001(?) I guess.

> well and due to having several pices of software changing thouse files
> I can't simply deploy a "ready"-made file - I really need to change an
> existing.


Do it with the "echo >>services" but I donīt know, what happens if the
line already exists. You can filter it with "find" and then skip the
action, if you find the entry. Like:

Mark
--
Mark Heitbrink - MVP Windows Server - Group Policy

Homepage: www.gruppenrichtlinien.de - deutsch
Blog: gpupdate.spaces.live.com - english
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Outlook 2007 group policies - SharePoint Services 3.0 =?Utf-8?B?RmxvcmlhbiBLbGFudGU=?= Microsoft Outlook Discussion 0 27th Jun 2007 12:50 PM
adding a global group to a local group via command line =?Utf-8?B?SmFtZXM=?= Microsoft Windows 2000 Active Directory 1 31st Mar 2005 08:52 PM
Finding and Adding new group policies Eric Martin Microsoft Windows 2000 Group Policy 1 6th Aug 2004 08:26 PM
Group Policies - adding printer to ALL users Tony Microsoft Windows 2000 Group Policy 0 29th Oct 2003 11:10 PM
Help Adding Printer Drivers via Command Line Yogi_Bear_79 Microsoft Windows 2000 CMD Promt 0 25th Jul 2003 01:16 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:42 AM.