[gptalk] Re: Start-Up Script policy

  • From: "Steve Rochford" <Steve.Rochford@xxxxxxxxxx>
  • To: <gptalk@xxxxxxxxxxxxx>
  • Date: Mon, 3 Mar 2008 21:55:43 -0000

If this is machine startup then it won't work - proxy settings are user
specific so need to be set by a logon script rather than a startup
script.

 

Not sure if that's going to work as a local policy but I must admit that
I've never tried J

 

Can you use automatic configuration for the proxy - probably easier to
get working

 

Steve

 

From: gptalk-bounce@xxxxxxxxxxxxx [mailto:gptalk-bounce@xxxxxxxxxxxxx]
On Behalf Of Shane Williford
Sent: 03 March 2008 21:33
To: gptalk@xxxxxxxxxxxxx
Subject: [gptalk] Re: Start-Up Script policy

 

I'm pinging a computer on our domain. If the ping succeeds the script
ends; if it fails, I want to run a reg file that disables proxy
settings. I know it didn't run because I checked my proxy settings in IE
and they were enabled. I want them (through my reg file) to be disabled.
This method is how I'm resolving disabling proxy settings for my laptop
users who need to connect to the Internet while not at work.

 

This is the batch file I created:

 

@echo off

 

ping dns1.mazuma.org

 

if errorlevel 1 goto disableIEProxy

 

goto done

 

:disableIEProxy

REGEDIT /S "C:\Support\DisableIEProxy.reg"

 

:done

 

I think my problem is that the cmd box is displaying (or wants to). When
I run the batch file by itself, it works, but displays the cmd window. I
can run the reg file silently, but how do I configure the "ping" part of
my file to run silently. Oh, btw, if you haven't figured it out, I'm a
neophyte scripter. J

 

Any assistance in my scripting inabilities is very much welcomed.

 

Thanks guys!

Shane

 

 

________________________________

From: gptalk-bounce@xxxxxxxxxxxxx [mailto:gptalk-bounce@xxxxxxxxxxxxx]
On Behalf Of Jakob H. Heidelberg
Sent: Monday, March 03, 2008 3:12 PM
To: gptalk@xxxxxxxxxxxxx
Subject: [gptalk] Re: Start-Up Script policy

 

And how about security/share permissions - did you make sure to add
"Authenticated Users" or "Domain Computers" to the NTFS & share
permissions (assuming you are running the script from a network
location).

 

Remember the credentials used are "SYSTEM" - which is the same as
running in "computer context"... Could this be the problem?

 

 

/Jakob H. Heidelberg

 

From: gptalk-bounce@xxxxxxxxxxxxx [mailto:gptalk-bounce@xxxxxxxxxxxxx]
On Behalf Of Nelson, Jamie R
Sent: 3. marts 2008 21:39
To: gptalk@xxxxxxxxxxxxx
Subject: [gptalk] Re: Start-Up Script policy

 

How do you know it didn't run? What is the script trying to do?

 

Jamie Nelson | Systems Engineer | Systems Support, Information
Technology | I N T E G R I S Health | Phone 405.552.0903 | Fax
405.553.5687 | http://www.integrisok.com <http://www.integrisok.com/> 

 

From: gptalk-bounce@xxxxxxxxxxxxx [mailto:gptalk-bounce@xxxxxxxxxxxxx]
On Behalf Of Shane Williford
Sent: Monday, March 03, 2008 2:36 PM
To: gptalk@xxxxxxxxxxxxx
Subject: [gptalk] Re: Start-Up Script policy

 

Hmm...that's what I thought, but it didn't work. The batch file works,
but it didn't 'run' when I added it as a start-up script in the Local
Security Policy....hmm....back to the drawing board. J

 

Thanks Jamie!

 

________________________________

From: gptalk-bounce@xxxxxxxxxxxxx [mailto:gptalk-bounce@xxxxxxxxxxxxx]
On Behalf Of Nelson, Jamie R
Sent: Monday, March 03, 2008 2:33 PM
To: gptalk@xxxxxxxxxxxxx
Subject: [gptalk] Re: Start-Up Script policy

 

Should work with any standard executable script (.bat, .cmd, .vbs, etc.)

 

Jamie Nelson | Systems Engineer | Systems Support, Information
Technology | I N T E G R I S Health | Phone 405.552.0903 | Fax
405.553.5687 | http://www.integrisok.com <http://www.integrisok.com/> 

 

From: gptalk-bounce@xxxxxxxxxxxxx [mailto:gptalk-bounce@xxxxxxxxxxxxx]
On Behalf Of Shane Williford
Sent: Monday, March 03, 2008 2:24 PM
To: gptalk@xxxxxxxxxxxxx
Subject: [gptalk] Start-Up Script policy

 

I created a start-up script to check if my computers are on the domain
and want to add-it to the Local Policy. Does Start-Up scripting policy
area only work with VBS files? The one I created is a batch file.


Thanks!

 

Shane M. Williford

Systems Administrator

MCSE, MCSA Sec, Sec+, Net+, A+

Mazuma Credit Union

shane.williford@xxxxxxxxxx

816-361-4194 x6012

 

Notice: The information transmitted in this e-mail may contain
confidential and/or legally privileged information intended only for the
use of the individual(s) named above. Review, use, disclosure,
distribution, or forwarding of this information by persons or entities
other than the intended recipient(s) is prohibited by law and may
subject them to criminal or civil liabilities. Statements and opinion
expressed in this e-mail may not represent those of Mazuma Credit Union.
All e-mail communications through Mazuma's corporate email system are
subject to archiving and review by someone other than the recipient. If
you have received this communication in error, please notify the sender
immediately and delete/destroy any and all copies of the original
message from any computer or network system. 

________________________________

This e-mail may contain identifiable health information that is subject
to protection under state and federal law. This information is intended
to be for the use of the individual named above. If you are not the
intended recipient, be aware that any disclosure, copying, distribution
or use of the contents of this information is prohibited and may be
punishable by law. If you have received this electronic transmission in
error, please notify us immediately by electronic mail (reply).

 

________________________________

This e-mail may contain identifiable health information that is subject
to protection under state and federal law. This information is intended
to be for the use of the individual named above. If you are not the
intended recipient, be aware that any disclosure, copying, distribution
or use of the contents of this information is prohibited and may be
punishable by law. If you have received this electronic transmission in
error, please notify us immediately by electronic mail (reply).

________________________________

This e-mail may contain identifiable health information that is subject
to protection under state and federal law. This information is intended
to be for the use of the individual named above. If you are not the
intended recipient, be aware that any disclosure, copying, distribution
or use of the contents of this information is prohibited and may be
punishable by law. If you have received this electronic transmission in
error, please notify us immediately by electronic mail (reply).

 

________________________________

This e-mail may contain identifiable health information that is subject
to protection under state and federal law. This information is intended
to be for the use of the individual named above. If you are not the
intended recipient, be aware that any disclosure, copying, distribution
or use of the contents of this information is prohibited and may be
punishable by law. If you have received this electronic transmission in
error, please notify us immediately by electronic mail (reply). 

Other related posts: