Installing patchs and apps automatically

M

Mark N.

I've seen info on this posted here in the past, but could somebody please
point me in the right direction here? How can I install software
automatically using my active directory? What are the limits to this
process? I've just upgraded to active directory and the thought of keeping
everybody's OS patches current through automatic install is a very pleasant
thought - can this be done? I know that at my wife's company, sometimes
when she logs onto the network, she gets a dialog telling her to wait while
patches are installed.

Thanks,
Mark
 
R

Ryan Hanisco

For OS patches and the like, you'll want Software Update Services... this
is a free add on to Windows Server that allows approval of patches and
updates. Look for Windows Update Services in the future to incorporate
Office patches too. This is pretty easy to install, but takes a bit of
thought and planning if you are using it to set up a test environment apart
from your production environment.

Software deployment and management can be done through GPOs as well, but
this is a much broader subject. Though many applications can be deployed
this way, it takes a lot of planning and staging to do it flawlessly. Some
applications (Like the Novell client) can't be deployed this way. Plan,
test, then deploy.

Ryan Hanisco
MCSE, MCDBA
Flagship Integration Services
 
M

Mark N.

Ryan Hanisco said:
For OS patches and the like, you'll want Software Update Services... this
is a free add on to Windows Server that allows approval of patches and
updates. Look for Windows Update Services in the future to incorporate
Office patches too. This is pretty easy to install, but takes a bit of
thought and planning if you are using it to set up a test environment apart
from your production environment.

Software deployment and management can be done through GPOs as well, but
this is a much broader subject. Though many applications can be deployed
this way, it takes a lot of planning and staging to do it flawlessly. Some
applications (Like the Novell client) can't be deployed this way. Plan,
test, then deploy.

Ryan Hanisco
MCSE, MCDBA
Flagship Integration Services



Thanks! I've downloaded a large (95 page) MS document on this :)

Mark
 
C

Cary Shultz [A.D. MVP]

Mark,

Deploying software via GPO is a wonderful way to do things. There are a lot
of benefits to doing it in this manner. There are the obvious benefits and
then a couple of not so obvious benefits. One of those is the
'self-healing' aspect of deployment via GPO. Say that your user base has
more than just read permissions to the Program Files folder on their local
computer. Let's just say that both Betty and Joe decide that they need some
more space on their respective hard drives ( you know, for that important
stuff like music! ) so they delete winword.exe and excel.exe. Okay, now Word
and Excel do not work. WRONG! By deploying office via GPO there is a lot
of intelligence built-in ( aka IntelliMirror ). It is smart enough to know
that there is a problem ( that winword.exe and excel.exe are missing ) and
knows what to do ( that it needs to shoot down those two files to the
affected computers ).

The big picture on how to do this is to have an Administrative Installation
Point for your applications. Let's look at Adobe Acrobat Reader 6.0.1 and
Office 2000 ( the same process works for Office XP and Office 2003 ).

First and foremost you need an .msi file. We will bypass the steps needed
for Adobe. Let's just presume with the needed folder ( which contains the
..msi file and several others ). So, you have the 'Adobe' folder. You need
to share it ( I like to hide the folders used to deploy applications via GPO
so I would share it as 'Adobe$' ) and make sure that you use the appropriate
permissions ( both on the share permissions and the NTFS permissions ). I
like to use the Domain Admins and Domain Users / Domain Computers for the
Share permissions ( either the Domain Users if you are deploying it to the
user configuration side or the Domain Computers if you are deploying it to
the computer configuration side ). Domain Admins get Full Control and
Domain Users / Domain Computers get simply Read. On the NTFS I use the same
groups. Domain Admins get Full Control again while the Domain Users /
Domain Computers get Read, Read and Execute and List Folder Contents.

