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
Naramyth
Jan 22, 2009

Australia cares about cunts. Including this one.

Yaos posted:

As do we and it works exactly as it is supposed to work, however you can't pick and choose what you want to freeze or not freeze; the whole computer is frozen or nothing is frozen. SteadyState let's you log in as an administrator and make changes without turning off SteadyState. SteadyState only works on Windows XP though, while Deep Freeze works on 7.

Now somebody is going to tell me Deep Freeze can do that and it's done it since version 1.

Well there is a thaw space. :v:

And SteadyState has stop being supported, so it is nice to be using software the the developers still care about.

Adbot
ADBOT LOVES YOU

Yaos
Feb 22, 2003

She is a cat of significant gravy.
The version we are using let's you create another partition or something that you can put stuff into without thawing the computer. They have added a ton of stuff to it though since our version.

I just found this software on there.
http://www.faronics.com/enterprise/insight/
Here you go girls and boys, monitor an entire lab from one computer. You can even use your iPhone to do it. Now nobody has to make a thread again asking about software that can do this.

Wiggly
Aug 26, 2000

Number one on the ice, number one in my heart
Fun Shoe
Going back to the last page and the discussion about NICs and FastPort, etc. I was having this same situation on a new machine and remembered this discussion. I tried the first suggestion, which was adding the DisableDHCPMediaSense option to the registry. That solved my immediate problem. But then I was reading further and saw the post about the GpNetworkStartTimeoutPolicyValue option. Is there any opinions on which one is the better option to use? I am in the middle of putting together a new workstation image and would like to apply the appropriate fix ahead of time.

Honey Im Homme
Sep 3, 2009

I'm trying to map printers on terminal services based on the users client.

code:
Dim LeftString, netPrinter
Set Sh = CreateObject("WScript.Shell")
sys = Sh.ExpandEnvironmentStrings("%CLIENTNAME%")
LeftString = Left(sys, 3)
if leftstring = "HP0" OR leftString = "IEC" then
	Set netPrinter = CreateObject("WScript.Network")
	netPrinter.AddWindowsPrinterConnection "\\printserver\printer"
	netPrinter.SetDefaultPrinter("\\printserver\printer")

else
	wscript.echo "Debug, client name: " & sys
end if
When I run this manually in an interactive session, either the printer is mapped correctly or it gives me a popup with the correct client i'm connecting from.

The problem is if I run this script as a GPO login script the printers don't get mapped and every login provides the popup with "Debug, client name: %CLIENTNAME%". Does anyone have any ideas how I can get around this, or an alternative method of mapping printers like this?

Terminal servers are both Server 2008.

FISHMANPET
Mar 3, 2007

Sweet 'N Sour
Can't
Melt
Steel Beams
I'm still stumped by update vs replace for group policy preferences. The help file doesn't really explain the difference. What does update do that replace doesn't, and vice versa. Why would I use one over the other?

Thanks Ants
May 21, 2004

#essereFerrari


I think update only applies if there's already an existing file, replace will put it there if it doesn't already exist.

But I'd rather someone more competent answers

Mierdaan
Sep 14, 2004

Pillbug

Honey Im Homme posted:

The problem is if I run this script as a GPO login script the printers don't get mapped and every login provides the popup with "Debug, client name: %CLIENTNAME%". Does anyone have any ideas how I can get around this, or an alternative method of mapping printers like this?

It sounds like when this is run via a GPO it's not converting the %CLIENTNAME% environment variable into a real value? See this article on pulling the local machine name with WMI.

BangersInMyKnickers
Nov 3, 2004

I have a thing for courageous dongles

Caged posted:

I think update only applies if there's already an existing file, replace will put it there if it doesn't already exist.

But I'd rather someone more competent answers

Other way around. Replace will modify value data only if the specified registry value is already present, update will create the registry value if it isn't present and assign it the specified data.

E: I said that for registry keys, but the same concept applies for files.

ZeitGeits
Jun 20, 2006
Too much time....

Honey Im Homme posted:

