<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://powershell.com/cs/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Desktop</title><link>http://powershell.com/cs/media/g/desktop/default.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2008.5 (Build: 30929.2835)</generator><item><title>Get Mapped Printer Information</title><link>http://powershell.com/cs/media/p/16643.aspx</link><pubDate>Mon, 21 May 2012 17:59:10 GMT</pubDate><guid isPermaLink="false">f421715f-7aba-45f0-8a8d-44de5318a3a7:16643</guid><dc:creator>koonz97</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;Purpose:&lt;/p&gt;
&lt;p&gt;This script can be used to collect the mapped network printer information from the users who are logged into the console of the Computer or Computers specified.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Required Modules:&lt;/p&gt;
&lt;p&gt;PSRemoteRegistry, and Active Directory&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Permission Requirements:&lt;/p&gt;
&lt;p&gt;The user account that the script is run with needs to have administrative permissions on the workstations and permission to query Active Directory user accounts.&lt;/p&gt;
&lt;p&gt;The computers firewall if enabled needs to allow it to be pinged, connections to WMI and also Remote Registry.&lt;/p&gt;
&lt;p&gt;A user will need to be logged into the console so their mapped network printer information can be collected.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;How the script functions:&lt;/p&gt;
&lt;p&gt;Create a text file that contains a list of Computer names that you want to get the mapped network printers info for.&lt;/p&gt;
&lt;p&gt;Execute the script and you will be prompted for the path to the text file that contains the list.&lt;/p&gt;
&lt;p&gt;Connectivity will be verified to each of the computers by pinging each of them.&lt;/p&gt;
&lt;p&gt;Via WMI it will check to see which user is logged into the computers that responded to the ping.&lt;/p&gt;
&lt;p&gt;Next it will query Active Directory for the SID of each of the users that were currently logged into one of the active computers polled.&lt;/p&gt;
&lt;p&gt;Using the users SID a Remote Registry query is created to enumerate the list of mapped network printers for the logged on user.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The Log files and CSV file containing the list of mapped printers is located in C:\temp\logs&lt;/p&gt;
&lt;p&gt;FileNames:&lt;/p&gt;
&lt;p&gt;MappedPrinters-(currentdate).csv -- Contains the list of mapped printers.&lt;/p&gt;
&lt;p&gt;NoMappedPrinters-(currentdate).log -- Contains list of users that do not have network printers mapped on their computer.&lt;/p&gt;
&lt;p&gt;NoReply-(currentdate).csv -- Contains list of computers that did not respond to ping.&lt;/p&gt;
&lt;p&gt;NoUsrLoggedIn-(currentdate).log -- Contains list of computers that responded to ping but did not have a user logged into it.&lt;/p&gt;
&lt;p&gt;RemoteRegNotRunning-(currentdate).log -- Contains a list of computers where the Remote Registry service is not running.&lt;/p&gt;
&lt;p&gt;WmiError-(currentdate).log -- If there are computers that it is not able to connect to via wmi it will be listed here.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description><enclosure url="http://powershell.com/cs/cfs-file.ashx/__key/CommunityServer.Components.PostAttachments/00.00.01.66.43/GetMappedNetworkPrinters.ps1" length="9421" type="application/octet-stream" /></item><item><title>Install Multiple MSI files</title><link>http://powershell.com/cs/media/p/15784.aspx</link><pubDate>Wed, 04 Apr 2012 07:23:50 GMT</pubDate><guid isPermaLink="false">f421715f-7aba-45f0-8a8d-44de5318a3a7:15784</guid><dc:creator>Felipe</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;Usage:&lt;/p&gt;
&lt;p&gt;.\InstallMSI.ps1 c:\temp\file1.msi &amp;quot;c:\temp\adobe acrobat\acro.msi&amp;quot; c:\users\admin\file2.msi&lt;/p&gt;
&lt;p&gt;Visit: fbinotto.blogspot.com&lt;/p&gt;</description><enclosure url="http://powershell.com/cs/cfs-file.ashx/__key/CommunityServer.Components.PostAttachments/00.00.01.57.84/InstallMSI.ps1" length="149" type="application/octet-stream" /></item><item><title>Pin Shortcuts to Taskbar</title><link>http://powershell.com/cs/media/p/15280.aspx</link><pubDate>Sun, 11 Mar 2012 20:49:20 GMT</pubDate><guid isPermaLink="false">f421715f-7aba-45f0-8a8d-44de5318a3a7:15280</guid><dc:creator>Gerry Bammert</dc:creator><slash:comments>1</slash:comments><description>&lt;p&gt;&lt;span style="font-family:Courier New;color:#008000;font-size:x-small;"&gt;&lt;span style="font-family:Courier New;color:#008000;font-size:x-small;"&gt;&lt;span style="font-family:Courier New;color:#008000;font-size:x-small;"&gt;
&lt;p&gt;Help ==&amp;gt; Get-Help .\PinIconsToTaskbar.ps1 -Full&lt;br /&gt;The script may be used in it-environments (e.g. at schools), where users work with a&lt;br /&gt;mandatory profile (ntuser.man)&lt;br /&gt;This script pins icons (=shortcuts) to the taskbar.&lt;/p&gt;
&lt;span style="font-family:Courier New;color:#008000;font-size:x-small;"&gt;&lt;span style="font-family:Courier New;color:#008000;font-size:x-small;"&gt;&lt;span style="font-family:Courier New;color:#008000;font-size:x-small;"&gt;
&lt;p&gt;
&lt;p&gt;.NOTES &lt;br /&gt;File Name&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : PinIconsToTaskbar.ps1 &lt;br /&gt;Author&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : Gerry Bammert, 11.03.2012&lt;br /&gt;Prerequisite&amp;nbsp;&amp;nbsp; : PowerShell V2, Windows 7&lt;br /&gt;Copyright 2012 : There&amp;#39;s no copyright, use it,&amp;nbsp;modify it ... and post it back &lt;/p&gt;
&lt;p&gt;
&lt;p&gt;Help ==&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Get-Help .\PinIconsToTaskbar.ps1 -Full&lt;/p&gt;
&lt;p&gt;The script may be used in it-environments (e.g. at schools), where users work with a&lt;br /&gt;mandatory profile (ntuser.man)&lt;br /&gt;&lt;br /&gt;This script pins icons (=shortcuts) to the taskbar.&lt;br /&gt;&lt;br /&gt;There are two mandatory parameters: &amp;lt;PinIconsFolder&amp;gt; &amp;lt;Action verb&amp;gt;&lt;br /&gt;&amp;lt;PinIconsFolder&amp;gt; That&amp;#39;s the folder, where you collect the icons (=shortcuts).&lt;br /&gt;This folder path can be a local path or an unc-path. &lt;br /&gt;This folder might be placed in the user&amp;#39;s homefolder,&lt;br /&gt;so the user could manage the additional icons (=shortcuts) in the taskbar himself.&lt;br /&gt;&amp;lt;Action verb&amp;gt; The verb has to be translated to your language.&lt;br /&gt;english: &amp;quot;Pin to Taskbar&amp;quot;&lt;br /&gt;german: &amp;quot;An Taskleiste anheften&amp;quot;&lt;br /&gt;your language : &amp;quot; ....... &amp;quot;&lt;br /&gt;&lt;br /&gt;You can find the verb in the shortcuts context menu.&lt;br /&gt;Because icons on a network-path can&amp;#39;t be pinned to the taskbar for security reasons,&lt;br /&gt;the script copies the icons to a temporary path: LOCALAPPDATA\PinIcons\*.*&lt;/p&gt;
&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:Courier New;color:#008000;font-size:x-small;"&gt;&lt;span style="font-family:Courier New;color:#008000;font-size:x-small;"&gt;&lt;span style="font-family:Courier New;color:#008000;font-size:x-small;"&gt;
&lt;p&gt;.NOTES &lt;/p&gt;
&lt;p&gt;File Name&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; :&amp;nbsp;PinIconsToTaskbar.ps1 &lt;br /&gt;Author&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; :&amp;nbsp;Gerry Bammert, 11.03.2012&lt;br /&gt;Prerequisite&amp;nbsp;&amp;nbsp; :&amp;nbsp;PowerShell V2, Windows 7&lt;br /&gt;Copyright 2012 : There&amp;#39;s no copyright, use it,&amp;nbsp;modify it, enhance it ... and post it back &lt;/p&gt;
&lt;p&gt;.LINK &lt;/p&gt;
&lt;p&gt;Script is published at:&lt;br /&gt;http://powershell.com/cs/media/default.aspx &lt;/p&gt;
&lt;p&gt;.EXAMPLE &lt;/p&gt;
&lt;p&gt;Example 1&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;PinIconsToTaskbar.ps1 &amp;lt;PinIconsFolder&amp;gt; &amp;lt;Action verb&amp;gt;&lt;br /&gt;==&amp;gt; change the verb to the appropriate version of your language&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;English verbs:&lt;br /&gt;PinIconsToTaskbar.ps1 &amp;quot;\\server1\homes$\$username\PinIconsFolder&amp;quot; &amp;quot;Pin to Taskbar&amp;quot;&lt;br /&gt;PinIconsToTaskbar.ps1 &amp;quot;\\server1\homes$\$username\PinIconsFolder&amp;quot; &amp;quot;Unpin from Taskbar&amp;quot;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;German verbs:&lt;br /&gt;PinIconsToTaskbar.ps1 &amp;quot;\\server1\homes$\$username\PinIconsFolder&amp;quot; &amp;quot;An Taskleiste anheften&amp;quot;&lt;br /&gt;PinIconsToTaskbar.ps1 &amp;quot;\\server1\homes$\$username\PinIconsFolder&amp;quot; &amp;quot;Von Taskleiste l&amp;ouml;sen&amp;quot;&lt;/p&gt;
&lt;p&gt;.EXAMPLE &lt;/p&gt;
&lt;p&gt;Example 2&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;PinIconsToTaskbar.ps1 &amp;lt;PinIconsFolder&amp;gt; &amp;lt;Action Verb&amp;gt;&lt;br /&gt;==&amp;gt; change the verb to the appropriate version of your language&lt;br /&gt;&lt;br /&gt;English verbs:&lt;br /&gt;PinIconsToTaskbar.ps1 &amp;quot;Path to the PinIconsFolder&amp;quot; &amp;quot;Pin to Start Menu&amp;quot;&lt;br /&gt;PinIconsToTaskbar.ps1 &amp;quot;Path to the PinIconsFolder&amp;quot; &amp;quot;Unpin from Start Menu&amp;quot;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;German verbs:&lt;br /&gt;PinIconsToTaskbar.ps1 &amp;quot;Path to the PinIconsFolder&amp;quot; &amp;quot;An Startmen&amp;uuml; anheften&amp;quot;&lt;br /&gt;PinIconsToTaskbar.ps1 &amp;quot;Path to the PinIconsFolder&amp;quot; &amp;quot;Von Startmen&amp;uuml; l&amp;ouml;sen&amp;quot; &lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;/p&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Courier New;color:#008000;font-size:x-small;"&gt;&lt;span style="font-family:Courier New;color:#008000;font-size:x-small;"&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Courier New;color:#008000;font-size:x-small;"&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;/span&gt;&lt;/span&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description><enclosure url="http://powershell.com/cs/cfs-file.ashx/__key/CommunityServer.Components.PostAttachments/00.00.01.52.80/PinIconsToTaskbar.ps1" length="4540" type="application/octet-stream" /></item><item><title>Run and time a script or command in the background </title><link>http://powershell.com/cs/media/p/8742.aspx</link><pubDate>Mon, 20 Dec 2010 07:33:17 GMT</pubDate><guid isPermaLink="false">f421715f-7aba-45f0-8a8d-44de5318a3a7:8742</guid><dc:creator>Carsten Schwartz</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;Running for example release scripts for releasing software, can have a large overhead if you print a lot of info in the console. At the same time you might want to time the relase to see how fast it us. Easy enough you run your command/ps1 file in the background using the start-job commandlet.&lt;/p&gt;
&lt;p&gt;This script uses start-job together with Register-ObjectEvent to be able to time a job running in the background, for example:&lt;/p&gt;
&lt;p&gt;PS &amp;gt;.\RunACommandInTheBackground.ps1 .\MakeRelease.ps1 &lt;a href="https://svnserver:port/svn/OurProduct/trunk"&gt;https://svnserver:port/svn/OurProduct/trunk&lt;/a&gt; 613&lt;br /&gt;Starting .\MakeRelease.ps1 &lt;a href="https://svnserver:port/svn/OurProduct/trunk"&gt;https://svnserver:port/svn/OurProduct/trunk&lt;/a&gt; 613 as Job #1... &lt;br /&gt;PS &amp;gt; Job #1 is finished...&lt;br /&gt;Job Started:&amp;nbsp; 10/29/2010 07:51:34&lt;br /&gt;Job Stopped:&amp;nbsp; 10/29/2010 07:54:39&lt;br /&gt;Time Elapsed: 00:03:05.3862306&lt;br /&gt;PS &amp;gt; Get-Job&lt;br /&gt;PS &amp;gt;&lt;/p&gt;
&lt;p&gt;The script&amp;nbsp; runs a command or powershell script with any number of parameters in the background. The script creates a job runs it and shows start, stop and elapsed time when the job is terminated. The job is also removed from the Job list on termination.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description><enclosure url="http://powershell.com/cs/cfs-file.ashx/__key/CommunityServer.Components.PostAttachments/00.00.00.87.42/RunACommandInTheBackground.ps1" length="2098" type="application/octet-stream" /></item><item><title>Generic Delete Directory Contents</title><link>http://powershell.com/cs/media/p/7571.aspx</link><pubDate>Thu, 09 Sep 2010 19:36:36 GMT</pubDate><guid isPermaLink="false">f421715f-7aba-45f0-8a8d-44de5318a3a7:7571</guid><dc:creator>goodfth</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;This script deletes files from a directory path passed into it as a parameter and excludes some well known directories from being processed. &amp;nbsp;The script also includes some simple logging to a file with the date/time it was executed and what path files were deleted from.&lt;/p&gt;</description><enclosure url="http://powershell.com/cs/cfs-file.ashx/__key/CommunityServer.Components.PostAttachments/00.00.00.75.71/GenericDeleteDirectoryContents.ps1" length="3512" type="application/octet-stream" /></item><item><title>Open DialogBox by using .NET</title><link>http://powershell.com/cs/media/p/637.aspx</link><pubDate>Tue, 23 Dec 2008 15:41:34 GMT</pubDate><guid isPermaLink="false">f421715f-7aba-45f0-8a8d-44de5318a3a7:637</guid><dc:creator>Sylvain LESIRE</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;Next script to open file by using .NET&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;@Thomas Lee: Can&amp;nbsp;you try it on W2k8? Can you tell us if it runs....&lt;/p&gt;</description><enclosure url="http://powershell.com/cs/cfs-file.ashx/__key/CommunityServer.Components.PostAttachments/00.00.00.06.37/OpendialogBox.NET.ps1" length="443" type="application/octet-stream" /></item><item><title>Open DialogBox by using Com Object</title><link>http://powershell.com/cs/media/p/598.aspx</link><pubDate>Mon, 22 Dec 2008 09:52:27 GMT</pubDate><guid isPermaLink="false">f421715f-7aba-45f0-8a8d-44de5318a3a7:598</guid><dc:creator>Sylvain LESIRE</dc:creator><slash:comments>6</slash:comments><description>&lt;p&gt;This script permits to show you how to open a dialog box by using COM Object : &lt;span style="font-size:x-small;color:#800000;font-family:Courier New;"&gt;UserAccounts.CommonDialog&lt;/span&gt;&lt;/p&gt;</description><enclosure url="http://powershell.com/cs/cfs-file.ashx/__key/CommunityServer.Components.PostAttachments/00.00.00.05.98/OpendialogBox.ps1" length="425" type="application/octet-stream" /></item></channel></rss>