Now that you have the folder shared you need to organize things in your
Active Directory. Since you can not deploy applications to Containers (
well, just go with that for a moment ) you will need to create an
Organizational Unit and then move the account objects into that OU. Let's
say that you are going to deploy Adobe 6.0.1 to the user configuration side
of things. So, you would need to create an OU and move all of your user
account objects from the default USERS container to the OU that you just
created. This will have no affect on your users logging on or anything
else. Now, right click that OU and select Properties. Go over to the tab
called Group Policy ( going from memory here so it might be Group Policies )
and click on NEW... Give it a friendly name ( like Adobe Acrobat 6.0.1 or
All Users get Adobe or whatever makes sense to you ). There! You have just
created a GPO. Huh? Well, technically, you have. It is currently empty -
but you have created a GPO. You now need to click on the Edit button. You
would then set things up. Go to the Users Configuration and Software
Settings and then Software Installation and right click that and select New
| Package....

You then simply tell AD where everything is. Please do not forget to use
the UNC path when telling AD where adobe.msi is located. It would look
something like \\fileserver01\adobe$\adobe.msi. You can not use mapped
network drives for this.

You have a couple of choices. You can either publish the application or you
can assign the application. If you publish the application then the users
need to go into Add/Remove Programs and select this from the New
Applications tab. If you assign it then the software is installed
automagically. There is also the Advanced tab. Does not necessarily apply
here. You would use this is you were going to use a .mst file ( aka
Transforms file ). You would do this for Office 2000. Now, you can publish
or assign because this is to the user side. You have only one choice -
assign - when you deploy applications to the computer side. But that should
make sense, right?

Now, for Office 2000 ( or whatever version you are using, the method is
pretty much exactly the same ) you would first have to do an Administrative
Installation. You accomplish this by running setup.exe /a. You would have
already created the shared folder ( I like to call it OFF2K and share it as
OFF2K$ ). Enter in the Company Name and the ProductID ( you do this once
and only once...right here! ). Once the installation is finished you have
your AIS. Now, if necessary create the OU ( remember that user account
objects and computer account objects can only reside in one OU - or one
Container - at a time and that it is a horrible idea to be moving these
account objects around so that one GPO or another is affecting
them.....horrible horrible horrible idea. You need to create the OU
structure and stick with it. You can use Security Group Filtering if
necessary! But that is usually - but not always - an indication of a bad OU
design. ). Then, simply do the same thing that you did for Adobe.

Now, when does the stuff that you configured in the GPOs actually happen?
Generally speaking, when the user logs off and then back on ( assuming that
things were set up in the user configuration ) or when the computer is
rebooted ( assuming that things were set up in the computer configuration ).

Another tip: when creating the GPOs ( well, better said when editing the
created but still blank GPO ) I like to disable it. Actually, you would
disable both sides. This way if it is taking a bit of time for you to
configure all the settings needed you will not have people getting part of a
GPO. Well, doesn't that contradict what I just wrote directly above? No,
it does not. Once you have finished editing the GPO then you can go back
and uncheck the 'Disable' checkboxes. Should you disable the computer side
if you are configuring this for the user configuration side of things?
Well, Microsoft used to say 'No' but I think that they are starting to
recommend that you disable the side that is not being used. So, you might
want to keep both sides unchecked and after a little time has passed ( and
you become more familiar with this whole process ) then go and check the
Computer side ( so that it is disabled ).

What about this transforms file? Well, this little .mst file will do a lot
of things for you. First off, you need to install the Office 2000 Resource
Kit. If you were installing Office XP then you would need to install the
Office XP Resource Kit. This allows you to create the .mst files. You have
to guide it to the Office2000 .msi file ( so,
\\fileserver01\off2k$\data1.msi ) and then you go through a bunch of screens
that allow you to include certain applications from Office 2000 - so, you
could create one .mst file that installs Word, Excel and Outlook and create
another .mst file that installs Word Access and Outlook and yet a third .mst
file that installs Word, Excel PowerPoint and Outlook ) and you can control
how things show up on the desktop ( so, you could create an Office 2000
'folder' so that when the user clicks on Start in the lower left corner
there is an Office 2000 entry at the top that holds all of the shortcuts AS
WELL AS removing the shortcuts that show up in Start | Programs - if you so
choose ). It is really nice. Now, you do need to make sure that you use
Advanced Assign or Advanced Publish in order to make use of the .mst files.
I also suggest that you create all of the .mst files that you think that you
will need before you actually deploy Office 2000. I am not sure if this is
a real requirement. I have just not had much luck with the .mst files
created after having deployed Office 2000. Maybe I am just not doing
something correctly. That does seem to be a bit dumb. I have not tried
this in a good while so maybe I am remembering incorrectly.