I'm trying to map printers on terminal services based on the users client.

code:
Dim LeftString, netPrinter
Set Sh = CreateObject("WScript.Shell")
sys = Sh.ExpandEnvironmentStrings("%CLIENTNAME%")
LeftString = Left(sys, 3)
if leftstring = "HP0" OR leftString = "IEC" then
	Set netPrinter = CreateObject("WScript.Network")
	netPrinter.AddWindowsPrinterConnection "\\printserver\printer"
	netPrinter.SetDefaultPrinter("\\printserver\printer")

else
	wscript.echo "Debug, client name: " & sys
end if
When I run this manually in an interactive session, either the printer is mapped correctly or it gives me a popup with the correct client i'm connecting from.

The problem is if I run this script as a GPO login script the printers don't get mapped and every login provides the popup with "Debug, client name: %CLIENTNAME%". Does anyone have any ideas how I can get around this, or an alternative method of mapping printers like this?

Terminal servers are both Server 2008.

Isn't VBScript case sensitive? You're checking the variable leftstring for a value, although you wrote to the variable Leftstring. If your script also includes "On Error Resume Next" that might explain the behaviour. You also might want to change the line in the if clause to "... & Leftstring"

Nvm: I'm an idiot. Try inserting a pause (100ms) at the beginning of the script.

ZeitGeits fucked around with this message at 15:32 on Oct 20, 2011

FISHMANPET
Mar 3, 2007

Sweet 'N Sour
Can't
Melt
Steel Beams

BangersInMyKnickers posted:

Other way around. Replace will modify value data only if the specified registry value is already present, update will create the registry value if it isn't present and assign it the specified data.

E: I said that for registry keys, but the same concept applies for files.

Replace will create it if it doesn't exist. According to the help, update will change only what's defined in the setting, and replace will delete and recreate every time.

Where I got confused is with printer and driver letter mappings. Should I be updating or replacing? I was replacing printers, but someone told me that every time she logs on her default printer gets reset (even though none of the printers in the preference have set as default enabled). So I changed them to update, and we'll see how that goes.

BangersInMyKnickers
Nov 3, 2004

I have a thing for courageous dongles

Looks like we're both a little bit wrong:

http://blogs.technet.com/b/grouppol...-windows-7.aspx

quote:

Replace – Remove whatever drive mapping exists for this share, and create a new one with these settings. If there isn’t one, just create it. No matter what, you’re getting this drive mapping, whether something existed there or not. It’s very insistent, like the bully of the CRUD options, so it gets a Red icon.

Update – Yellow – If that drive mapping exists, it will be updated with the settings specified here. If there are other settings associated with the drive mapping that aren’t specified here, they will be maintained. If no drive mapping exists for this share, create it. Nothing gets blasted away like with the Replace setting, but there is still a chance that you’ll overwrite something, so it gets a Yellow icon (warning! make sure you know what you’re going to be over-writing!).

That's for drive mappings though. I wouldn't be surprised if the behavior differs for what you are targeting. Feel free to hit F1 in the editor. The help files are pretty good in this case.

Another way you could potentially fix the problem with user settings getting cleaned out is by setting the policy preference to only apply once, but I agree that update is generally the best solution regardless. I can't think of the last time I used replace.

BangersInMyKnickers fucked around with this message at 15:44 on Oct 20, 2011

IT Guy
Jan 12, 2010

You people drink like you don't want to live!
I've decided to use UAC to control what a user can and cannot do on their machine. It works great as they can't touch anything on the computer that isn't per-user.

However, I've noticed I can open regedit on Windows XP still. I can't change anything in HKLM which is fine, but the user can still edit HKCU. Basically my question is, is this a problem, can they do any damage in the HKCU?

Second question, can you change the default home page for IE but still allow a user to change it? I hate having MSN as the default home page for a new user profile but any setting I've found in the GPOs seems to force the homepage and not allow it to be changed.

BangersInMyKnickers
Nov 3, 2004

I have a thing for courageous dongles

