Register a SA Forums Account here!
JOINING THE SA FORUMS WILL REMOVE THIS BIG AD, THE ANNOYING UNDERLINED ADS, AND STUPID INTERSTITIAL ADS!!!

You can: log in, read the tech support FAQ, or request your lost password. This dumb message (and those ads) will appear on every screen until you register! Get rid of this crap by registering your own SA Forums Account and joining roughly 150,000 Goons, for the one-time price of $9.95! We charge money because it costs us money per month for bills, and since we don't believe in showing ads to our users, we try to make the money back through forum registrations.
 
  • Locked thread
emtoor
Feb 11, 2010

BangersInMyKnickers posted:

Assigning it under the user section publishes the program to their Add/Remove programs list where they can then install it manually (assuming they have admin rights). I don't know of a way to make it happen automatically through that. Some packages are made by monkey idiots and don't detect the OS language correctly, so you might want to hit the check box to tell the policy to ignore the language settings. Also, some don't like being executed by the system account. Not much to do about that one except scream and/or cry.

You could always write a logon/startup script really quickly that will do a registry check for the product and then run the installer if it isn't present.

Ahh drat. Well I guess i'll give my scripting skills a run for their money >< thanks man

Adbot
ADBOT LOVES YOU

BangersInMyKnickers
Nov 3, 2004

I have a thing for courageous dongles

emtoor posted:

Ahh drat. Well I guess i'll give my scripting skills a run for their money >< thanks man

I usually just do something like this:

code:
reg query "HKLM\Software\Classes\Installer\Products\[your package]" && goto end
msiexec /i "package" /qb! /norestart
:end
exit /b 0
and you're good.

Bob Morales
Aug 18, 2006


Just wear the fucking mask, Bob

I don't care how many people I probably infected with COVID-19 while refusing to wear a mask, my comfort is far more important than the health and safety of everyone around me!

We have a bunch of admins in a Windows 2003 environment, a bunch of DC's at different sites.

Is there a way to see who the last person was that changed a group policy (or hell, moved a computer around to a different OU), and when they did it?

Also, is there some sort of CVS-like versioning system where we could roll back to what the group policy for the New York office was like 2 days ago?

Syano
Jul 13, 2005

Bob Morales posted:

We have a bunch of admins in a Windows 2003 environment, a bunch of DC's at different sites.

Is there a way to see who the last person was that changed a group policy (or hell, moved a computer around to a different OU), and when they did it?

Also, is there some sort of CVS-like versioning system where we could roll back to what the group policy for the New York office was like 2 days ago?

Audit directory service access

BangersInMyKnickers
Nov 3, 2004

I have a thing for courageous dongles

Bob Morales posted:

Also, is there some sort of CVS-like versioning system where we could roll back to what the group policy for the New York office was like 2 days ago?

There is powershell integration that allows you to save a domain's policy to a dump file that you can include in the backup set, so you could pull that off tape and import it to revert changes.

sanchez
Feb 26, 2003

Bob Morales posted:

We have a bunch of admins in a Windows 2003 environment, a bunch of DC's at different sites.

Is there a way to see who the last person was that changed a group policy (or hell, moved a computer around to a different OU), and when they did it?

Also, is there some sort of CVS-like versioning system where we could roll back to what the group policy for the New York office was like 2 days ago?

It sounds like you need to lock things down and delegate control more? Make it so admins at office X can only move computers and adjust policy for their own OU's.

Mully Clown
Aug 1, 2004

I handle my piss like the great big frilly girls blouse that I am
Or there is ActiveRoles if you want to take it to the next level. I don't have any permissions within Active Directory.

http://www.quest.com/activeroles-server/

BangersInMyKnickers
Nov 3, 2004

I have a thing for courageous dongles

Mully Clown posted:

Or there is ActiveRoles if you want to take it to the next level. I don't have any permissions within Active Directory.

http://www.quest.com/activeroles-server/

You need to enable Advanced Features under the View menu. Or just use the Delegate Control wizard which will do most of the work for you.

Tsaven Nava
Dec 31, 2008