Also, when deploying Office 2000 ( or an version ) do not forget to make use
of the Office 2000 application-specific .adm files. There are a lot of
settings that you can control with these .adm files that are really
interesting and take a lot of the work out of setting up Office for your
user base.

Shoot, this is already really long and I am just scratching the surface.
Let's call it a day with this one so that you can absorb this.

HTH,

Cary
 
M

Mark N.

Wow! Thanks Cary!

That post is a keeper!!

I'm just beginning to learn the benefits of AD, after spending months
implementing it...
I know that I can configure a lot of things, but what of the more mundane
tasks like configuring these items automatically:

Quick launch items
Printers
Desktop image
Default IE home page

Can this be done with IE?

I have my users' home page set to our corporate intranet site, but depending
where they've surfed recently, that gets changed. It would be nice to just
reset that for them rather than have them ask me a million times how to do
it!

Thanks,
Mark
 
P

ptwilliams

Sorry to jump in Cary,

But in answer to your question Mark: yes, you can configure almost all of
these things via GPO.

IE under User Config\Windows Settings\IE Maintenance\ URLs\ Important URLs

Desktop image somewhere under user config\ admin templates\ Desktop\ active
desktop (this is from memory ;-)

Quick launch is probably in there somewhere.

Printers are a little more tricky. Logon script is the best way to do this.


--

Paul Williams

http://www.msresource.net
http://forums.msresource.net



Wow! Thanks Cary!

That post is a keeper!!

I'm just beginning to learn the benefits of AD, after spending months
implementing it...
I know that I can configure a lot of things, but what of the more mundane
tasks like configuring these items automatically:

Quick launch items
Printers
Desktop image
Default IE home page

Can this be done with IE?

I have my users' home page set to our corporate intranet site, but depending
where they've surfed recently, that gets changed. It would be nice to just
reset that for them rather than have them ask me a million times how to do
it!

Thanks,
Mark
 
C

Cary Shultz [A.D. MVP]

Paul,

You may always jump in!

And, Mark, I would completely agree with Mssr. Williams about the logon
script being the 'best' way to add the printers. Now, we can not really
tell you the 'best' way as everyone is a bit different and has his/her own
way of doing things. I would consider using a .vbs logon script. There is
also the possibility to use con2print or printui.dll.

HTH,

Cary
 
M

Mark N.

Sorry to jump in Cary,
But in answer to your question Mark: yes, you can configure almost all of
these things via GPO.

IE under User Config\Windows Settings\IE Maintenance\ URLs\ Important URLs

Desktop image somewhere under user config\ admin templates\ Desktop\ active
desktop (this is from memory ;-)

Quick launch is probably in there somewhere.

Printers are a little more tricky. Logon script is the best way to do this.



Thanks Paul...

Looks like I'll be researching GPOs now :)

Mark
 
M

Mark N.

And, Mark, I would completely agree with Mssr. Williams about the logon
script being the 'best' way to add the printers. Now, we can not really
tell you the 'best' way as everyone is a bit different and has his/her own
way of doing things. I would consider using a .vbs logon script. There is
also the possibility to use con2print or printui.dll.

HTH,

Cary


Thanks Cary!
I'm pretty weak when it comes to .vbs, so I may have to look at the other
options (or just buckle down and keep working on .vbs).

Mark
 
C

Cary Shultz [A.D. MVP]

Mark,

Being 'weak' in .vbs is no excuse! And I am super weak when it comes to
scripting. I am just now getting into WMI and ADSI. There are a ton of
resources for you when it comes to logon scripts in .vbs. All you would
have to do is to change the server name and the share name ( for mapped
network drives ) and / or the servername and printer names ( for printers ).
You can even tell which printer is the default printer. It is really quite
nice!

The printui.dll is a nice way as well if you really do not want to mess with
..vbs......

Cary
 
C

Cary Shultz [A.D. MVP]

Mark,

GPOs are really great.

Essentially installing software the way we discussed is making use of Group
Policy Objects. The same rules apply.

HTH,

