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
murk
Oct 31, 2003
Never argue with stupid people, they drag you down to their level and beat you with experience.
Arrrgggghhh. I have a Windows 2008 r2 domain with Windows 7 x64 Enterprise clients. We are getting 100 laptops and I would like to make a scheduled task to wake them, gpupdate them and reboot them at night. I've got the wake task working after I adjusted the default power settings by Control Panel --> Power Options --> Balanced (Change plan settings) --> Change advanced power settings --> Sleep --> Allow Wake Timers --> Plugged in: Enabled

So once that is enabled, the task works great. I need to be able to set this setting on all the laptops. I just knew that GPO preference was going to do this for me, but the Allow Wake Timers is not a option in preferences. I have Googled quite a bit trying to find any sort of registry or command line util that can set this option. Powercfg.exe seemed to get so close, but alas did not do what I needed. I ran Regshot and compared the registry before and after that setting, but that did not get me anywhere. Does anyone have any suggestions?


*edit* Well of course right after I post this, I continued to Google and found this:
powercfg -setacvalueindex SCHEME_CURRENT SUB_SLEEP bd3b718a-0680-4d9d-8ab2-e1d2b4ac806d 1
powercfg -setdcvalueindex SCHEME_CURRENT SUB_SLEEP bd3b718a-0680-4d9d-8ab2-e1d2b4ac806d 1
powercfg -setactive SCHEME_CURRENT

This appears to work, but does anyone have a more elegant solution?

murk fucked around with this message at 23:53 on Feb 26, 2013

Adbot
ADBOT LOVES YOU

scanlonman
Feb 7, 2008

by R. Guyovich
Can someone walk me through the easiest way to have everyone on the server have the same screen server? Server is 2012.

peak debt
Mar 11, 2001
b& :(
Nap Ghost

scanlonman posted:

Can someone walk me through the easiest way to have everyone on the server have the same screen server? Server is 2012.

Set the "Force specific screen saver" group policy, either in a local policy, or in a server assigned loopback policy.

scanlonman
Feb 7, 2008

by R. Guyovich

peak debt posted:

Set the "Force specific screen saver" group policy, either in a local policy, or in a server assigned loopback policy.

What's the difference between local policy or a loopback?

FISHMANPET
Mar 3, 2007

Sweet 'N Sour
Can't
Melt
Steel Beams
Local policy is a policy of the machine itself. I don't know about this policy, but it must be something that overrides whater setting the user has, as that's usually howt machine policies effecting user properties operate.

Loopback is a user policy that's applied to a machine and Loopback processing is enabled so it only gets applied to users that login to that machine.

capitalcomma
Sep 9, 2001

A grim bloody fable, with an unhappy bloody end.
How are printer and printer driver issues troubleshot when they're deployed via GPO?

We were dealing earlier today with a workstation that had a corrupted printer driver on it. Previously, when printers were deployed via script, we'd just uninstall any printers that used the driver, then remove the driver itself, then re-install all of them.

Unfortunately, it doesn't seem possible to uninstall printers that are assigned via Group Policy: we get "Access Denied", even when logged in as Admins. I can't uninstall that driver so long as any printers are trying to use it.

Short of removing all of the printers from the GPO -- and thereby remove the printers from dozens of machines -- there's no way I can find to remove the defective driver.

What is The Way to troubleshoot printer/print driver issues like this?

FISHMANPET
Mar 3, 2007

Sweet 'N Sour
Can't
Melt
Steel Beams

Sounder posted:

How are printer and printer driver issues troubleshot when they're deployed via GPO?

We were dealing earlier today with a workstation that had a corrupted printer driver on it. Previously, when printers were deployed via script, we'd just uninstall any printers that used the driver, then remove the driver itself, then re-install all of them.

Unfortunately, it doesn't seem possible to uninstall printers that are assigned via Group Policy: we get "Access Denied", even when logged in as Admins. I can't uninstall that driver so long as any printers are trying to use it.

Short of removing all of the printers from the GPO -- and thereby remove the printers from dozens of machines -- there's no way I can find to remove the defective driver.

What is The Way to troubleshoot printer/print driver issues like this?

Hahahaha here's how I deal with a pesky print driver

quote:

It's happened for the fourth time so I'll explain how to fix it. The
problem had something to do with the driver, because removing it and
reinstalling it fixes the problem. I just updated the driver, so
maybe it won't happen any more, but we'll see.

The driver in question is the HP Universal Print driver. Here's how
to remove it:
1) Delete all the HP printers from their account (REDACTED)
2) From the Start Menu, right click on Manage, and login with the
local administrator account (not your account)
3) In the Start menu, type "print management" and then right click the
print management icon and run as administrator. Again, run with the
local admin, not your account.
4) In Print Management, expand "Print Servers" and then the local
host, and then click on drivers.
5) Find the HP Universal Printing PCL6 driver, right click on it, and
click Remove Driver Package (BUT DON'T CLICK NEXT YET)
6) Find the Print spooler service
7) Here's where it gets tricky. You have to click the Delete button
the on Remove Driver Package immediatly after the Print spooler
starts. Once you click restart, you'll see the bar fill up about 5%
and then empty out again. That mean's it's stopped. Now click the
Delete button the Driver package button. If you didn't do it in time,
try again, until it says the drivers were sucesfully deleted.
8) Open a terminal and run gpupdate, this will add all the printers
again. You may have to set the user's default printer again.

