<?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/"
	xmlns:creativeCommons="http://backend.userland.com/creativeCommonsRssModule"
>

<channel>
	<title>Techno Chat&#124;Tech Blog!! &#187; printscreen</title>
	<atom:link href="http://technochat.in/tag/printscreen/feed/" rel="self" type="application/rss+xml" />
	<link>http://technochat.in</link>
	<description>Chat with style.. :P</description>
	<lastBuildDate>Mon, 16 Jan 2012 07:34:40 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
<creativeCommons:license>http://creativecommons.org/licenses/by-nc-nd/3.0/us/</creativeCommons:license>
		<item>
		<title>Disable Print Screen Function Via VBS Script (By using GPO Startup/Shutdown Script)</title>
		<link>http://technochat.in/2008/10/disable-print-screen-function-via-vbs-script-by-using-gpo-startupshutdown-script/</link>
		<comments>http://technochat.in/2008/10/disable-print-screen-function-via-vbs-script-by-using-gpo-startupshutdown-script/#comments</comments>
		<pubDate>Wed, 08 Oct 2008 12:48:13 +0000</pubDate>
		<dc:creator>Saugata</dc:creator>
				<category><![CDATA[Scripts]]></category>
		<category><![CDATA[disable print screen]]></category>
		<category><![CDATA[disable print screen on windows]]></category>
		<category><![CDATA[disable print screen on xp]]></category>
		<category><![CDATA[disable print screen via gpo]]></category>
		<category><![CDATA[disable print screen via group policy]]></category>
		<category><![CDATA[printscreen]]></category>

		<guid isPermaLink="false">http://technochat.in/?p=139</guid>
		<description><![CDATA[Another requirement, now customer need to disable default windows Print Screen function on all of their user desktop, So, we started our searching again, and easily we able to find out how to disable print screen on windows by importing following registry. ?View Code REG1 2 3 &#91;HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout&#93; &#34;Scancode Map&#34;=hex:00,00,00,00,00,00,00,00,03,00,00,00,00,00,37,e0,00,00,54,00,\ 00,00,00,00 So, again we [...]]]></description>
			<content:encoded><![CDATA[<p>Another requirement, now customer need to disable default windows Print Screen function on all of their user desktop,<br />
<script type="text/javascript"><!--
google_ad_client = "pub-5716594154118768";
/* 336x280, created 10/9/10 */
google_ad_slot = "6120199345";
google_ad_width = 336;
google_ad_height = 280;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script><br />
So, we started our searching again, and easily we able to find out how to disable print screen on windows by importing following registry.</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p139code4'); return false;">View Code</a> REG</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p1394"><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code" id="p139code4"><pre class="reg" style="font-family:monospace;"><span style="color: #000000;">&#91;</span><span style="color: #800000;">HKEY_LOCAL_MACHINE</span>\SYSTEM\CurrentControlSet\Control\Keyboard Layout<span style="color: #000000;">&#93;</span>
<span style="color: #0000FF;">&quot;Scancode Map&quot;</span><span style="color: #000000;">=</span><span style="">hex:00,00,00,00,00,00,00,00,03,00,00,00,00,00,37,e0,00,00,54,00,\
00,00,00,00</span></pre></td></tr></table></div>

<p>So, again we start working to create a custom adm file. As because this is a HKLM key, so we need Privilege to import it into registry, and only way to do so is to apply some policy via <strong>Computer Configuration</strong>,<strong> </strong>whit which we can force policy on each computer not on individual user.</p>
<p><span style="color: #000000;">But suddenly we discover that </span><strong><span style="color: #ff0000;">ADM files don't support reg_binary values</span></strong>, so we have to find out any other alternatives.</p>
<p><span id="more-139"></span><br />
<script type="text/javascript"><!--
google_ad_client = "pub-5716594154118768";
/* 336x280, created 10/9/10 */
google_ad_slot = "6120199345";
google_ad_width = 336;
google_ad_height = 280;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script><br />
Now we have to create tow <strong>.VBS</strong> file, one for to disable print screen and another for to re-enable print screen,</p>
<p>VBS Script for disable print screen,</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p139code5'); return false;">View Code</a> VB</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p1395"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
</pre></td><td class="code" id="p139code5"><pre class="vb" style="font-family:monospace;"><span style="color: #008000;">'Disable Print Screen Function
</span><span style="color: #000080;">const</span> HKEY_LOCAL_MACHINE = &amp;H80000002
strKeyPath = <span style="color: #800000;">&quot;SYSTEM\ControlSet001\Control\Keyboard Layout&quot;</span>
strComputer = <span style="color: #800000;">&quot;.&quot;</span>
BinaryValueName = <span style="color: #800000;">&quot;Scancode Map&quot;</span>
iValues = Array(&amp;H00,&amp;H00,&amp;H00,&amp;H00,&amp;H00,&amp;H00,&amp;H00,&amp;H00,&amp;H03,&amp;H00,&amp;H00,&amp;H00,&amp;H00,&amp;H00,&amp;H37,&amp;He0,&amp;H00,&amp;H00,&amp;H54,&amp;H00,&amp;H00,&amp;H00,&amp;H00,&amp;H00)
<span style="color: #000080;">Set</span> oReg=GetObject(<span style="color: #800000;">&quot;winmgmts:{impersonationLevel=impersonate}!\\&quot;</span> &amp; strComputer &amp; <span style="color: #800000;">&quot;\root\default:StdRegProv&quot;</span>)
disablePS = oReg.SetBinaryValue(HKEY_LOCAL_MACHINE,strKeyPath,BinaryValueName,iValues)</pre></td></tr></table></div>

<p>VBS Script for re-enable print screen</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p139code6'); return false;">View Code</a> VB</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p1396"><td class="line_numbers"><pre>1
2
3
4
5
6
7
</pre></td><td class="code" id="p139code6"><pre class="vb" style="font-family:monospace;"><span style="color: #008000;">'Re-Enable Print Screen Function
</span><span style="color: #000080;">const</span> HKEY_LOCAL_MACHINE = &amp;H80000002
strKeyPath = <span style="color: #800000;">&quot;SYSTEM\ControlSet001\Control\Keyboard Layout&quot;</span>
strComputer = <span style="color: #800000;">&quot;.&quot;</span> 
strStringValueName = <span style="color: #800000;">&quot;Scancode Map&quot;</span>
<span style="color: #000080;">set</span> objReg = GetObject(<span style="color: #800000;">&quot;winmgmts:\\&quot;</span> &amp; strComputer &amp; <span style="color: #800000;">&quot;\root\default:StdRegProv&quot;</span>)
enablePS = objReg.DeleteValue(HKEY_LOCAL_MACHINE,strKeyPath,strStringValueName)</pre></td></tr></table></div>

<p>Now we can easily implement above two script via GPO by using system Startup/Shutdown script.</p>
<p><a href="http://technochat.in/wp-content/uploads/2008/10/gpscreen.jpg" rel="lightbox[139]"><img class="alignnone size-medium wp-image-140" title="gpscreen" src="http://technochat.in/wp-content/uploads/2008/10/gpscreen-300x195.jpg" alt="" width="300" height="195" /></a></p>
<p>Thanks.. <img src='http://technochat.in/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://technochat.in/2008/10/disable-print-screen-function-via-vbs-script-by-using-gpo-startupshutdown-script/feed/</wfw:commentRss>
		<slash:comments>18</slash:comments>
	<creativeCommons:license>http://creativecommons.org/licenses/by-nc-nd/3.0/us/</creativeCommons:license>
	</item>
	</channel>
</rss>