User policy settings get stored in the HKCU hive, so they could potentially override or modify those settings until a policy refresh if they knew what they were doing. But user policies are primarily for ease of use and not so much security, so they'd only be shooting themselves in the foot by doing it. If you're still worried, you could always throw in a software restriction policy to stop them from launching regedit.

As for the homepage, unfortunately standard group policies are not good at one shot applications like that. Your best bet is to configure a default new user profile with the settings you want and then give that out to people. If you've already deployed and it's too late for that, you could either set up a schedule task for users that executes a registry merge to change the homepage and then deletes itself after executing or use the group policy extensions to configure IE homepages and then use the advanced options to mark that policy to only apply once.

IT Guy
Jan 12, 2010

You people drink like you don't want to live!

BangersInMyKnickers posted:

:words:

Awesome, thanks.

Mierdaan
Sep 14, 2004

Pillbug
Can't you set an initial homepage with a preference item for your given version of IE?

Gyshall
Feb 24, 2009

Had a couple of drinks.
Saw a couple of things.
I've been working for a firm that has been very old school in the way that they have set up networks in the past (using VB scripts, Logon scripts only) and I have just recently turned them onto the magic that is group policy.

I'm in charge of a brand new Server 2008 R2 deployment, and I'm already doing some cool things like -

- Removing the stupid Internet Explorer "Run Once" setup thing
- Deploying 7zip to each machine
- Installing the firewall single sign on client on every machine by default
- Deploying printers/shared drives

What else should I look at doing? I already have a blank slate as far the network goes, and I'm under no real pressure to get it up and running any time soon (the company deploys in January.)

I've got different levels of users set up with different permissions, but is there anything else sweet I could be doing?

FISHMANPET
Mar 3, 2007

Sweet 'N Sour
Can't
Melt
Steel Beams

IT Guy posted:

I've decided to use UAC to control what a user can and cannot do on their machine. It works great as they can't touch anything on the computer that isn't per-user.

However, I've noticed I can open regedit on Windows XP still. I can't change anything in HKLM which is fine, but the user can still edit HKCU. Basically my question is, is this a problem, can they do any damage in the HKCU?

Second question, can you change the default home page for IE but still allow a user to change it? I hate having MSN as the default home page for a new user profile but any setting I've found in the GPOs seems to force the homepage and not allow it to be changed.

In my IE settings I used Computer > Policies > Admin Templates > Windows Components > Internet Explorer and set "Prevent performance of First Run Settings" to enabled and chose "Go directly to home page"

Then in User > Policies > Windows Settings > Internet Explorer Maintenance (Preference Mode) > URLs > Important URLs I set Home page. That applies the setting but lets users change it.

BangersInMyKnickers
Nov 3, 2004

I have a thing for courageous dongles

Gyshall posted:

I've been working for a firm that has been very old school in the way that they have set up networks in the past (using VB scripts, Logon scripts only) and I have just recently turned them onto the magic that is group policy.

I'm in charge of a brand new Server 2008 R2 deployment, and I'm already doing some cool things like -

- Removing the stupid Internet Explorer "Run Once" setup thing
- Deploying 7zip to each machine
- Installing the firewall single sign on client on every machine by default
- Deploying printers/shared drives

What else should I look at doing? I already have a blank slate as far the network goes, and I'm under no real pressure to get it up and running any time soon (the company deploys in January.)

I've got different levels of users set up with different permissions, but is there anything else sweet I could be doing?
Password complexity, expiration, and lockout policies are always a good idea if management will go for it. You could also enforce things like a blank or company screen saver that locks sessions after a timeout you specify, or enforce the monitor sleep timeout on Vista/Win7 clients. You might also want to tweak the security settings to disable saving of LanManager hashes along with the NTLM ones by default. XP/2003 does this but everything after stopped that behavior. It will stop 9x clients from talking to NT based stuff on the network, but hopefully you don't have any of that. You might also want to force all hash exchanges to be negotiate with NTLMv2 without being able to negotiate down to a lower protocol. Everything since NT4SP4 supports it so compatibility will likely not be a problem.