Cary
 
M

Mark N.

Being 'weak' in .vbs is no excuse! And I am super weak when it comes to
scripting. I am just now getting into WMI and ADSI. There are a ton of
resources for you when it comes to logon scripts in .vbs. All you would
have to do is to change the server name and the share name ( for mapped
network drives ) and / or the servername and printer names ( for printers ).
You can even tell which printer is the default printer. It is really quite
nice!

The printui.dll is a nice way as well if you really do not want to mess with
.vbs......

Cary


Thanks - I'll do some Googling and see what I find :)
Mark
 
P

ptwilliams

I'm another scripting newbie, but I love it!!! With a bit of patience at
understanding the structure of the language and more patience for searching
msdn or the SDK you will soon find yourself whipping up enterprise-class
scripts. Coupled with the fact that there's an abundance of free scripts
available throughout the Windows community, you can't go wrong (you'd be
hard pressed to not find what you want without making many customisations
too).

--

Paul Williams

http://www.msresource.net
http://forums.msresource.net


Mark N. said:
Being 'weak' in .vbs is no excuse! And I am super weak when it comes to
scripting. I am just now getting into WMI and ADSI. There are a ton of
resources for you when it comes to logon scripts in .vbs. All you would
have to do is to change the server name and the share name ( for mapped
network drives ) and / or the servername and printer names ( for printers ).
You can even tell which printer is the default printer. It is really quite
nice!

The printui.dll is a nice way as well if you really do not want to mess with
.vbs......

Cary


Thanks - I'll do some Googling and see what I find :)
Mark
 
M

Mark N.

I'm another scripting newbie, but I love it!!! With a bit of patience at
understanding the structure of the language and more patience for searching
msdn or the SDK you will soon find yourself whipping up enterprise-class
scripts. Coupled with the fact that there's an abundance of free scripts
available throughout the Windows community, you can't go wrong (you'd be
hard pressed to not find what you want without making many customisations
too).


Thanks! I need to get moving on this! Heck, I don't really even know where
to start, like, is AD already ready for these GPOs, or do I have to install
something? It stinks that I'm the only IT guy at my company and I'm buried
under so much work that it's hard to learn anything new :-(

Mark
 
P

ptwilliams

I here you with the work thing!! We get more work and less money : (

You don't need to install anything. You configure GPOs at either the
domain, site or OU level. Right-click on the domain or an OU in ADU&C,
choose properties and Group Policy; or right-click and choose properties,
Group Policy on a site object in ADSites and Services.

--

Paul Williams

http://www.msresource.net
http://forums.msresource.net


Mark N. said:
I'm another scripting newbie, but I love it!!! With a bit of patience at
understanding the structure of the language and more patience for searching
msdn or the SDK you will soon find yourself whipping up enterprise-class
scripts. Coupled with the fact that there's an abundance of free scripts
available throughout the Windows community, you can't go wrong (you'd be
hard pressed to not find what you want without making many customisations
too).


Thanks! I need to get moving on this! Heck, I don't really even know where
to start, like, is AD already ready for these GPOs, or do I have to install
something? It stinks that I'm the only IT guy at my company and I'm buried
under so much work that it's hard to learn anything new :-(

Mark
 
M

Mark N.

I here you with the work thing!! We get more work and less money : (
You don't need to install anything. You configure GPOs at either the
domain, site or OU level. Right-click on the domain or an OU in ADU&C,
choose properties and Group Policy; or right-click and choose properties,
Group Policy on a site object in ADSites and Services.


Thanks Paul - talk about work! It took me 8 days to come check for new
responses :-(

Your help is very much appreciated!
Mark
 
P

ptwilliams

No problem : )


--

Paul Williams

http://www.msresource.net
http://forums.msresource.net


Mark N. said:
I here you with the work thing!! We get more work and less money : (

You don't need to install anything. You configure GPOs at either the
domain, site or OU level. Right-click on the domain or an OU in ADU&C,
choose properties and Group Policy; or right-click and choose properties,
Group Policy on a site object in ADSites and Services.


Thanks Paul - talk about work! It took me 8 days to come check for new
responses :-(

Your help is very much appreciated!
Mark
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top