FISHMANPET fucked around with this message at 01:42 on Mar 5, 2013

capitalcomma
Sep 9, 2001

A grim bloody fable, with an unhappy bloody end.

FISHMANPET posted:

Hahahaha here's how I deal with a pesky print driver

See, that's just it, I'm stuck at step 1. I have no clean way of uninstalling these printers: I get "access denied" no matter what account I use.

Are you deploying your printers using the Printer Deployment option, or Group Policy Preferences?

FISHMANPET
Mar 3, 2007

Sweet 'N Sour
Can't
Melt
Steel Beams

Sounder posted:

See, that's just it, I'm stuck at step 1. I have no clean way of uninstalling these printers: I get "access denied" no matter what account I use.

Are you deploying your printers using the Printer Deployment option, or Group Policy Preferences?

These are deployed as a GPO prefernece on Win 7 x64, don't know nothing about no Printer Deployment option :clint:

capitalcomma
Sep 9, 2001

A grim bloody fable, with an unhappy bloody end.

FISHMANPET posted:

These are deployed as a GPO prefernece on Win 7 x64, don't know nothing about no Printer Deployment option :clint:

Well, dammit.

In GPP under Computer Configuration there's no option for connecting to shared printers. That's only an option for GPP under User Configuration. I was hoping to define printers per computer rather than user. Oh well.

Wait, would loopback processing make this possible? Or Item-level targeting?

Answered my own question. Item-Level Targeting looks like just the thing I need.

capitalcomma fucked around with this message at 21:00 on Mar 5, 2013

parasyte
Aug 13, 2003

Nobody wants to die except the suicides. They're no fun.

Sounder posted:

Well, dammit.

In GPP under Computer Configuration there's no option for connecting to shared printers. That's only an option for GPP under User Configuration. I was hoping to define printers per computer rather than user. Oh well.

Wait, would loopback processing make this possible? Or Item-level targeting?

Answered my own question. Item-Level Targeting looks like just the thing I need.

The Moskowitz book includes the solution I ended up with, which is to tag the computers with environment variables, then have user policy apply printers with item-level targeting based on the environment variable. In my case I had separate variables for printers that should be mapped, as well a single extra variable to determine which one should be the default.