odd2k
Jul 18, 2006
I DIDN'T CONTRIBUTE ANYTHING BUT A SHITTY POST SO I GOT THIS SHITTY CUSTOM TITLE!
How do I deny policies with user-settings from running on certain computer objects?

We are in the process of replacing our Novell domain with a Windows one, and have set up some policies for our users. Thing is, their AD users are also used to log into various terminal servers that host completely unrelated stuff. Right now, when a user logs onto a terminal server in the same domain, it tries to do undesired things like mapping up the user's printers. Because the server typically does not have the required drivers, the logon process will hang while attempting to map the printers.

I've tried denying the servers in the security filtering for the affected policies, but it doesn't seem to be working. Am I right in assuming that denying a machine from a policy will only apply to the machine-specific settings in that policy?

edit: Some coworker mentioned using WMI filtering to filter out the computer names of the terminal servers. Could this be the way to go?

edit2: I think we figured it out. We made an empty GPO with loopback processing set to "replace", and applied it to the terminal servers.

odd2k fucked around with this message at 16:18 on Nov 4, 2011

BangersInMyKnickers
Nov 3, 2004

I have a thing for courageous dongles

I've done something similar with the filter 'select name from Win32_Computersystem where name != "blahblahblah"' so that could be a quick and dirty fix to slap on to your printer policy. Another possible solution would be to create a loopback policy for these terminal servers that completely disables the user's ability to add printers which might then cause the application to silently be denied in a much quicker manner.

capitalcomma
Sep 9, 2001

A grim bloody fable, with an unhappy bloody end.
Apologies if this has already been covered, but is there a way to prevent users from writing to the C drive except for places I want them to write to (My Docs, Desktop)? It looks like, by default, even unprivileged users can create folders in C:\, and that just won't fly in a company where everything MUST be backed up regularly from our file servers.

mute
Jul 17, 2004

Sounder posted:

Apologies if this has already been covered, but is there a way to prevent users from writing to the C drive except for places I want them to write to (My Docs, Desktop)? It looks like, by default, even unprivileged users can create folders in C:\, and that just won't fly in a company where everything MUST be backed up regularly from our file servers.

I've yet to do this with complete success due to many users having local admin, but for a starting point, we do the following:

1. HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Download Directory - set this to what you want the user's default directory to be

2. Admin Templates-> Windows Components -> Hide C drive from explorer (you can restrict access to it as well, but Office will complain.)


This took care of a majority of our issues with this. It doesn't take care of someone going into Docs and Settings/Users and saving in there.

mute fucked around with this message at 07:26 on Nov 6, 2011

BangersInMyKnickers
Nov 3, 2004

I have a thing for courageous dongles

Sounder posted:

Apologies if this has already been covered, but is there a way to prevent users from writing to the C drive except for places I want them to write to (My Docs, Desktop)? It looks like, by default, even unprivileged users can create folders in C:\, and that just won't fly in a company where everything MUST be backed up regularly from our file servers.

All our system images go out the door with removing the special permissions from the root of C: to stop this. If it's too late for you to do that, a system startup script using cacls that replaces the user group special permissions with just read permissions should do the job.

Quebec Bagnet
Apr 28, 2009

mess with the honk
you get the bonk
Lipstick Apathy
Here's a head-scratcher. I'm converting our printer deployments from the XP-style "printer connections" list to preference items and on some machines - but not others in the same OU, with the same GPOs applied - it fails with an error in the event log: "The user '<printer name>' preference item in the 'D230 printer {<guid>}' Group Policy object did not apply because it failed with error code '0x8007000a The environment is incorrect.' This error was suppressed." On the machines with that error, the printer ends up deployed, but not set to default, which is rather important in our environment. Machines that end up with it set to default do not exhibit that error. They are all running Windows 7.

The most useful information I could find online suggested disabling background processing for printer items, and that didn't help.