by elpintogrande
I'm in a crappy situation where I've got to try and convince the current network admin, who is a sperging "Install linux problem solved" old lady, that we should actually move to using Active Directory and Group Policy on our network of ~60 users. What's the best one-paragraph explanation of why we should take everyone off the various workgroups and put them into a domain and start using Active Directory to manage them?

(I TOTALLY want to do this and feel the network is an epic disaster, but I'm also not as experienced as I'd like to be with AD, see my "Baby's first server migration" thread for more details on what I'm dealing with)

Quebec Bagnet
Apr 28, 2009

mess with the honk
you get the bonk
Lipstick Apathy

Tsaven Nava posted:

I'm in a crappy situation where I've got to try and convince the current network admin, who is a sperging "Install linux problem solved" old lady, that we should actually move to using Active Directory and Group Policy on our network of ~60 users. What's the best one-paragraph explanation of why we should take everyone off the various workgroups and put them into a domain and start using Active Directory to manage them?

(I TOTALLY want to do this and feel the network is an epic disaster, but I'm also not as experienced as I'd like to be with AD, see my "Baby's first server migration" thread for more details on what I'm dealing with)

Do users do dumb things with company computers? If so, would you like to stop them from doing dumb things with company computers? Thanks to the magic of group policy you can centrally administer that.

Ray_
Sep 15, 2005

It was like the Colosseum in Rome and we were the Christians." - Bobby Dodd, on playing at LSU's Tiger Stadium
Since this seems to be the Windows Admin/GPO thread, guess I'll post my question here.

I've got a majority XP environment, but have added a few Win7 machines lately - mostly because those machines have SSDs and I wanted the TRIM support. Anyway, I've been using a simply batch file for years and it works just fine on XP but the 7 machines lose all drives pretty regularly. It's set to run as a logon script inside a GPO. Here's the script:

code:
net use * /delete /y

net use i: \\servername\sharename
net use k: \\servername\sharename
net use n: \\servername\sharename
net use p: \\servername\sharename
I've searched around and apparently in 7, login batch files run with downgraded permissions. I couldn't find a good workaround online, though. Just a bunch of people with the same issue.

Anyone run into this? Have a good workaround? I don't have 7 or 2k8 on an admin machine to use the new drive mapping GPO, is that my only option?

sanchez
Feb 26, 2003
Install the admin tools on one of those random 7 machines, use that to create the GPO? They're much nicer than login scripts, may as well give it to your XP people too. (install client side extensions first)

FISHMANPET
Mar 3, 2007

Sweet 'N Sour
Can't
Melt
Steel Beams

sanchez posted:

Install the admin tools on one of those random 7 machines, use that to create the GPO? They're much nicer than login scripts, may as well give it to your XP people too. (install client side extensions first)

Yeah, you don't actually need a 2008 server to implement, them, there's a patch for XP and it's built into 7 and that's all you need.

Ray_
Sep 15, 2005

It was like the Colosseum in Rome and we were the Christians." - Bobby Dodd, on playing at LSU's Tiger Stadium

sanchez posted:

Install the admin tools on one of those random 7 machines, use that to create the GPO? They're much nicer than login scripts, may as well give it to your XP people too. (install client side extensions first)

I thought of that, problem is they're all for higher ups or power users so if there's any issues with a GPO it might be tough to get in front of the 7 box due to traveling, etc.

I'll probably end up rolling a 2k8 server on our ESX box for testing out stuff like Lync that requires it, just wondering if anyone had an alternate workaround.

FISHMANPET posted:

Yeah, you don't actually need a 2008 server to implement, them, there's a patch for XP and it's built into 7 and that's all you need.

I know that, but thanks :)

peak debt
Mar 11, 2001
b& :(
Nap Ghost
You can always implement that with GPPs and use a WMI filter to only target the Windows 7 systems for now

Select * from Win32_OperatingSystem where Version = 6.1.7600

BangersInMyKnickers
Nov 3, 2004

I have a thing for courageous dongles

peak debt posted:

You can always implement that with GPPs and use a WMI filter to only target the Windows 7 systems for now

Select * from Win32_OperatingSystem where Version = 6.1.7600

That will also include 2k8R2, so fyi on that.

ryo
Jan 15, 2003
I have a registry key I'd like to deploy to all Windows 7 machines in a 2003 domain. Is it possible to use group policy with a WMI filter to do this?

Would I have to make a script to apply the registry key (already made a .reg file) and put that in the startup script setting in a GPO?

BangersInMyKnickers
Nov 3, 2004

I have a thing for courageous dongles

ryo posted:

I have a registry key I'd like to deploy to all Windows 7 machines in a 2003 domain. Is it possible to use group policy with a WMI filter to do this?

Would I have to make a script to apply the registry key (already made a .reg file) and put that in the startup script setting in a GPO?

If you're making the policy on a Windows 7/Vista machine, you can do it directly.



Then pair that with the WMI filter select * from Win32_OperatingSystem where BuildNumber > 6100 or whatever the hell it is.

ryo
Jan 15, 2003
I tried this (without the WMI filter, just applied it to an OU that had one computer in it)
But it didn't work, I did a gpresult /Z and it said that the policy was being applied but looking in regedit it hadn't been.
Before doing all this, I had created the key and deleted in registry of the client machine. Should that make a difference?

Also, our 2003 domain controller AFAIK doesn't have the client side extensions installed.

BangersInMyKnickers
Nov 3, 2004

I have a thing for courageous dongles

ryo posted:

I tried this (without the WMI filter, just applied it to an OU that had one computer in it)
But it didn't work, I did a gpresult /Z and it said that the policy was being applied but looking in regedit it hadn't been.
Before doing all this, I had created the key and deleted in registry of the client machine. Should that make a difference?

Also, our 2003 domain controller AFAIK doesn't have the client side extensions installed.

I think the CSE need to be installed on the DC before these things will apply. If you're using WSUS it is really something that all workstations and servers should have.

Naramyth
Jan 22, 2009

Australia cares about cunts. Including this one.
oh god software deployment i dont know how i got here i am not very good with computers :ohdear:

I followed along with your Java deployment and was able to roll out Java 1.6.0_21 with a transform to a couple XP machines, but it will not go to a windows 7 box. I keep getting error 1612* in the event viewer on the machines that this tries to go to. However, I am able to run the installer from the Win 7 machines when logged in. I have both Domain Computers, Authenticated Users, and SYSTEM with full control on the file shares in question, the folders are not marked read only, and the policy is applying to Domain Computers and the OU has the drat computers in it.

I read somewhere that the file server OS would matter if it wasn't 2008r2, but it is.

What am I missing?

*The installation source for this product is not available

BangersInMyKnickers
Nov 3, 2004

I have a thing for courageous dongles

Some packages are compiled wrong and don't work properly installing under the SYSTEM account. If that's the case, you might be screwed. I'm a little behind on my Java updates and haven't done u21 yet, so I haven't hit this. I'll play around with it tomorrow and see what I can come up with.

Naramyth
Jan 22, 2009

Australia cares about cunts. Including this one.

BangersInMyKnickers posted:

Some packages are compiled wrong and don't work properly installing under the SYSTEM account. If that's the case, you might be screwed. I'm a little behind on my Java updates and haven't done u21 yet, so I haven't hit this. I'll play around with it tomorrow and see what I can come up with.

I don't think it is a Java being retarded thing. I added Firefox, Flash, and Flash plugin to my GPO this morning and they all rolled out to an XP machine no problem, but they all failed with the 1612 error to my Windows 7 box. :saddowns:

e: wtf is with adobe reader? Are the folks who package that so self important that they want money to "redistribute" their free software via GPO? They are not the only game in town! Flash didn't have that problem. :argh:

FISHMANPET
Mar 3, 2007

Sweet 'N Sour
Can't
Melt
Steel Beams

Naramyth posted:

I don't think it is a Java being retarded thing. I added Firefox, Flash, and Flash plugin to my GPO this morning and they all rolled out to an XP machine no problem, but they all failed with the 1612 error to my Windows 7 box. :saddowns:

e: wtf is with adobe reader? Are the folks who package that so self important that they want money to "redistribute" their free software via GPO? They are not the only game in town! Flash didn't have that problem. :argh:

The license is free, you just have to apply to get it.

As for Java and Win 7, are installing on 32 bit or 64 bit? I had to do some fuckery with the registry to get it to install because the 32 bit path was hard coded into the 32 bit installer and it died miserably running as SYSTEM on a 64 bit machine.

Naramyth
Jan 22, 2009

Australia cares about cunts. Including this one.

FISHMANPET posted:

The license is free, you just have to apply to get it.

As for Java and Win 7, are installing on 32 bit or 64 bit? I had to do some fuckery with the registry to get it to install because the 32 bit path was hard coded into the 32 bit installer and it died miserably running as SYSTEM on a 64 bit machine.

Oh. :downs:

My windows 7 copies are 32 bit. :(

FISHMANPET
Mar 3, 2007

Sweet 'N Sour
Can't
Melt
Steel Beams
Double posting time.

I'm trying to setup printers so that anybody that logs into the machine gets that machine's printers. I'm a GPO newbie so I know it's not working, but I have no idea how to see why.

I've created the GPO, and the scope is my test machine. The GPO is linked to the OU my machine is in. I've added the printer under user configuration > prefrences > control panel settings > printers as a shared printer, and it doesn't work. Some things I see on the internet say I should use Item level targetting and target the GPO to an OU, but isn't that already done by linking the GPO to the OU?

quackquackquack
Nov 10, 2002
You set the printers up in the User Configuration, so they will apply to Users in that OU.

If you want them to apply to Computers in that OU, configure them in the Computer Configuration section, or configure them in the User Configuration section and turn on loopback processing.

FISHMANPET
Mar 3, 2007

Sweet 'N Sour
Can't
Melt
Steel Beams

Noel posted:

You set the printers up in the User Configuration, so they will apply to Users in that OU.

If you want them to apply to Computers in that OU, configure them in the Computer Configuration section, or configure them in the User Configuration section and turn on loopback processing.

I had to configure them in the User section because you can't configure shared printers in computer. I managed to find out that I also needed to enable loopback.

So when I run gpresult, the policy is being applied under computer settings, but denied under user settings, which I guess makes sense, since the scope is only to my test machine.

But how can I tell what's actually happening?

BangersInMyKnickers
Nov 3, 2004

I have a thing for courageous dongles

Ok, I got the JRE rollout to work. Here is what I did.

First the MST. This is what mine looks like:



Those are the only modifications I made.

Once you are in your GPO and applying the MSI, make sure you do an Advanced deployment. One thing I noticed that it was reporting that the package is language neutral. I've had problems with this in the past where if English isn't specified on the package, the user-mode install will work fine because it pulls that data our of the user's shell session but a system install fails. To correct this, go to the Deployment tab and Advanced. Hit the check box to "Ignore language when deploying this package". I would recommend always doing this anyway, since you know what software you're pushing out and you probably aren't dealing with a multi-lingual deployment.

After that was done, everything went as I expected for rolling it out.

Naramyth
Jan 22, 2009

Australia cares about cunts. Including this one.

BangersInMyKnickers posted:

:science:

Cool. I did get it working on XP, but Java(and Flash, Adobe Reader, and Firefox) won't roll out to my Windows 7 boxes. :(

I have a feeling it has something to do with the way SYSTEM is working on Windows 7. Did you have to do any UAC finagling to get things to deploy to Windows 7?

BangersInMyKnickers
Nov 3, 2004

I have a thing for courageous dongles

The system account has total access to the computer, UAC isn't a factor. If you need to do debugging, make a command line tool that will run the install silently 'msiexec /i \\server\share\package /qn /norestart /le %temp%\install_error.log' and set that to a scheduled task to run with system credentials, then manually start it. If it doesn't work (and it probably won't) you should be able to look at the install_error.log file it generates in c:\windows\temp to get a good idea of exactly what is going on.

quackquackquack
Nov 10, 2002

BangersInMyKnickers posted:

The system account has total access to the computer, UAC isn't a factor. If you need to do debugging, make a command line tool that will run the install silently 'msiexec /i \\server\share\package /qn /norestart /le %temp%\install_error.log' and set that to a scheduled task to run with system credentials, then manually start it. If it doesn't work (and it probably won't) you should be able to look at the install_error.log file it generates in c:\windows\temp to get a good idea of exactly what is going on.

I prefer to use psexec instead of a scheduled task for this.

psexec.exe -s -i cmd.exe

BangersInMyKnickers
Nov 3, 2004

I have a thing for courageous dongles

Noel posted:

I prefer to use psexec instead of a scheduled task for this.

psexec.exe -s -i cmd.exe

I thought Vista/Win7 blocked interactive system sessions?

quackquackquack
Nov 10, 2002
You can't use the old AT trick, but psexec works. I've tested it on Vista and 2008.

Naramyth
Jan 22, 2009

Australia cares about cunts. Including this one.

BangersInMyKnickers posted:

The system account has total access to the computer, UAC isn't a factor. If you need to do debugging, make a command line tool that will run the install silently 'msiexec /i \\server\share\package /qn /norestart /le %temp%\install_error.log' and set that to a scheduled task to run with system credentials, then manually start it. If it doesn't work (and it probably won't) you should be able to look at the install_error.log file it generates in c:\windows\temp to get a good idea of exactly what is going on.

:worship:

I feel just dense as gently caress right now. I downloaded psexec and did the following on my Windows 7 VM logged in as the OU admin.

1. Ran cmd as admin
1a) cd c:\pstools
2. 'psexec.exe -s -i cmd.exe'
2a) Which opened a new cmd box
3. I that new box: 'msiexec /i \\fileserver\myOU\shared\apps\java\jre1.6.0_21.msi /qn /norestart /le %temp%\install_error.log'

That created a log file, but it didn't have anything in it. If I remove the logging options I get an error window that says "The installation package could not be opened. Verify the package exists and that you can access it..."

So System can't see that share? I gave it full loving control! :argh:

:ninja:e: I tried the 'msiexec /i blah blah' from a non psexec prompt and it did install.

quackquackquack
Nov 10, 2002
Does the SYSTEM account have access to that share? I also seem to recall not being able to use UNCs like that from a command prompt (but I could be remembering wrong). I often make a batch file with the msiexec.exe command and run that.

BangersInMyKnickers
Nov 3, 2004

I have a thing for courageous dongles

Did you make sure that the Domain Computers group has read access to BOTH the share itself and the underlying NTFS directory structure?

JBark
Jun 27, 2000
Good passwords are a good idea.

Ray_ posted:

I've searched around and apparently in 7, login batch files run with downgraded permissions. I couldn't find a good workaround online, though. Just a bunch of people with the same issue.

Anyone run into this? Have a good workaround? I don't have 7 or 2k8 on an admin machine to use the new drive mapping GPO, is that my only option?

My company spent years fighting the Vista/7 UAC/login script/network drive problems, but I found a very simple fix for it when I finally got a chance to look at it:

http://technet.microsoft.com/en-us/library/ee844140%28WS.10%29.aspx

Create a new DWORD and set it to 1 - HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System\EnableLinkedConnections

That's it, all your login scripts will work just like the did with XP. Basically, the problem is caused by having Local Administrator rights with UAC enabled. The login script runs under the limited token for domain\username, but your session running under the full token for domain\username. Windows treats these two as seperate "accounts", so you don't see any drives/printers mapped through a login script. The fix allows these two accounts to share network connections.

Works like a drat charm, and should frankly be the default as far as I'm concerned. I created a basic adm file that had set this reg key, and created a GPO that applied it to all domain PCs.

peak debt
Mar 11, 2001
b& :(
Nap Ghost
SYSTEM is actually the same account as the computer. So if you run a program under SYSTEM on a PC called NYC-SRV1, the NYC-SRV1 account in AD needs to have access rights to all resources it needs. For the case of remote software installations like SCCM and stuff you typically assign the read right to "Domain Computers".

Adbot
ADBOT LOVES YOU

Naramyth
Jan 22, 2009

Australia cares about cunts. Including this one.

BangersInMyKnickers posted:

Did you make sure that the Domain Computers group has read access to BOTH the share itself and the underlying NTFS directory structure?

I have access to the NTFS permissions but not the share permissions. I emailed the powers that be to see if I can get access to try it out. :hurr:

Thank you Bangers, you are awesome.

  • Locked thread