peak debt
Mar 11, 2001
b& :(
Nap Ghost

Sounder posted:

How are printer and printer driver issues troubleshot when they're deployed via GPO?

We were dealing earlier today with a workstation that had a corrupted printer driver on it. Previously, when printers were deployed via script, we'd just uninstall any printers that used the driver, then remove the driver itself, then re-install all of them.

Unfortunately, it doesn't seem possible to uninstall printers that are assigned via Group Policy: we get "Access Denied", even when logged in as Admins. I can't uninstall that driver so long as any printers are trying to use it.

Short of removing all of the printers from the GPO -- and thereby remove the printers from dozens of machines -- there's no way I can find to remove the defective driver.

What is The Way to troubleshoot printer/print driver issues like this?

Log in with an account that doesn't have the group policy applied. Then you won't have the printers connected and you can delete the drivers at your leisure.

capitalcomma
Sep 9, 2001

A grim bloody fable, with an unhappy bloody end.

peak debt posted:

Log in with an account that doesn't have the group policy applied. Then you won't have the printers connected and you can delete the drivers at your leisure.

I applied these policies using Computer Configuration, to computer accounts, so any user logging in to them will get them. Tee hee.

I'm pushing these via User Configuration now, things are already running more smoothly.

On a related question, should I expect an unacceptable level of AD lookups if I do item-level targeting in a big printer GPO, that will affect a couple dozen printers and be applied to 200+ users? Would this hotfix mitigate/prevent this? I was hoping to avoid making multiple GPO's with WMI or security filtering, and just put one big printer object in the Users OU, but if it'll bring the Domain Controllers to their knees then I'll split up the load.

capitalcomma fucked around with this message at 21:58 on Mar 8, 2013

capitalcomma
Sep 9, 2001

A grim bloody fable, with an unhappy bloody end.
So, uh, scratch my last question. Somebody made some very bad changes to a GPO today: they removed a bunch of Assigned Applications from the main workstation GPO.

Is there a way to revert changes to GPO's?

Sickening
Jul 16, 2007

Black summer was the best summer.

Sounder posted:

So, uh, scratch my last question. Somebody made some very bad changes to a GPO today: they removed a bunch of Assigned Applications from the main workstation GPO.

Is there a way to revert changes to GPO's?

I would imagine if you are asking this question that your company isn't backing up gpo or doing system state backups.

My condolences.

alanthecat
Dec 19, 2005

I don't know of any way to get back from where you are, but Advanced Group Policy Management for Software Assurance/Enterprise customers might apply for the future.

I want to know is there a way other than scripts for apply drive maps in computer configuration? I know I could use preferences with loopback processing but I'm trying to move as many GPOs to computer configuration so login times will speed up.

FISHMANPET
Mar 3, 2007

Sweet 'N Sour
Can't
Melt
Steel Beams
Drive mappings are per user so I don't really think you can do that at the computer level. Even if you do loopback it still loopbacks to being part of the user environment.

capitalcomma
Sep 9, 2001

A grim bloody fable, with an unhappy bloody end.

alanthecat posted:

I don't know of any way to get back from where you are, but Advanced Group Policy Management for Software Assurance/Enterprise customers might apply for the future.

I want to know is there a way other than scripts for apply drive maps in computer configuration? I know I could use preferences with loopback processing but I'm trying to move as many GPOs to computer configuration so login times will speed up.

Thanks, I will definitely research that.

And I wouldn't look at moving mappings if you're trying to shave time off of the logon process. Look in to shrinking roaming profile size as much as possible: Folder Redirection, blocking certain non-essential folders from roaming (so they'll behave as if they were a local-only profile folder), stuff like that.

EDIT: forgot what thread I was in. Here's the policy that will block replication of roaming profile folders:

User Config -> Policies -> Admin Templates -> System -> User Profiles -> "Exclude Directories in roaming profile"


We applied this to a bunch of folders full of logs from lovely apps that were writing their logs to Appdata\Roaming for some reason (gently caress you, Shoreware).

capitalcomma fucked around with this message at 04:23 on Mar 15, 2013

Thanks Ants
May 21, 2004

#essereFerrari


Is there any reason you're using drive mappings as opposed to pushing shortcuts, using DFS etc? I can't imagine that it's slowing your logins down much anyway, I just thought that drive maps weren't much of a thing any more. Unless you have a lot of users who can handle "save that to the L drive" and not much else.

Thanks Ants fucked around with this message at 00:37 on Mar 15, 2013

Moey
Oct 22, 2010

I LIKE TO MOVE IT

Caged posted:

Is there any reason you're using drive mappings as opposed to pushing shortcuts, using DFS etc? I can't imagine that it's slowing your logins down much anyway, I just thought that drive maps weren't much of a thing any more. Unless you have a lot of users who can handle "save that to the L drive" and not much else.

I have not gotten around to DFS yet but can you explain this a little more? No drive mapping?

FISHMANPET
Mar 3, 2007

Sweet 'N Sour
Can't
Melt
Steel Beams
Yes, I would also like to know more about this brave new world without drive mappings.

Thanks Ants
May 21, 2004

#essereFerrari


Well obviously it depends on your users and what software you have in use and whether it handles UNC paths, but our guys are pretty happy to access files using \\filestore\sharename. If you have people who have known nothing other than saving to a drive then yeah you're going to want to keep them around, but in my experience it can cause more problems that it solves, especially if you have each department share mapping to a drive (so Z:\ is always the root of your depts share for example) and people send links / shortcuts around expecting everyone to be starting at the same point.

Wizard of the Deep
Sep 25, 2005

Another productive workday

Caged posted:

Well obviously it depends on your users and what software you have in use and whether it handles UNC paths, but our guys are pretty happy to access files using \\filestore\sharename. If you have people who have known nothing other than saving to a drive then yeah you're going to want to keep them around, but in my experience it can cause more problems that it solves, especially if you have each department share mapping to a drive (so Z:\ is always the root of your depts share for example) and people send links / shortcuts around expecting everyone to be starting at the same point.

Yea, I'm afraid your reality and mine aren't lining up right now. Thankfully, we're not big enough that having to reuse drive letters is a problem, and we just have the sensitive stuff locked down by groups and permissions.

If we took away drive mappings tomorrow, I'd be out on my rear end by lunchtime. It doesn't really help that we've had mapped drives for the past decade, and that's all upper management will understand.

Swink
Apr 18, 2006
Left Side <--- Many Whelps
Never mind.

Swink fucked around with this message at 07:26 on Mar 19, 2013

Sickening
Jul 16, 2007

Black summer was the best summer.

FISHMANPET posted:

Yes, I would also like to know more about this brave new world without drive mappings.

In a windows 7 environment, you can bypass drive mappings by publishing shortcuts to network shares to the desktop and/or pushing these shortcuts to the windows explorer favorites. A large majority of your users will access these shares by opening windows explorer in one fashion or another and simply looking to the left for the location they need.

The "hump" to get over is that users are already use to referencing these network shares as "L drive" or whatever when they communicate with each other. This can be accommodated by simply naming the shortcut appropriately. The icon will be different however and I can't find a reliable way to make these shortcuts have the drive icon instead of the folder in these situations.

I have only tested this because legacy start-up scripts loving blow. They are slow, buggy, and I am getting the feeling the Microsoft has done something to make them worse over time. Computers booting up in a domain environment will start-up a lot faster by publishing shortcuts instead of using drive mappings when they are essentially the same loving thing and I don't understand it.

There is one final upside of course besides speed too. Getting users use to making shortcuts to things instead of drive mappings has lots of great potential. Those shortcuts simply won't vanish like drive mappings and can actually be transferred a lot easier as well. So any rear end in a top hat that in the past lost that unique drive mapping that nobody else has won't flip his poo poo when it vanishes one day.

Sickening fucked around with this message at 13:50 on Mar 19, 2013

Wizard of the Deep
Sep 25, 2005

Another productive workday
While you can push favorites out, you can handle mapping network drives via GPO, too. No start-up script required. That's what we've done, and startup time has improved perceptibly. Not to mention it doesn't require a 15kb startup script that's an absolute bear to manage.

Speaking of computer GPOs with extensive Item-Level Targetting, I remembered this blog post from a couple of months back: http://sdmsoftware.com/group-policy-preferences/expensive-group-policy-preferences-item-level-targeting/ Specifically, it talks about "expensive" ILT options, one that take exceptionally long to process. It's a company trying to sell you GPO management software, but it's still some handy info.

capitalcomma
Sep 9, 2001

A grim bloody fable, with an unhappy bloody end.

Wizard of the Deep posted:

While you can push favorites out, you can handle mapping network drives via GPO, too. No start-up script required. That's what we've done, and startup time has improved perceptibly. Not to mention it doesn't require a 15kb startup script that's an absolute bear to manage.

Speaking of computer GPOs with extensive Item-Level Targetting, I remembered this blog post from a couple of months back: http://sdmsoftware.com/group-policy-preferences/expensive-group-policy-preferences-item-level-targeting/ Specifically, it talks about "expensive" ILT options, one that take exceptionally long to process. It's a company trying to sell you GPO management software, but it's still some handy info.

That's a good link. I'd love to see more info related to the logistics of Group Policy Preferences in the OP. Stuff like that link and maybe these gpp related hotfixes that fix problems and optimize performance.

Sickening
Jul 16, 2007

Black summer was the best summer.

Sounder posted:

That's a good link. I'd love to see more info related to the logistics of Group Policy Preferences in the OP. Stuff like that link and maybe these gpp related hotfixes that fix problems and optimize performance.

Wouldn't these hotfixes show up in windows updates?

capitalcomma
Sep 9, 2001

A grim bloody fable, with an unhappy bloody end.

madmaan posted:

Wouldn't these hotfixes show up in windows updates?

A lot of these hotfixes are in Microsoft's LDR code branch, meaning "not fit for widespread release". They recommend you only install them if you experience the problem described in the Symptoms section of the hotfix page. As such, they're not yet rolled in to the Windows Update catalog by default. There are a shitload of hotfixes like that: see KB2775511 for a rollup that recently got released, containing 90 such hotfixes.

capitalcomma fucked around with this message at 22:38 on Mar 20, 2013

Sickening
Jul 16, 2007

Black summer was the best summer.

Sounder posted:

A lot of these hotfixes are in Microsoft's LDR code branch, meaning "not fit for widespread release". They recommend you only install them if you experience the problem described in the Symptoms section of the hotfix page. As such, they're not yet rolled in to the Windows Update catalog by default. There are a shitload of hotfixes like that: see KB2775511 for a rollup that recently got released, containing 90 such hotfixes.

How could I not know this after all this time? Jesus.

capitalcomma
Sep 9, 2001

A grim bloody fable, with an unhappy bloody end.

madmaan posted:

How could I not know this after all this time? Jesus.

Meh. While some of these hotfixes are nice, they're not mandatory for keeping your AD or Group Policy infrastructure up and running.

In other news, that GPO I posted about a couple weeks ago? I managed to restore it, but afterward all of the workstations decided that the Assigned Applications in the GPO needed to be re-applied. Is this the expected behavior after a restore?

alanthecat
Dec 19, 2005

Sounder posted:

...afterward all of the workstations decided that the Assigned Applications in the GPO needed to be re-applied.

And shouldn't MSIs just not reinstall if there's no need for a repair? I think I changed some to DFS recently and they reinstalled, though I'm not 100% sure on that.

I've a GPO applying a scheduled task to desktops asking them to wake for a "gpupdate /force" and a "shutdown /r" outside opening hours for software installs. I've seen it work before but it's definitely not worked properly recently. Probably an ACPI setting where some users shut down and others sleep.

Italy's Chicken
Feb 25, 2001

cs is for cheaters

Sounder posted:

See, that's just it, I'm stuck at step 1. I have no clean way of uninstalling these printers: I get "access denied" no matter what account I use.

Are you deploying your printers using the Printer Deployment option, or Group Policy Preferences?
There's a much easier way of removing bad drivers then the timing trick FISHMANPET talks about. Go to "Devices and Printers" and click on anything to highlight it... a printer, even fax or xps writer works. Your buttons in the Device and Printers window will change to reveal one called "Print server properties." This annoyingly hidden window is actually referring to the local machine, not a print server. Click on the tab "Drivers" to reveal every printer driver that's ever been installed on the local machine. The rest is easy to understand (click remove), except that when the actual deletion is done, you might get a message "access is denied" if the files are in use. The driver package is still gone, just reboot and the files will truly be gone from your machine. I have no idea how to automate any of that.

Wizard of the Deep
Sep 25, 2005

Another productive workday

Italy's Chicken posted:

There's a much easier way of removing bad drivers then the timing trick FISHMANPET talks about. Go to "Devices and Printers" and click on anything to highlight it... a printer, even fax or xps writer works. Your buttons in the Device and Printers window will change to reveal one called "Print server properties." This annoyingly hidden window is actually referring to the local machine, not a print server. Click on the tab "Drivers" to reveal every printer driver that's ever been installed on the local machine. The rest is easy to understand (click remove), except that when the actual deletion is done, you might get a message "access is denied" if the files are in use. The driver package is still gone, just reboot and the files will truly be gone from your machine. I have no idea how to automate any of that.

That seems like something Powershell may be able to do, but I'm not sure enough to say anything more than "look to see if Powershell can do that". Granted, you'd have to run it as a startup script, but I think you could do some item-level targeting to make sure it only happens once/as appropriate.

Sickening
Jul 16, 2007

Black summer was the best summer.
Windows 7 network discovery, why are you such a giant piece of poo poo to enable in a windows firewall enabled evironment.

Have any of you gone through the pain of enabling this before? I just fixed it, but you shouldn't have to do so much for one feature.

Erwin
Feb 17, 2006

Is there no group policy setting to reboot machines after they've installed updates? It's kind of annoying to have to manually bounce servers even if they automatically install updates. Everything's virtualized, so it's easy enough to schedule a powershell script to reboot them all weekly, but a) there's no reason to reboot if there weren't updates and b) what if an update takes a really long time and the script reboots the machine in the middle of the update?