I can only think of one difference between the machines - they're all locked up with SmartShield (a Deep Freeze-like program) and it's possible that the failing machines got locked up with different versions of the policy already on the system. I don't think that would have any effect though, since the policy is re-downloaded at boot time. At any rate, in my testing, it didn't seem to make a difference if I logged out and logged back in as the same user or a different one, the printer would be present but not default. Any ideas? I'd like to avoid using logon scripts if possible.


edit: Just found an old reference to one of the printers I need to deploy in the default domain policy, under Computer\Windows\Deployed Printers. It didn't show up at all on the DC when I went to edit the GPO :wtc: I had to use a Windows 7 workstation to even find that that setting existed.

Quebec Bagnet fucked around with this message at 03:13 on Nov 9, 2011

quackquackquack
Nov 10, 2002
Check what ADMX files exist on the DC.

Does the DC have Deployed Printers at all when you look at a policy? It only shows up if the print console feature is installed (I think that's what it's called).

Quebec Bagnet
Apr 28, 2009

mess with the honk
you get the bonk
Lipstick Apathy
Yep, adding the print server feature made the deployed printers show up in GP Management. Looks like I had gotten the last settings when I went from the Windows 7 machine, I'll see what the impact is on the clients next time I'm in.

Megiddo
Apr 27, 2004

Unicorns bite, but their bites feel GOOD.
How can I set a script that requires elevated privileges to run on every user logoff on Windows 7, preferably without using domain-applied GPOs (since our central IT overlords control them)?

This needs to run after all users log off a machine, and nearly all users are limited users, so a simple logoff script via GP will not directly work. I've tried creating a Scheduled Task that is set to "run on local disconnect from user session" in the context of an admin account, but I can't get it to fire.

Any ideas?

BangersInMyKnickers
Nov 3, 2004

I have a thing for courageous dongles

Megiddo posted:

How can I set a script that requires elevated privileges to run on every user logoff on Windows 7, preferably without using domain-applied GPOs (since our central IT overlords control them)?

This needs to run after all users log off a machine, and nearly all users are limited users, so a simple logoff script via GP will not directly work. I've tried creating a Scheduled Task that is set to "run on local disconnect from user session" in the context of an admin account, but I can't get it to fire.

Any ideas?

I think you could accomplish it through a scheduled task the executes when it sees the logoff event in the event log, and then making the command execute with an alternative set of credentials that have administrative or system rights, depending on what works in your case.

rotaryfun
Jun 30, 2008

you can be my wingman anytime
I'm attempting to set it so that a users favorites folder gets redirected to the users root folder of the currently redirected documents folder.

When I hit ok to process the change to the policy, I get this message.


Does that mean that it will break the currently working documents redirect or am I reading this incorrectly?

Megiddo
Apr 27, 2004

Unicorns bite, but their bites feel GOOD.

BangersInMyKnickers posted:

I think you could accomplish it through a scheduled task the executes when it sees the logoff event in the event log, and then making the command execute with an alternative set of credentials that have administrative or system rights, depending on what works in your case.
I believe that only Windows Server versions have logoff events - we're trying to do this on Windows 7.

I think we're just going to do a startup script and have our IT overlords add a logoff script GPO that forces a restart on logoff.

StrikerJ
Oct 8, 2001

I have a question regarding when GPO settings gets re-applied. Sorry in advance for the incoherent writing.

The computer part of GPOs are initially processed at computer startup and the user part of GPOs at user logon. Then you have the background processing (by default at every 90-120 minutes).

But the background processing will only apply if the GPO itself has been updated by an admin. In this example the GPO is unchanged.

If I locally on a client change or remove a registry key that has been set by GPO, when will the registry key get reset by a GPO refresh?

- At next computer boot (if computer setting)?
- At next user login (if user setting)?
- Never (or until the GPO is changed by an admin?)

(And does it matter if this key is a policy, a group policy preference or an (old school) preference key?)

Also, please disregard the 16 hour mandatory background reset of security settings in this example.

StrikerJ fucked around with this message at 22:47 on Nov 16, 2011

skipdogg
Nov 29, 2004
Resident SRT-4 Expert

