<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Elvenhome eller no &#187; VBscript</title>
	<atom:link href="http://elvenhome.no/category/vbscript/feed" rel="self" type="application/rss+xml" />
	<link>http://elvenhome.no</link>
	<description>tulletanker i tulleverden</description>
	<lastBuildDate>Mon, 31 Oct 2011 14:25:25 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1</generator>
		<item>
		<title>fileupdater.vbs</title>
		<link>http://elvenhome.no/fileupdatervbs</link>
		<comments>http://elvenhome.no/fileupdatervbs#comments</comments>
		<pubDate>Mon, 30 Mar 2009 18:21:06 +0000</pubDate>
		<dc:creator>gilrim</dc:creator>
				<category><![CDATA[Active Directory]]></category>
		<category><![CDATA[Group Policies]]></category>
		<category><![CDATA[VBscript]]></category>

		<guid isPermaLink="false">http://elvenhome.no/?p=59</guid>
		<description><![CDATA[I mentioned earlier that I&#8217;m using a loginscript to sync the pac files to the local drive, but didn&#8217;t upload it at the time. Here it is anyhow &#8211; it&#8217;s probably not the most elegant solution, nor the one with &#8230; <a href="http://elvenhome.no/fileupdatervbs">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><img class="ngg-singlepic ngg-right alignright" src="http://elvenhome.no/wp/wp-content/gallery/screencaps/localproxypac.png" alt="localproxypac.png" width="384" height="332" /><br />
I mentioned earlier that I&#8217;m using a loginscript to sync the pac files to the local drive, but didn&#8217;t upload it at the time. Here it is anyhow &#8211; it&#8217;s probably not the most elegant solution, nor the one with least code; but it works for me. Used with a GPO that sets the path locally, it&#8217;s a fairly flexible way of controlling internet access.</p>
<p>Basically, you call it like this:</p>
<p>fileupdater.vbs /i:input.txt /o:target.txt</p>
<p>The locations can be anything the vbScript FileSystemObject is able of accessing with the credentials running it &#8211; both local drives and unc-paths.</p>
<p><a href="http://elvenhome.no/wp/wp-content/uploads/2009/03/fileupdater.vbs">fileupdater.vbs</a><br />
I also use the script to push any changes in the PAC file into the netlogon directory (runas domain admin):</p>
<pre>C:\scripting&gt;fileupdater.vbs /v /i:C:\conf\proxy.pac /o:\\%USERDNSDOMAIN%\netlogon\proxypriv.pac
Microsoft (R) Windows Script Host Version 5.7
Copyright (C) Microsoft Corporation. All rights reserved.

output file created: 27.03.2009 11:04:17 modified: 27.03.2009 11:17:15
input file created: 16.12.2008 03:24:19 modified: 28.03.2009 14:54:51
updating file</pre>
]]></content:encoded>
			<wfw:commentRss>http://elvenhome.no/fileupdatervbs/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