Sickening
Jul 16, 2007

Black summer was the best summer.

Erwin posted:

Is there no group policy setting to reboot machines after they've installed updates? It's kind of annoying to have to manually bounce servers even if they automatically install updates. Everything's virtualized, so it's easy enough to schedule a powershell script to reboot them all weekly, but a) there's no reason to reboot if there weren't updates and b) what if an update takes a really long time and the script reboots the machine in the middle of the update?

What kind of environment are you in where server rebooting on their own is no big deal? What you are wanting would be a total nightmare for most and is probably not close to the norm.

I mean you can specify when updates are installed and you could do this during non-production hours for sure, but man, seems like something that would be a nailbiter.

Sickening fucked around with this message at 16:03 on Apr 17, 2013

evil_bunnY
Apr 2, 2003

Pretty sure your script could check for pending reboots instead:

http://gallery.technet.microsoft.com/scriptcenter/Get-PendingReboot-Query-bdb79542

Erwin
Feb 17, 2006

madmaan posted:

What kind of environment are you in where server rebooting on their own is no big deal? What you are wanting would be a total nightmare for most and is probably not close to the norm.

It wouldn't be every server, only test environments, etc. What's the difference between me doing it manually during the evening, or them rebooting themselves after installing updates at 2am on a Sunday?

Adbot
ADBOT LOVES YOU

evil_bunnY
Apr 2, 2003

Erwin posted:

It wouldn't be every server, only test environments, etc. What's the difference between me doing it manually during the evening, or them rebooting themselves after installing updates at 2am on a Sunday?
Depends on your monitoring.

  • Locked thread