StrikerJ posted:

- At next computer boot (if computer setting)?
- At next user login (if user setting)?

So assuming you have permissions to edit those registry keys your GPO is affecting, these would be true.

Unless you did a gpupdate /force on the client machine, that would trigger a reprocessing of the GPO.

Also after digging around on technet there are group policy settings under

Computer Configuration\Administrative Templates\System\Group Policy

you can set on a per extension basis to force it to reprocess every time GP is refreshed.

So enabling the policy in the screenshot below and selecting "process even if the Group Policy objects have not changed" would have the machine re-apply any security policies being pushed by GPO every refresh interval even if they haven't changed on the server.


StrikerJ
Oct 8, 2001

skipdogg posted:

So assuming you have permissions to edit those registry keys your GPO is affecting, these would be true.

Unless you did a gpupdate /force on the client machine, that would trigger a reprocessing of the GPO.

I set some stuff in HKLM\Software\Policies and HKCU\Software\Policies with a GPO (to be specific it was the Windows Update settings and some settings for Office 2010). Then as a local administrator I removed the registry keys with regedit. The settings did not come back after rebooting the computer so they won't be applied again until a gpupdate /force or a change in the GPO.

I wasn't sure that they wouldn't get applied at reboot/relogin so that might be good to know.

Naramyth
Jan 22, 2009

Australia cares about cunts. Including this one.
I have had to reimage and deploy a few computers this week and have had some issues with my GPO software deployments not pushing to the new computers and when I install it by hand on the next reboot the policy triggers and removes the software that was deployed. No errors are being reported to the event viewer. Any idea of what is happening? Do I need to have some version of Firefox/flash/etc. baked into my images before GPO will deploy correctly?

Sickening
Jul 16, 2007

Black summer was the best summer.

Naramyth posted:

I have had to reimage and deploy a few computers this week and have had some issues with my GPO software deployments not pushing to the new computers and when I install it by hand on the next reboot the policy triggers and removes the software that was deployed. No errors are being reported to the event viewer. Any idea of what is happening? Do I need to have some version of Firefox/flash/etc. baked into my images before GPO will deploy correctly?

Did you try gpupdate to the machines before manually installing the apps?

Naramyth
Jan 22, 2009

Australia cares about cunts. Including this one.

madmaan posted:

Did you try gpupdate to the machines before manually installing the apps?

Yeah. The machines display each software install for a second or so with verbose logins selected, it just doesn't actually deploy the software. The Event Viewer shows software install start and end for each one but they are events that show up are on the same second.

Sickening
Jul 16, 2007

Black summer was the best summer.

Naramyth posted:

Yeah. The machines display each software install for a second or so with verbose logins selected, it just doesn't actually deploy the software. The Event Viewer shows software install start and end for each one but they are events that show up are on the same second.

Have you changed your imaging process at all? Is the software deployment locations still fully available to the users who login?

Naramyth
Jan 22, 2009

Australia cares about cunts. Including this one.

madmaan posted:

Have you changed your imaging process at all? Is the software deployment locations still fully available to the users who login?

We split the network into two different address pools over the summer to remove the public machines from the staff IP pool but the problem I am having is with staff machines(whose network didn't change). However, I am still able to access the share from the computers I am having issue with and the computers that are currently deployed get their Java/Flash/whatever updates as expected.

Swink
Apr 18, 2006
Left Side <--- Many Whelps
Which runs first, a User GPO login script, or a script in the startup directory?

Adbot
ADBOT LOVES YOU

Quebec Bagnet
Apr 28, 2009

mess with the honk
you get the bonk
Lipstick Apathy

Swink posted:

Which runs first, a User GPO login script, or a script in the startup directory?

As in the Start Menu directory? Pretty sure the GP scripts run as part of GP application and therefore are executed before Explorer is started, but depending on how long GP processing takes, they could be still be running by the time Explorer is done with the Startup directory. Remember that you can change the order of execution of GP scripts and of processing the GPOs themselves.

  • Locked thread