<?xml version='1.0' encoding='UTF-8'?><rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:openSearch="http://a9.com/-/spec/opensearchrss/1.0/" xmlns:blogger="http://schemas.google.com/blogger/2008" xmlns:georss="http://www.georss.org/georss" xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr="http://purl.org/syndication/thread/1.0" version="2.0"><channel><atom:id>tag:blogger.com,1999:blog-8821559813854889014</atom:id><lastBuildDate>Fri, 08 Nov 2024 15:36:10 +0000</lastBuildDate><category>Desktop</category><category>Powershell</category><category>File System</category><category>Active Directory</category><category>How to execute a VBscript</category><category>Printer</category><category>Database</category><category>Exchange server</category><category>Outlook</category><title>VBScript and Powershell Scripts</title><description>Welcome to my Scripting page.  This blog has ready to use VBScript and Powershell scripts either written or collected from various websites around the web</description><link>http://orangescripts.blogspot.com/</link><managingEditor>noreply@blogger.com (Murugappan Chokkalingam)</managingEditor><generator>Blogger</generator><openSearch:totalResults>50</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8821559813854889014.post-7269962376717750077</guid><pubDate>Wed, 28 Sep 2011 17:42:00 +0000</pubDate><atom:updated>2011-09-28T23:12:07.373+05:30</atom:updated><title>Powershell OU Management</title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;I like this post hence pasting it as is from the site&lt;/span&gt;&lt;br /&gt;
&lt;a href=&quot;http://dmitrysotnikov.wordpress.com/2007/05/04/ou-management-with-powershell/&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;http://dmitrysotnikov.wordpress.com/2007/05/04/ou-management-with-powershell/&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Get the list of OUs:&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;
&lt;pre&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;code&gt;PS C:&amp;gt; Get-QADObject -Type OrganizationalUnit&lt;/code&gt;  

&lt;code&gt;Name               Type               DN&lt;/code&gt;
&lt;code&gt;----               ----               --&lt;/code&gt;
&lt;code&gt;Domain Controllers organizationalUnit OU=Domain Controllers,DC=ps64,DC=local&lt;/code&gt;
&lt;code&gt;Microsoft Excha... organizationalUnit OU=Microsoft Exchange Security Groups,DC=ps64,DC=local&lt;/code&gt;&lt;/span&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Create New OU in domain root:&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;
&lt;code&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;PS C:\&amp;gt; New-QADObject -Type organizationalUnit -Name TestOU -ParentContainer ps64.local/&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;
&lt;pre&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;code&gt;Name               Type               DN&lt;/code&gt;
&lt;code&gt;----               ----               --&lt;/code&gt;
&lt;code&gt;TestOU             organizationalUnit OU=TestOU,DC=ps64,DC=local&lt;/code&gt;&lt;/span&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Create 5 test users in the new OU:&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;code&gt;PS C:&amp;gt; 1..5 | ForEach { New-QADUser -ParentContainer ps64.local/TestOU -Name (&quot;TestUser&quot; + $_)}&lt;/code&gt; &lt;/span&gt;&lt;br /&gt;
&lt;pre&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;code&gt;Name               Type               DN&lt;/code&gt;
&lt;code&gt;----               ----               --&lt;/code&gt;
&lt;code&gt;TestUser1          user               CN=TestUser1,OU=TestOU,DC=ps64,DC=local&lt;/code&gt;
&lt;code&gt;TestUser2          user               CN=TestUser2,OU=TestOU,DC=ps64,DC=local&lt;/code&gt;
&lt;code&gt;TestUser3          user               CN=TestUser3,OU=TestOU,DC=ps64,DC=local&lt;/code&gt;
&lt;code&gt;TestUser4          user               CN=TestUser4,OU=TestOU,DC=ps64,DC=local&lt;/code&gt;
&lt;code&gt;TestUser5          user               CN=TestUser5,OU=TestOU,DC=ps64,DC=local&lt;/code&gt;&lt;/span&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Get a list of users in an OU (and all nested OUs):&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;
&lt;code&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;PS C:\&amp;gt; Get-QADUser -SearchRoot ps64.local/TestOU&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;
&lt;pre&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;code&gt;Name               Type               DN&lt;/code&gt;
&lt;code&gt;----               ----               --&lt;/code&gt;
&lt;code&gt;TestUser1          user               CN=TestUser1,OU=TestOU,DC=ps64,DC=local&lt;/code&gt;
&lt;code&gt;TestUser2          user               CN=TestUser2,OU=TestOU,DC=ps64,DC=local&lt;/code&gt;
&lt;code&gt;TestUser3          user               CN=TestUser3,OU=TestOU,DC=ps64,DC=local&lt;/code&gt;
&lt;code&gt;TestUser4          user               CN=TestUser4,OU=TestOU,DC=ps64,DC=local&lt;/code&gt;
&lt;code&gt;TestUser5          user               CN=TestUser5,OU=TestOU,DC=ps64,DC=local&lt;/code&gt;&lt;/span&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Get only users placed directly in the OU (and not in sub-OUs):&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;
&lt;code&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;PS C:\&amp;gt; Get-QADUser -SearchRoot ps64.local/TestOU -SearchScope OneLevel&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;
&lt;pre&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;code&gt;Name               Type               DN&lt;/code&gt;
&lt;code&gt;----               ----               --&lt;/code&gt;
&lt;code&gt;TestUser1          user               CN=TestUser1,OU=TestOU,DC=ps64,DC=local&lt;/code&gt;
&lt;code&gt;TestUser2          user               CN=TestUser2,OU=TestOU,DC=ps64,DC=local&lt;/code&gt;
&lt;code&gt;TestUser3          user               CN=TestUser3,OU=TestOU,DC=ps64,DC=local&lt;/code&gt;
&lt;code&gt;TestUser4          user               CN=TestUser4,OU=TestOU,DC=ps64,DC=local&lt;/code&gt;
&lt;code&gt;TestUser5          user               CN=TestUser5,OU=TestOU,DC=ps64,DC=local&lt;/code&gt;&lt;/span&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Modify all users from an OU:&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;
&lt;code&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;PS C:\&amp;gt; Get-QADUser -SearchRoot ps64.local/TestOU | Set-QADUser -City TestCity&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;code&gt;PS C:&amp;gt; Get-QADUser -SearchRoot ps64.local/TestOU | Format-Table Name, City&lt;/code&gt; &lt;/span&gt;&lt;br /&gt;
&lt;pre&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;code&gt;Name                                                City&lt;/code&gt;
&lt;code&gt;----                                                ----&lt;/code&gt;
&lt;code&gt;TestUser1                                           TestCity&lt;/code&gt;
&lt;code&gt;TestUser2                                           TestCity&lt;/code&gt;
&lt;code&gt;TestUser3                                           TestCity&lt;/code&gt;
&lt;code&gt;TestUser4                                           TestCity&lt;/code&gt;
&lt;code&gt;TestUser5                                           TestCity&lt;/code&gt;&lt;/span&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Get statistics on the number of objects in each OU:&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;
&lt;code&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;PS C:\&amp;gt; Get-QADObject -Type organizationalUnit | foreach { Write-Host $_.Name: (Get-QADObject -SearchRoot $_.DN).Count}&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;code&gt;Domain Controllers : 5&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;Microsoft Exchange Security Groups : 6&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;TestOU : 6&lt;/code&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Get the list of AD objects by OU:&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;
&lt;code&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;PS C:\&amp;gt; Get-QADObject -Type organizationalUnit | foreach { Write-Host ([char]10) $_.Name ([char]10); Get-QADObject -SearchRoot $_.DN }&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;&lt;/code&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;code&gt;Domain Controllers&lt;/code&gt;  

&lt;code&gt;Name               Type               DN&lt;/code&gt;
&lt;code&gt;----               ----               --&lt;/code&gt;
&lt;code&gt;Domain Controllers organizationalUnit OU=Domain Controllers,DC=ps64,DC=local&lt;/code&gt;
&lt;code&gt;SPB9880            computer           CN=SPB9880,OU=Domain Controllers,DC=ps64,DC=local&lt;/code&gt;
&lt;code&gt;RID Set            rIDSet             CN=RID Set,CN=SPB9880,OU=Domain Controllers,DC=ps64,DC=local&lt;/code&gt;
&lt;code&gt;NTFRS Subscript... nTFRSSubscriptions CN=NTFRS Subscriptions,CN=SPB9880,OU=Domain Controllers,DC=ps64,DC=local&lt;/code&gt;
&lt;code&gt;Domain System V... nTFRSSubscriber    CN=Domain System Volume (SYSVOL share),CN=NTFRS Subscriptions,CN=SPB9880,OU=Do...&lt;/code&gt;  

&lt;code&gt;Microsoft Exchange Security Groups&lt;/code&gt;  

&lt;code&gt;Microsoft Excha... organizationalUnit OU=Microsoft Exchange Security Groups,DC=ps64,DC=local&lt;/code&gt;
&lt;code&gt;Exchange Servers   group              CN=Exchange Servers,OU=Microsoft Exchange Security Groups,DC=ps64,DC=local&lt;/code&gt;
&lt;code&gt;Exchange Organi... group              CN=Exchange Organization Administrators,OU=Microsoft Exchange Security Groups,...&lt;/code&gt;
&lt;code&gt;Exchange Recipi... group              CN=Exchange Recipient Administrators,OU=Microsoft Exchange Security Groups,DC=...&lt;/code&gt;
&lt;code&gt;Exchange View-O... group              CN=Exchange View-Only Administrators,OU=Microsoft Exchange Security Groups,DC=...&lt;/code&gt;
&lt;code&gt;ExchangeLegacyI... group              CN=ExchangeLegacyInterop,OU=Microsoft Exchange Security Groups,DC=ps64,DC=local&lt;/code&gt;  

&lt;code&gt;TestOU&lt;/code&gt;  

&lt;code&gt;TestOU             organizationalUnit OU=TestOU,DC=ps64,DC=local&lt;/code&gt;
&lt;code&gt;TestUser1          user               CN=TestUser1,OU=TestOU,DC=ps64,DC=local&lt;/code&gt;
&lt;code&gt;TestUser2          user               CN=TestUser2,OU=TestOU,DC=ps64,DC=local&lt;/code&gt;
&lt;code&gt;TestUser3          user               CN=TestUser3,OU=TestOU,DC=ps64,DC=local&lt;/code&gt;
&lt;code&gt;TestUser4          user               CN=TestUser4,OU=TestOU,DC=ps64,DC=local&lt;/code&gt;
&lt;code&gt;TestUser5          user               CN=TestUser5,OU=TestOU,DC&lt;/code&gt;&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;Please post suggestions to improve this blog.
You can mail me at itmurugappan@hotmail.com&lt;/div&gt;</description><link>http://orangescripts.blogspot.com/2011/09/powershell-ou-management.html</link><author>noreply@blogger.com (Murugappan Chokkalingam)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8821559813854889014.post-9114900889979767148</guid><pubDate>Thu, 07 Jul 2011 22:42:00 +0000</pubDate><atom:updated>2011-07-08T04:12:00.314+05:30</atom:updated><title>Powershell - List All Folders and Subfolders</title><description>&lt;div class=&quot;pscode&quot;&gt;&lt;span style=&quot;color: blue; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;em&gt;dir &lt;span class=&quot;modifier&quot;&gt;-recurse&lt;/span&gt; | &lt;span class=&quot;verbnoun&quot;&gt;Where-Object&lt;/span&gt; { &lt;span class=&quot;var&quot;&gt;$_&lt;/span&gt;.&lt;span class=&quot;method&quot;&gt;PSIsContainer&lt;/span&gt; } | &lt;span class=&quot;verbnoun&quot;&gt;ForEach-Object&lt;/span&gt; { &lt;span class=&quot;var&quot;&gt;$_&lt;/span&gt;.&lt;span class=&quot;method&quot;&gt;FullName&lt;/span&gt; }&lt;/em&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;pscode&quot;&gt;&lt;/div&gt;&lt;div class=&quot;pscode&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;First, you list everything from your current location. To filter out only folders, we then filter for PSIsContainer, a property that is always true for folders. Finally, we output each folders&#39; full path.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Arial;&quot;&gt;From: &lt;a href=&quot;http://powershell.com/cs/blogs/tips/archive/2009/07/22/list-all-folders-and-subfolders.aspx&quot;&gt;http://powershell.com/cs/blogs/tips/archive/2009/07/22/list-all-folders-and-subfolders.aspx&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;Please post suggestions to improve this blog.
You can mail me at itmurugappan@hotmail.com&lt;/div&gt;</description><link>http://orangescripts.blogspot.com/2011/07/powershell-list-all-folders-and.html</link><author>noreply@blogger.com (Murugappan Chokkalingam)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8821559813854889014.post-7312815714023426368</guid><pubDate>Thu, 07 Jul 2011 08:40:00 +0000</pubDate><atom:updated>2011-07-07T14:10:43.009+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">Powershell</category><title>Powershell to get ACLs for folders and subfolders</title><description>&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;I have been searching this for long time. Now i have found out &lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp;&lt;em&gt;&lt;span style=&quot;color: blue;&quot;&gt;dir -recurse | Where-Object { $_.PSIsContainer } | Get-Acl&lt;/span&gt;&lt;/em&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;dir -recurse - Is to get all folders and subfolders&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;$_.PSIsContainer&amp;nbsp; - Is to check whether the object is a directory or a file&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Get-ACL - to get ACLs for folders&lt;/span&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;Please post suggestions to improve this blog.
You can mail me at itmurugappan@hotmail.com&lt;/div&gt;</description><link>http://orangescripts.blogspot.com/2011/07/powershell-to-get-acls-for-folders-and.html</link><author>noreply@blogger.com (Murugappan Chokkalingam)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8821559813854889014.post-3797732102592380422</guid><pubDate>Tue, 14 Jun 2011 10:30:00 +0000</pubDate><atom:updated>2011-09-28T23:13:22.143+05:30</atom:updated><title>Dsquery to find a email address in AD</title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;div style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;i&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;dsquery * domainroot -filter &quot;((proxyaddresses=*domain.com))&quot; -scope subtree -attr displayname&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;* - to Find any object class user,group etc&lt;/div&gt;&lt;div style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;domainroot - Where to search&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;-filter - What to search&lt;/div&gt;&lt;div style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;-scope - At what level base or subtree it has to search&lt;/div&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;-attr - what attributes needs to be displayed with the filtered results &lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;Please post suggestions to improve this blog.
You can mail me at itmurugappan@hotmail.com&lt;/div&gt;</description><link>http://orangescripts.blogspot.com/2011/06/dsquery-to-find-email-address-in-ad.html</link><author>noreply@blogger.com (Murugappan Chokkalingam)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8821559813854889014.post-8258274295645138022</guid><pubDate>Mon, 13 Jun 2011 05:04:00 +0000</pubDate><atom:updated>2011-06-13T10:34:27.532+05:30</atom:updated><title>Enumerate members of a group directly from Active directory custom search</title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;This command will be useful particulerly if you are migrating large number of users to an other exchange server. Add all the members to migrate to this group and enumerate using the below command from dsa.msc, add Homemdb members column. There are other ways (Scripting, powershell etc) but i find this easier.&lt;/div&gt;&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;color: #3d85c6; font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;i&gt;(ObjectClass=User)(&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #3d85c6; font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;wbr&gt;&lt;/wbr&gt;&lt;i&gt;ObjectCategory=Person)(&lt;/i&gt;&lt;wbr&gt;&lt;/wbr&gt;&lt;i&gt;memberOf=CN=TestGroup,OU=&lt;/i&gt;&lt;wbr&gt;&lt;/wbr&gt;&lt;i&gt;Test-Service Acct,dc=,dc=,dc=com)&lt;/i&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/div&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;Dont forget to fill in the DC names :)&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;Please post suggestions to improve this blog.
You can mail me at itmurugappan@hotmail.com&lt;/div&gt;</description><link>http://orangescripts.blogspot.com/2011/06/enumerate-members-of-group-directly.html</link><author>noreply@blogger.com (Murugappan Chokkalingam)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8821559813854889014.post-1883223870704319869</guid><pubDate>Sat, 16 Oct 2010 19:11:00 +0000</pubDate><atom:updated>2010-10-17T11:32:06.213+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">Powershell</category><title>Powershell - Get windows service status on a remote computer</title><description>&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Command to get the remote server service status through powershell is listed below&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: blue;&quot;&gt;Get-service&amp;nbsp; -computername &quot;Servername&quot; -displayname &quot;servicename&quot;&lt;/span&gt;&lt;/i&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;Please post suggestions to improve this blog.
You can mail me at itmurugappan@hotmail.com&lt;/div&gt;</description><link>http://orangescripts.blogspot.com/2010/10/powershell-get-windows-service-status.html</link><author>noreply@blogger.com (Murugappan Chokkalingam)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8821559813854889014.post-3862655871867295298</guid><pubDate>Fri, 15 Oct 2010 19:33:00 +0000</pubDate><atom:updated>2010-10-17T11:33:00.846+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">Powershell</category><title>Powershell to get server uptime</title><description>&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;I dont remember from which site i got the below script but it is very useful in my day to day admin life&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: blue;&quot;&gt;$wmi=Get-WmiObject -class Win32_OperatingSystem -computer &quot;Computername&quot;&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: blue;&quot;&gt;$LBTime=$wmi.ConvertToDateTime($wmi.Lastbootuptime)&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: blue;&quot;&gt;[TimeSpan]$uptime=New-TimeSpan $LBTime $(get-date)&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: blue;&quot;&gt;Write-host $server “Uptime: ” $uptime.days “Days” $uptime.hours “Hours” $uptime.minutes “Minutes” $uptime.seconds “Seconds”&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;b&gt;Get-WmiObject -class Win32_OperatingSystem &lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;This will invoke the Operating System wmi object&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;b&gt;ConvertToDateTime&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Will convert the output to human readable form&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;b&gt;[TimeSpan]$uptime=New-TimeSpan $LBTime $(get-dat&lt;/b&gt;e)&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;This will compare the output time with the current time and store the result to the string as object&lt;/span&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;Please post suggestions to improve this blog.
You can mail me at itmurugappan@hotmail.com&lt;/div&gt;</description><link>http://orangescripts.blogspot.com/2010/10/powershell-to-get-server-uptime.html</link><author>noreply@blogger.com (Murugappan Chokkalingam)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8821559813854889014.post-3394572218301107402</guid><pubDate>Fri, 15 Oct 2010 19:26:00 +0000</pubDate><atom:updated>2010-10-17T11:33:19.068+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">Powershell</category><title>Powershell - Search a string inside a text file</title><description>&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Get-Content cmd let will allow reading content from a text file and the following piped cmdlet can be used to search a string inside the text file given as input&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;i&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: blue;&quot;&gt;(Get-Content &quot;Full path of the text file&quot;) | ? {$_ -match &#39;searchstring&#39;&#39;}&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;Please post suggestions to improve this blog.
You can mail me at itmurugappan@hotmail.com&lt;/div&gt;</description><link>http://orangescripts.blogspot.com/2010/10/powershell-search-string-inside-text_16.html</link><author>noreply@blogger.com (Murugappan Chokkalingam)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8821559813854889014.post-6529586502201480507</guid><pubDate>Fri, 15 Oct 2010 19:10:00 +0000</pubDate><atom:updated>2010-10-17T11:31:28.904+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">Powershell</category><title>Uninstalling Previous Versions of PowerShell</title><description>&lt;p$1&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 10pt; text-align: justify; text-justify: inter-ideograph;&quot;&gt;&lt;p$1&gt;&lt;b&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;Uninstalling Previous Versions of PowerShell&lt;/span&gt;&lt;/b&gt;&lt;/p$1&gt;&lt;/div&gt;&lt;p$1&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 10pt; text-align: justify; text-justify: inter-ideograph;&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;PowerShell v1 RTM shipped as updates to the OS. Therefore, it will show up only in the updates section. To look for previous versions, do the following:&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;p$1&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 10pt; text-align: justify; text-justify: inter-ideograph;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;On Windows XP/Server 2003:&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;p$1&gt;&lt;div class=&quot;MsoNormalCxSpMiddle&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt 1in; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;&quot;&gt;&lt;span style=&quot;font-family: Symbol; font-size: 12pt;&quot;&gt;·&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 7pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;font-family: Times New Roman;&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;Go to Add/Remove Programs&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10pt;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;p$1&gt;&lt;div class=&quot;MsoNormalCxSpMiddle&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt 1in; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;&quot;&gt;&lt;span style=&quot;font-family: Symbol; font-size: 12pt;&quot;&gt;·&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 7pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;font-family: Times New Roman;&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;Select &lt;b&gt;Show Updates&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10pt;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;p$1&gt;&lt;div class=&quot;MsoNormalCxSpMiddle&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt 1in; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;&quot;&gt;&lt;span style=&quot;font-family: Symbol; font-size: 12pt;&quot;&gt;·&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 7pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;font-family: Times New Roman;&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;Look for any of the following KB numbers which indicate earlier versions of PowerShell&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10pt;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;p$1&gt;&lt;div class=&quot;MsoNormalCxSpMiddle&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt 1.5in; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 12pt;&quot;&gt;o&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 7pt;&quot;&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;font-family: Times New Roman;&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;KB926139 – Windows PowerShell v1.0 RTM – English Language Version&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10pt;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;p$1&gt;&lt;div class=&quot;MsoNormalCxSpMiddle&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt 1.5in; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 12pt;&quot;&gt;o&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 7pt;&quot;&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;font-family: Times New Roman;&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;KB926140 – Windows PowerShell v1.0 RTM – Localized Installation Package&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10pt;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;p$1&gt;&lt;div class=&quot;MsoNormalCxSpMiddle&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt 1.5in; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 12pt;&quot;&gt;o&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 7pt;&quot;&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;font-family: Times New Roman;&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;KB926141 – Windows PowerShell v1.0 RTM – MUI pack&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10pt;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;p$1&gt;&lt;div class=&quot;MsoNormalCxSpMiddle&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt 1.5in; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 12pt;&quot;&gt;o&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 7pt;&quot;&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;font-family: Times New Roman;&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;KB925228 – Windows PowerShell v1.0 RC2&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10pt;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;p$1&gt;&lt;div class=&quot;MsoNormalCxSpMiddle&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt 1in; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;&quot;&gt;&lt;span style=&quot;font-family: Symbol; font-size: 12pt;&quot;&gt;·&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 7pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;font-family: Times New Roman;&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;Versions of V1 prior to RC2 are MSI based installations and they will appear as Windows PowerShell in the programs list&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10pt;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;p$1&gt;&lt;div class=&quot;MsoNormalCxSpMiddle&quot; style=&quot;line-height: normal; margin: auto auto auto 1in; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;&quot;&gt;&lt;span style=&quot;font-family: Symbol; font-size: 12pt;&quot;&gt;·&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 7pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;font-family: Times New Roman;&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;Uninstall the previous version that&#39;s installed&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10pt;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;p$1&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 10pt; text-align: justify; text-justify: inter-ideograph;&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;On Windows Vista:&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;p$1&gt;&lt;div class=&quot;MsoNormalCxSpMiddle&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt 1in; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;&quot;&gt;&lt;span style=&quot;font-family: Symbol; font-size: 12pt;&quot;&gt;·&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 7pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;font-family: Times New Roman;&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;Go to Programs and Features&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10pt;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;p$1&gt;&lt;div class=&quot;MsoNormalCxSpMiddle&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt 1in; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;&quot;&gt;&lt;span style=&quot;font-family: Symbol; font-size: 12pt;&quot;&gt;·&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 7pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;font-family: Times New Roman;&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;Click on &lt;b&gt;View Installed Updates&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10pt;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;p$1&gt;&lt;div class=&quot;MsoNormalCxSpMiddle&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt 1in; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;&quot;&gt;&lt;span style=&quot;font-family: Symbol; font-size: 12pt;&quot;&gt;·&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 7pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;font-family: Times New Roman;&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;Look for any of the following KB numbers which indicate earlier versions of PowerShell&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10pt;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;p$1&gt;&lt;div class=&quot;MsoNormalCxSpMiddle&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt 1.5in; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 12pt;&quot;&gt;o&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 7pt;&quot;&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;font-family: Times New Roman;&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;KB928439 – Windows PowerShell 1.0 RTM&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10pt;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;p$1&gt;&lt;div class=&quot;MsoNormalCxSpMiddle&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt 1.5in; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 12pt;&quot;&gt;o&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 7pt;&quot;&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;font-family: Times New Roman;&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;KB923569 – Windows PowerShell 1.0 RC2&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10pt;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;p$1&gt;&lt;div class=&quot;MsoNormalCxSpMiddle&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt 1in; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;&quot;&gt;&lt;span style=&quot;font-family: Symbol; font-size: 12pt;&quot;&gt;·&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 7pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;font-family: Times New Roman;&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;Version of V1 prior to RC2 are MSI based installations and they will appear as Windows PowerShell in the installed programs list&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10pt;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;p$1&gt;&lt;div class=&quot;MsoNormalCxSpMiddle&quot; style=&quot;line-height: normal; margin: auto auto auto 1in; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;&quot;&gt;&lt;span style=&quot;font-family: Symbol; font-size: 12pt;&quot;&gt;·&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 7pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;font-family: Times New Roman;&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;Uninstall the previous version that&#39;s installed&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10pt;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;p$1&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 10pt; text-align: justify; text-justify: inter-ideograph;&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;On Windows Server 2008:&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;p$1&gt;&lt;div class=&quot;MsoNormalCxSpMiddle&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt 1in; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;&quot;&gt;&lt;span style=&quot;font-family: Symbol; font-size: 12pt;&quot;&gt;·&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 7pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;font-family: Times New Roman;&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;Launch &lt;b&gt;Server Manager&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10pt;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;p$1&gt;&lt;div class=&quot;MsoNormalCxSpMiddle&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt 1in; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;&quot;&gt;&lt;span style=&quot;font-family: Symbol; font-size: 12pt;&quot;&gt;·&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 7pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;font-family: Times New Roman;&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;Go to &lt;b&gt;Features&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10pt;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;p$1&gt;&lt;div class=&quot;MsoNormalCxSpMiddle&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt 1in; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;&quot;&gt;&lt;span style=&quot;font-family: Symbol; font-size: 12pt;&quot;&gt;·&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 7pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;font-family: Times New Roman;&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;Click on &lt;b&gt;Uninstall Features&lt;/b&gt;. This brings up a list of installed features to choose from&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;p$1&gt;&lt;div class=&quot;MsoNormalCxSpMiddle&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt 1in; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;&quot;&gt;&lt;p$1&gt;&lt;span style=&quot;font-family: Times New Roman;&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Symbol; font-size: 12pt;&quot;&gt;·&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 7pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;font-family: Times New Roman;&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;Select Windows PowerShell and uninstall &lt;/span&gt;&lt;/span&gt;&lt;/p$1&gt;&lt;/div&gt;&lt;p$1&gt;&lt;div class=&quot;MsoNormalCxSpMiddle&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt 1in; text-align: justify; text-indent: -0.25in; text-justify: inter-ideograph;&quot;&gt;&lt;p$1&gt;&lt;span style=&quot;font-family: Times New Roman;&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&amp;nbsp;&lt;/p$1&gt;&lt;/div&gt;&lt;p$1&gt;&lt;div class=&quot;MsoNormalCxSpMiddle&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt 1in; text-align: left; text-indent: -0.25in; text-justify: inter-ideograph;&quot;&gt;&lt;p$1&gt;&lt;span style=&quot;font-family: Times New Roman;&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Times New Roman;&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;&lt;strong&gt;Article from: &lt;/strong&gt;&lt;a href=&quot;http://blogs.msdn.com/b/powershell/archive/2007/12/17/installing-windows-powershell-v2-ctp.aspx&quot;&gt;&lt;strong&gt;http://blogs.msdn.com/b/powershell/archive/2007/12/17/installing-windows-powershell-v2-ctp.aspx&lt;/strong&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p$1&gt;&lt;/div&gt;&lt;p$1&gt;&lt;/p$1&gt;&lt;/p$1&gt;&lt;/p$1&gt;&lt;/p$1&gt;&lt;/p$1&gt;&lt;/p$1&gt;&lt;/p$1&gt;&lt;/p$1&gt;&lt;/p$1&gt;&lt;/p$1&gt;&lt;/p$1&gt;&lt;/p$1&gt;&lt;/p$1&gt;&lt;/p$1&gt;&lt;/p$1&gt;&lt;/p$1&gt;&lt;/p$1&gt;&lt;/p$1&gt;&lt;/p$1&gt;&lt;/p$1&gt;&lt;/p$1&gt;&lt;/p$1&gt;&lt;/p$1&gt;&lt;/p$1&gt;&lt;/p$1&gt;&lt;/p$1&gt;&lt;/p$1&gt;&lt;/p$1&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;Please post suggestions to improve this blog.
You can mail me at itmurugappan@hotmail.com&lt;/div&gt;</description><link>http://orangescripts.blogspot.com/2010/10/uninstalling-previous-versions-of.html</link><author>noreply@blogger.com (Murugappan Chokkalingam)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8821559813854889014.post-1676017900056463973</guid><pubDate>Fri, 24 Sep 2010 06:18:00 +0000</pubDate><atom:updated>2010-10-17T11:31:28.905+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">Powershell</category><title>Powershell - Get Powershell version</title><description>&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;To get the Powershell version Get-Host cmdlet is used. The following example will show this&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #3333ff;&quot;&gt;&lt;em&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Get-host | Select version&lt;/span&gt;&lt;/em&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #3333ff;&quot;&gt;&lt;em&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/em&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi_MSwK21RbckNvWxyTOVnROlS_POYM42LB4ATViPFnqYCSwRcAYG-8WjARaWYfW88Lj_ztW__ZdcLuhLQxV47kmzI2lMVmFiNe5IJvBieptG1167H3PvDPwyMTWYFR2cVD_EzUyuq9xEhA/s1600/Get-host.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;196&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi_MSwK21RbckNvWxyTOVnROlS_POYM42LB4ATViPFnqYCSwRcAYG-8WjARaWYfW88Lj_ztW__ZdcLuhLQxV47kmzI2lMVmFiNe5IJvBieptG1167H3PvDPwyMTWYFR2cVD_EzUyuq9xEhA/s400/Get-host.PNG&quot; width=&quot;400&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;a href=&quot;http://www.amazon.com/Windows-PowerShell-Administrators-Pocket-Consultant/dp/0735625956?ie=UTF8&amp;amp;tag=vbscr-20&amp;amp;link_code=btl&amp;amp;camp=213689&amp;amp;creative=392969&quot; target=&quot;_blank&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Windows PowerShell 2.0 Administrator&#39;s Pocket Consultant&lt;/span&gt;&lt;/a&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; height=&quot;1&quot; src=&quot;http://www.assoc-amazon.com/e/ir?t=vbscr-20&amp;amp;l=btl&amp;amp;camp=213689&amp;amp;creative=392969&amp;amp;o=1&amp;amp;a=0735625956&quot; style=&quot;border: none !important; margin: 0px !important; padding: 0px !important;&quot; width=&quot;1&quot; /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;Please post suggestions to improve this blog.
You can mail me at itmurugappan@hotmail.com&lt;/div&gt;</description><link>http://orangescripts.blogspot.com/2010/09/powershell-get-powershell-version.html</link><author>noreply@blogger.com (Murugappan Chokkalingam)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi_MSwK21RbckNvWxyTOVnROlS_POYM42LB4ATViPFnqYCSwRcAYG-8WjARaWYfW88Lj_ztW__ZdcLuhLQxV47kmzI2lMVmFiNe5IJvBieptG1167H3PvDPwyMTWYFR2cVD_EzUyuq9xEhA/s72-c/Get-host.PNG" height="72" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8821559813854889014.post-1486612690941515863</guid><pubDate>Fri, 24 Sep 2010 06:15:00 +0000</pubDate><atom:updated>2010-09-24T11:45:31.192+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">Powershell</category><title>Powershell - Retrieve hotfixes installed on a local or remote computer</title><description>&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;To&amp;nbsp;Retrieve&amp;nbsp;hotfix in a computer on a powershell 2.0 version &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;i&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: blue;&quot;&gt;Get-Hotfix -Description security* | Format-Table Hotfixid,InstalledOn&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgpbtWAgjrRjN-qMcB4ykrc9_-u5WxcVw5gKqKEQHtYLh2rxjxfSrOjJZa_HWloSFP86Ma6qGOV3-q-rv-8gKv2hltesOISw8VuTe0FhFNTQOCCFqJ9db9xdi4-C1SsBpmaDuaDwU0MhUC6/s1600/gethotfix.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;291&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgpbtWAgjrRjN-qMcB4ykrc9_-u5WxcVw5gKqKEQHtYLh2rxjxfSrOjJZa_HWloSFP86Ma6qGOV3-q-rv-8gKv2hltesOISw8VuTe0FhFNTQOCCFqJ9db9xdi4-C1SsBpmaDuaDwU0MhUC6/s400/gethotfix.PNG&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&lt;a href=&quot;http://www.amazon.com/Windows-PowerShell-Administrators-Pocket-Consultant/dp/0735625956?ie=UTF8&amp;amp;tag=vbscr-20&amp;amp;link_code=btl&amp;amp;camp=213689&amp;amp;creative=392969&quot; target=&quot;_blank&quot;&gt;Windows PowerShell 2.0 Administrator&#39;s Pocket Consultant&lt;/a&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; height=&quot;1&quot; src=&quot;http://www.assoc-amazon.com/e/ir?t=vbscr-20&amp;amp;l=btl&amp;amp;camp=213689&amp;amp;creative=392969&amp;amp;o=1&amp;amp;a=0735625956&quot; style=&quot;border: none !important; margin: 0px !important; padding: 0px !important;&quot; width=&quot;1&quot; /&gt;&lt;/div&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;Please post suggestions to improve this blog.
You can mail me at itmurugappan@hotmail.com&lt;/div&gt;</description><link>http://orangescripts.blogspot.com/2010/09/powershell-retrieve-hotfixes-installed.html</link><author>noreply@blogger.com (Murugappan Chokkalingam)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgpbtWAgjrRjN-qMcB4ykrc9_-u5WxcVw5gKqKEQHtYLh2rxjxfSrOjJZa_HWloSFP86Ma6qGOV3-q-rv-8gKv2hltesOISw8VuTe0FhFNTQOCCFqJ9db9xdi4-C1SsBpmaDuaDwU0MhUC6/s72-c/gethotfix.PNG" height="72" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8821559813854889014.post-67397213779179230</guid><pubDate>Thu, 23 Sep 2010 10:43:00 +0000</pubDate><atom:updated>2010-09-23T16:15:32.473+05:30</atom:updated><title>Powershell - Find top 10 large files in a disk</title><description>&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: verdana, sans-serif;&quot;&gt;Powershell make it easy to list down the files in a drive by size through a single line command. Buying a third party software can be avoided by these simple commands. The command is&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: verdana, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #3333ff;&quot;&gt;&lt;i&gt;Get-ChildItem c:\ -recurse | sort -property length -desc | select -first 10 &amp;nbsp;| format-table Name, Length -autosize&lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: verdana, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: verdana, sans-serif;&quot;&gt;&lt;b&gt;Get-ChildItem&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: verdana, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: verdana, sans-serif;&quot;&gt;This command will list down the members of the input [ here it is C drive]. Recurse option will search all the folder under the drive mentioned&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: verdana, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: verdana, sans-serif;&quot;&gt;&lt;b&gt;Sort -property length -desc&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: verdana, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: verdana, sans-serif;&quot;&gt;Sort will sort the results with the input provided by Get-Childitem command, it sorts by Size here and desc will tell the sort command to list items in descending order.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: verdana, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: verdana, sans-serif;&quot;&gt;&lt;b&gt;Select -first 10&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: verdana, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: verdana, sans-serif;&quot;&gt;This command will select the first 10 items, if you remove this command it will display all results.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: verdana, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: verdana, sans-serif;&quot;&gt;&lt;b&gt;Format-table Name, Length -autosize&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: verdana, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: verdana, sans-serif;&quot;&gt;Format-table command will format the results and display it as a table and the parameters will display only Name and Length&amp;nbsp;column of the result. -autosize will tell the command to remove unwanted size and display it within the screen limits.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: verdana, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: verdana, sans-serif;&quot;&gt;&lt;a href=&quot;http://www.amazon.com/Windows-PowerShell-2-0-Don-Jones/dp/0982131429?ie=UTF8&amp;amp;tag=vbscr-20&amp;amp;link_code=btl&amp;amp;camp=213689&amp;amp;creative=392969&quot; target=&quot;_blank&quot;&gt;Windows PowerShell 2.0&lt;/a&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; height=&quot;1&quot; src=&quot;http://www.assoc-amazon.com/e/ir?t=vbscr-20&amp;amp;l=btl&amp;amp;camp=213689&amp;amp;creative=392969&amp;amp;o=1&amp;amp;a=0982131429&quot; style=&quot;border: none !important; margin: 0px !important; padding: 0px !important;&quot; width=&quot;1&quot; /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;Please post suggestions to improve this blog.
You can mail me at itmurugappan@hotmail.com&lt;/div&gt;</description><link>http://orangescripts.blogspot.com/2010/09/powershell-find-top-10-large-files-in.html</link><author>noreply@blogger.com (Murugappan Chokkalingam)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8821559813854889014.post-4858208873435718320</guid><pubDate>Wed, 22 Sep 2010 01:06:00 +0000</pubDate><atom:updated>2010-09-22T13:55:02.483+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">Powershell</category><category domain="http://www.blogger.com/atom/ns#">Printer</category><title>Powershell - Setting default printer in the Desktop</title><description>&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: tahoma, sans-serif;&quot;&gt;In Windows 7 setting a default printer through powershell cmdlets is a easier task when compared to VBscript. It can achieved through fewer commands. The commands and their description are given below&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: tahoma, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: tahoma, sans-serif;&quot;&gt;CMDLETS&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: tahoma, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #3366ff;&quot;&gt;&lt;i&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: tahoma, sans-serif;&quot;&gt;$Printer = Get-WmiObject win32_printer &amp;nbsp;| where {$_.name -match &quot;XPS&quot;}&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #3366ff;&quot;&gt;&lt;i&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: tahoma, sans-serif;&quot;&gt;$Printer.SetDefaultPrinter()&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: tahoma, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: tahoma, sans-serif;&quot;&gt;&quot;XPS&quot; in the command can be replaced by your printer name , unique word which will exactly point your printer can be mentioned within the&amp;nbsp;quotations&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: tahoma, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: tahoma, sans-serif;&quot;&gt;&lt;b&gt;win32_Printer&lt;/b&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: tahoma, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: tahoma, sans-serif;&quot;&gt;This WMI class will hold all the printer information in your computer&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: tahoma, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: tahoma, sans-serif;&quot;&gt;&lt;b&gt;SetDefaultPrinter()&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: tahoma, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: tahoma, sans-serif;&quot;&gt;This method inside Win32_Printer will set the selected printer as a default printer&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: tahoma, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: tahoma, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: tahoma, sans-serif;&quot;&gt;&lt;a href=&quot;http://www.amazon.com/Windows-PowerShell-Administrators-Pocket-Consultant/dp/0735625956?ie=UTF8&amp;amp;tag=vbscr-20&amp;amp;link_code=btl&amp;amp;camp=213689&amp;amp;creative=392969&quot; target=&quot;_blank&quot;&gt;Windows PowerShell 2.0 Administrator&#39;s Pocket Consultant&lt;/a&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; height=&quot;1&quot; src=&quot;http://www.assoc-amazon.com/e/ir?t=vbscr-20&amp;amp;l=btl&amp;amp;camp=213689&amp;amp;creative=392969&amp;amp;o=1&amp;amp;a=0735625956&quot; style=&quot;border: none !important; margin: 0px !important; padding: 0px !important;&quot; width=&quot;1&quot; /&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: tahoma, sans-serif;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;Please post suggestions to improve this blog.
You can mail me at itmurugappan@hotmail.com&lt;/div&gt;</description><link>http://orangescripts.blogspot.com/2010/09/powershell-setting-default-printer-in.html</link><author>noreply@blogger.com (Murugappan Chokkalingam)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8821559813854889014.post-1386007728109609908</guid><pubDate>Tue, 21 Sep 2010 06:27:00 +0000</pubDate><atom:updated>2010-09-22T06:34:33.618+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">Powershell</category><title>Powershell - How to check service packs on computers</title><description>&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Service pack of the operating system can found by calling the wmi object &lt;span class=&quot;Apple-style-span&quot; style=&quot;color: blue;&quot;&gt;win32_operatingsystem. &lt;/span&gt;Following commands will enumerate the service pack&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;i&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: blue;&quot;&gt;$SP = gwmi win32_operatingsystem&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: blue;&quot;&gt;$SP.serivepackmajoreversion&lt;/span&gt;&lt;/i&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;Please post suggestions to improve this blog.
You can mail me at itmurugappan@hotmail.com&lt;/div&gt;</description><link>http://orangescripts.blogspot.com/2010/09/powershell-how-to-check-service-packs.html</link><author>noreply@blogger.com (Murugappan Chokkalingam)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8821559813854889014.post-4122096815436005271</guid><pubDate>Mon, 20 Sep 2010 03:17:00 +0000</pubDate><atom:updated>2010-09-22T06:34:33.618+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">Powershell</category><title>Install and Configure Windows PowerShell</title><description>&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt; &lt;/span&gt;&lt;strong&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;1. Install the Windows Management Framework&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;
&lt;div class=&quot;collapsiblePanelContent&quot;&gt;&lt;div class=&quot;section&quot; id=&quot;sectionSection3&quot; xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;&lt;ul&gt;&lt;li&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Download and install the &lt;/span&gt;&lt;a href=&quot;http://go.microsoft.com/fwlink/?LinkId=165726&quot; target=&quot;_blank&quot;&gt;&lt;span style=&quot;color: #3165cd; font-family: Arial, Helvetica, sans-serif;&quot;&gt;Windows Management Framework&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;. Choose the package that includes Windows PowerShell v2 and WinRM 2.0, and that applies to your operating system, system architecture, and language.&lt;br /&gt;
&lt;strong&gt;Note&lt;/strong&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;If your local computer is protected by a Microsoft Internet Security and Acceleration (ISA) server, see &lt;/span&gt;&lt;a href=&quot;http://help.exchangelabs.com/en-us/140/cc875890.aspx&quot;&gt;&lt;span style=&quot;color: #3165cd; font-family: Arial, Helvetica, sans-serif;&quot;&gt;Windows PowerShell: FAQs for Administrators&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;&lt;/div&gt;&lt;a href=&quot;&quot; id=&quot;Step4&quot;&gt;&lt;/a&gt;&lt;div class=&quot;collapsiblePanelContainer&quot; xmlns=&quot;&quot;&gt;&lt;h3 class=&quot;collapsiblePanelHeader&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;2. Verify that Windows PowerShell can run scripts&lt;/span&gt;&lt;/h3&gt;&lt;div class=&quot;collapsiblePanelContent&quot;&gt;&lt;div class=&quot;section&quot; id=&quot;sectionSection4&quot; xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;&lt;ol&gt;&lt;li&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Click Start &amp;gt; All Programs &amp;gt; Accessories &amp;gt; Windows PowerShell.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Do one of the following to open Windows PowerShell:&lt;/span&gt;&lt;ul&gt;&lt;li&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;If you&#39;re running Windows Vista, Windows 7, or Windows Server 2008 R2, right-click Windows PowerShell and select Run as administrator. If you get a user account control prompt that asks if you would like to continue, respond Continue.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;If you&#39;re running Windows XP or Windows Server 2003, click Windows PowerShell.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Run the following command:&lt;/span&gt;&lt;div class=&quot;LW_CodeSnippetContainer&quot; xmlns=&quot;&quot;&gt;&lt;div class=&quot;LW_CodeSnippetContainerCodeCollection&quot;&gt;&lt;div class=&quot;LW_CodeSnippetToolBar&quot;&gt;&lt;span style=&quot;color: blue; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;em&gt;Get-ExecutionPolicy&lt;/em&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;If the value returned is anything other than &lt;code&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;RemoteSigned&lt;/span&gt;&lt;/code&gt;, you need to change the value to &lt;span style=&quot;color: blue;&quot;&gt;&lt;code&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;RemoteSigned&lt;/span&gt;&lt;/code&gt;.&lt;/span&gt;&lt;br /&gt;
&lt;strong&gt;Note&lt;/strong&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;When you set the script execution policy to &lt;code&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;RemoteSigned&lt;/span&gt;&lt;/code&gt;, you can only run scripts that you create on your computer or scripts that are signed by a trusted source.&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;div class=&quot;subSection&quot;&gt;&lt;div class=&quot;collapsiblePanelContainer&quot; xmlns=&quot;&quot;&gt;&lt;h3 class=&quot;collapsiblePanelHeader&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Enable scripts to run in Windows PowerShell&lt;/span&gt;&lt;/h3&gt;&lt;div class=&quot;collapsiblePanelContent&quot;&gt;&lt;div class=&quot;subSection&quot; xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;In Windows PowerShell session you just opened as an administrator, run the following command:&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;LW_CodeSnippetContainer&quot; xmlns=&quot;&quot;&gt;&lt;a href=&quot;&quot; name=&quot;CodeSpippet1&quot;&gt;&lt;/a&gt;&lt;div class=&quot;LW_CodeSnippetContainerCodeCollection&quot;&gt;&lt;div class=&quot;LW_CodeSnippetToolBar&quot;&gt;&lt;div class=&quot;LW_CodeSnippetToolBarText&quot; style=&quot;valign: top;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;em&gt;Set-ExecutionPolicy RemoteSigned&lt;/em&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;Please post suggestions to improve this blog.
You can mail me at itmurugappan@hotmail.com&lt;/div&gt;</description><link>http://orangescripts.blogspot.com/2010/09/install-and-configure-windows.html</link><author>noreply@blogger.com (Murugappan Chokkalingam)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8821559813854889014.post-769146630672660058</guid><pubDate>Thu, 16 Sep 2010 08:32:00 +0000</pubDate><atom:updated>2010-09-16T14:22:00.490+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">Powershell</category><title>The term is not recognized as a cmdlet, function, operable program, or script file. Verify the term and try again.</title><description>You tried to run a command in the current directory but forgot to prepend it with .\&lt;br /&gt;Write the script in notepad , click save as and type &quot;name.ps1&quot;&lt;br /&gt;In the powershell command prompt type PS &gt; .\name.ps1&lt;br /&gt;or&lt;br /&gt;in Run prompt&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;img style=&quot;TEXT-ALIGN: center; MARGIN: 0px auto 10px; WIDTH: 320px; DISPLAY: block; HEIGHT: 172px; CURSOR: hand&quot; id=&quot;BLOGGER_PHOTO_ID_5517430854824108146&quot; border=&quot;0&quot; alt=&quot;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhR5NWKuK7EykIn7dmiSPYXZ-ZkexekYn9CrYpQWvnHmXJEeu6tabx6oYl7ddOP7miMTQg7eOa0V3IUOIjmkhhlLDzRlVZUTSeXYF6844KMft1z878sOUR6aEQo0roERsCb9QQnHSLWoBCI/s320/Powershellrun.PNG&quot; /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjDiSYZ82illIqXx7Fnum9K9zpE0epzAQ3XT5IdZhmaMGhsllKDTuAw-6h3uJQ4jfW0RHmkOYuKw7bbEH8tooeI0gBqqUmIMKBSCTWBGOEC0f2NXi2AsQumDMFBZibEP35iLuo840IwHh68/s1600/Powershellrun.PNG&quot;&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;p align=&quot;left&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjDiSYZ82illIqXx7Fnum9K9zpE0epzAQ3XT5IdZhmaMGhsllKDTuAw-6h3uJQ4jfW0RHmkOYuKw7bbEH8tooeI0gBqqUmIMKBSCTWBGOEC0f2NXi2AsQumDMFBZibEP35iLuo840IwHh68/s1600/Powershellrun.PNG&quot;&gt;&lt;/a&gt;&lt;/p&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;Please post suggestions to improve this blog.
You can mail me at itmurugappan@hotmail.com&lt;/div&gt;</description><link>http://orangescripts.blogspot.com/2010/09/term-is-not-recognized-as-cmdlet.html</link><author>noreply@blogger.com (Murugappan Chokkalingam)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhR5NWKuK7EykIn7dmiSPYXZ-ZkexekYn9CrYpQWvnHmXJEeu6tabx6oYl7ddOP7miMTQg7eOa0V3IUOIjmkhhlLDzRlVZUTSeXYF6844KMft1z878sOUR6aEQo0roERsCb9QQnHSLWoBCI/s72-c/Powershellrun.PNG" height="72" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8821559813854889014.post-1491678554838043990</guid><pubDate>Tue, 30 Oct 2007 15:01:00 +0000</pubDate><atom:updated>2007-10-30T20:33:09.952+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">Active Directory</category><title>VBscript - User Cannot Change Password Option</title><description>Disabling the User Cannot Change Password Option&lt;br /&gt;&lt;br /&gt;Const ADS_ACETYPE_ACCESS_DENIED_OBJECT = &amp;amp;H6&lt;br /&gt;Const CHANGE_PASSWORD_GUID = _&lt;br /&gt;&quot;{ab721a53-1e2f-11d0-9819-00aa0040529b}&quot;&lt;br /&gt;&lt;br /&gt;Set objUser = GetObject _&lt;br /&gt;(&quot;LDAP://cn=myerken,ou=management,dc=fabrikam,dc=com&quot;)&lt;br /&gt;Set objSD = objUser.Get(&quot;nTSecurityDescriptor&quot;)&lt;br /&gt;Set objDACL = objSD.DiscretionaryAcl&lt;br /&gt;arrTrustees = Array(&quot;nt authority\self&quot;, &quot;everyone&quot;)&lt;br /&gt;&lt;br /&gt;For Each strTrustee In arrTrustees&lt;br /&gt;For Each ace In objDACL&lt;br /&gt;If(LCase(ace.Trustee) = strTrustee) Then&lt;br /&gt;If((ace.AceType = ADS_ACETYPE_ACCESS_DENIED_OBJECT) And _&lt;br /&gt;(LCase(ace.ObjectType) = CHANGE_PASSWORD_GUID)) Then&lt;br /&gt;objDACL.RemoveAce ace&lt;br /&gt;End If&lt;br /&gt;End If&lt;br /&gt;Next&lt;br /&gt;Next&lt;br /&gt;&lt;br /&gt;objUser.Put &quot;nTSecurityDescriptor&quot;, objSD&lt;br /&gt;objUser.SetInfo&lt;div class=&quot;blogger-post-footer&quot;&gt;Please post suggestions to improve this blog.
You can mail me at itmurugappan@hotmail.com&lt;/div&gt;</description><link>http://orangescripts.blogspot.com/2007/10/vbscript-user-cannot-change-password.html</link><author>noreply@blogger.com (Murugappan Chokkalingam)</author><thr:total>1</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8821559813854889014.post-909057524654851282</guid><pubDate>Wed, 17 Oct 2007 16:02:00 +0000</pubDate><atom:updated>2007-10-17T21:37:31.982+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">Desktop</category><title>VBScript - List network adapters including wireless adapters</title><description>This script will display all the network adapters including wireless adapters in your workstation.&lt;br /&gt;&lt;br /&gt;&#39;Script Start&lt;br /&gt;&lt;br /&gt;&#39;Call WMI service win32_networkadapter&lt;br /&gt;strComputer = &quot;.&quot;Set objWMIService = GetObject(&quot;winmgmts:\\&quot; &amp;amp; strComputer &amp;amp; &quot;\root\cimv2&quot;)Set colItems = objWMIService.ExecQuery (&quot;Select * from in32_NetworkAdapter&quot;,,48)&lt;br /&gt;&lt;br /&gt;&#39;Display all objects.&lt;br /&gt;For Each objItem in colItems&lt;br /&gt;&lt;br /&gt;WScript.Echo &quot;Name: &quot; &amp;amp; objItem.Name&lt;br /&gt;WScript.Echo &quot;Availability: &quot; &amp;amp; objItem.Availability&lt;br /&gt;&lt;br /&gt;Next&lt;br /&gt;WScript.Quit&lt;br /&gt;&#39;Script End&lt;div class=&quot;blogger-post-footer&quot;&gt;Please post suggestions to improve this blog.
You can mail me at itmurugappan@hotmail.com&lt;/div&gt;</description><link>http://orangescripts.blogspot.com/2007/10/vbscript-list-network-adapters.html</link><author>noreply@blogger.com (Murugappan Chokkalingam)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8821559813854889014.post-1558887783992063909</guid><pubDate>Fri, 12 Oct 2007 14:49:00 +0000</pubDate><atom:updated>2007-10-12T20:21:57.277+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">Desktop</category><title>VBScript - String Arrays</title><description>A small script to explain arrays. While using string array don&#39;t forget double quotes.&lt;br /&gt;&lt;br /&gt;&#39;Script start&lt;br /&gt;&lt;br /&gt;Strservers = array(&quot;EX1&quot;,&quot;EX2&quot;,&quot;EX3&quot;) &lt;br /&gt;For each str in strservers  &#39;To get each object in an array&lt;br /&gt;   wscript.echo str&lt;br /&gt;Next&lt;br /&gt;&lt;br /&gt;&#39;Script end&lt;div class=&quot;blogger-post-footer&quot;&gt;Please post suggestions to improve this blog.
You can mail me at itmurugappan@hotmail.com&lt;/div&gt;</description><link>http://orangescripts.blogspot.com/2007/10/vbscript.html</link><author>noreply@blogger.com (Murugappan Chokkalingam)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8821559813854889014.post-6685968735555674316</guid><pubDate>Wed, 10 Oct 2007 12:09:00 +0000</pubDate><atom:updated>2007-10-19T23:24:56.192+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">Active Directory</category><category domain="http://www.blogger.com/atom/ns#">Exchange server</category><title>Update E-Mail Addresses Based on Recipient Policy - msexchpoliciesexcluded checkbox</title><description>The Recipient Update Service does not update e-mail addresses automatically when the Automatically update e-mail addresses based on recipient policy check box is not selected. That attribute stops the Recipient Update Service from running against the object when this check box is not selected.&lt;br /&gt;The Automatically update e-mail addresses based on recipient policy check box refers to the value of the attribute msExchPoliciesExcluded on the object. If this attribute is not set, it indicates that this check box is selected.&lt;br /&gt;If this value is set to {26491CFC-9E50-4857-861B-0CB8DF22B5D7}, it indicates that the checkbox is not selected.&lt;br /&gt;&lt;br /&gt;The Script finds whether the AD object has &quot;The Automatically update e-mail addresses based on recipient policy&quot; checkbox enabled.&lt;br /&gt;&lt;br /&gt;&#39;Script Start&lt;br /&gt;&lt;br /&gt;Set oConfig = GetObject(&quot;LDAP://You LDAP DOMAIN&quot;)&lt;br /&gt;Set oConn = CreateObject(&quot;ADODB.Connection&quot;)&lt;br /&gt;oConn.Provider = &quot;ADSDSOObject&quot;&lt;br /&gt;oConn.Open &quot;&quot;&lt;br /&gt;strQuery = &quot;&lt;&quot; &amp;amp; oConfig.adspath &amp;amp; &quot;&gt;;(&amp;amp;(objectCategory=person)(objectClass=User)(homemdb=*)(!(msExchPoliciesExcluded={26491CFC-9E50-4857-861B-0CB8DF22B5D7})));name,adspath;subtree&quot;&lt;br /&gt;Set oRS = oConn.Execute(strQuery)&lt;br /&gt;While Not oRS.EOF&lt;br /&gt;user = oRS.Fields(&quot;name&quot;)&lt;br /&gt;&#39;user = User &amp;amp; &quot; &quot; &amp;amp; oRS.Fields(&quot;adspath&quot;)&lt;br /&gt;wscript.echo User&lt;br /&gt;User = &quot; &quot;&lt;br /&gt;oRS.MoveNext&lt;br /&gt;Wend&lt;br /&gt;&lt;br /&gt;&#39;Script end&lt;div class=&quot;blogger-post-footer&quot;&gt;Please post suggestions to improve this blog.
You can mail me at itmurugappan@hotmail.com&lt;/div&gt;</description><link>http://orangescripts.blogspot.com/2007/10/update-e-mail-addresses-based-on.html</link><author>noreply@blogger.com (Murugappan Chokkalingam)</author><thr:total>1</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8821559813854889014.post-138460716698157486</guid><pubDate>Thu, 04 Oct 2007 17:37:00 +0000</pubDate><atom:updated>2007-10-04T23:08:56.500+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">Active Directory</category><title>Vbscript to create Mail enabled Universal groups or distribution lists</title><description>This script &lt;strong&gt;creates Mail enabled Universal groups or distribution lists&lt;/strong&gt; by reading input from a CSV file.&lt;br /&gt;This script is also written to update group owners name and also enables the checkbox &quot;&lt;strong&gt;Manager can update member list&lt;/strong&gt;&quot;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Sample INPUT&lt;br /&gt;universal,Grpname,This is a test grp,Ownername,OU1,OU2,OU3&lt;br /&gt;&#39;Script Start&lt;br /&gt;Const ADS_GROUP_TYPE_GLOBAL = &amp;amp;H2&lt;br /&gt;Const ADS_GROUP_TYPE_LOCAL = &amp;amp;H4&lt;br /&gt;Const ADS_GROUP_TYPE_UNIVERSAL = &amp;amp;H8&lt;br /&gt;Const ADS_ACETYPE_ACCESS_ALLOWED_OBJECT = &amp;amp;h5&lt;br /&gt;Const ADS_FLAG_OBJECT_TYPE_PRESENT = &amp;amp;h1&lt;br /&gt;Const ADS_RIGHT_DS_WRITE_PROP = &amp;amp;h20&lt;br /&gt;Const MEMBER_ATTRIBUTE = &quot;{bf9679c0-0de6-11d0-a285-00aa003049e2}&quot;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Set objConnection2 = CreateObject(&quot;ADODB.Connection&quot;)&lt;br /&gt;Set objCommand2 = CreateObject(&quot;ADODB.Command&quot;)&lt;br /&gt;objConnection2.Provider = &quot;ADsDSOObject&quot;&lt;br /&gt;objConnection2.Open &quot;Active Directory Provider&quot;&lt;br /&gt;Set objCommand2.ActiveConnection = objConnection2&lt;br /&gt;&lt;br /&gt;Set ObjFSO = createobject(&quot;Scripting.FilesystemObject&quot;)&lt;br /&gt;Set ObjTextfile = ObjFSO.Opentextfile(&quot;C:\dlinput.csv&quot;)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Do Until ObjTextfile.AtEndofStream&lt;br /&gt;StrGet = ObjTextfile.ReadLine&lt;br /&gt;StrInput = split(strGet,&quot;,&quot;)&lt;br /&gt;StrLdappath = &quot;LDAP:// YOUR LDAP PATH &quot;&lt;br /&gt;&#39;wscript.echo strLdappath &amp;amp; &quot; &quot; &amp;amp; strInput(1)&lt;br /&gt;Set objOU = GetObject(strLdappath)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Select Case StrInput(0)&lt;br /&gt;Case &quot;universal&quot;&lt;br /&gt;StrGrpName = strInput(1)&lt;br /&gt;Set objGroup = objOU.Create(&quot;Group&quot;, &quot;cn=&quot; &amp;amp; strGrpName )&lt;br /&gt;objGroup.groupType = ADS_GROUP_TYPE_UNIVERSAL&lt;br /&gt;objGroup.SetInfo&lt;br /&gt;case Else&lt;br /&gt;StrGrpName = strInput(1)&lt;br /&gt;Set objGroup = objOU.Create(&quot;Group&quot;, &quot;cn=&quot; &amp;amp; strGrpName )&lt;br /&gt;objGroup.groupType = ADS_GROUP_TYPE_UNIVERSAL&lt;br /&gt;objGroup.SetInfo&lt;br /&gt;&lt;br /&gt;End Select&lt;br /&gt;&lt;br /&gt;objGroup.sAMAccountName = Right (strInput(1),Len(StrInput(1))-1)&lt;br /&gt;objGroup.SetInfo&lt;br /&gt;objGroup.description = strInput(2)&lt;br /&gt;objGroup.SetInfo&lt;br /&gt;&#39;wscript.echo strGrpName &amp;amp; &quot;@&quot; &amp;amp; strInput(6) &amp;amp; &quot;.yourdomain.com&quot;&lt;br /&gt;objGroup.mail = strGrpName &amp;amp; &quot;@&quot; &amp;amp; strInput(6) &amp;amp; &quot;.yourdomain.com&quot;&lt;br /&gt;objGroup.MailEnable&lt;br /&gt;objGroup.Put &quot;ProxyAddresses&quot;, &quot;SMTP:&quot; + &quot;##-&quot; + strInput(1) + &quot;@&quot; + strInput(6) + &quot;.yourdomain.com&quot;&lt;br /&gt;objGroup.SetInfo&lt;br /&gt;&lt;br /&gt;&#39;wscript.echo strInput(3)&lt;br /&gt;objCommand2.CommandText =&quot;SELECT Userprincipalname,adspath,distinguishedName FROM &#39;LDAP:\\Your LDAP PATH&#39; WHERE objectCategory=&#39;User&#39; &quot; &amp;amp; &quot;AND CN=&#39;&quot; &amp;amp; strInput(3) &amp;amp; &quot;&#39;&quot;&lt;br /&gt;Set objRecordSet2 = objCommand2.Execute&lt;br /&gt;objRecordSet2.MoveFirst&lt;br /&gt;&#39;wscript.echo objRecordSet2.Fields(&quot;Adspath&quot;).Value&lt;br /&gt;If Not objRecordSet2.EOF then&lt;br /&gt;objGroup.Put &quot;managedby&quot; , Trim(Replace(objRecordSet2.Fields(&quot;adspath&quot;).Value,&quot;LDAP://&quot;,&quot; &quot;))&lt;br /&gt;objGroup.SetInfo&lt;br /&gt;set objSD = objGroup.Get(&quot;ntSecurityDescriptor&quot;)&lt;br /&gt;set objDACL = objSD.DiscretionaryAcl&lt;br /&gt;set objACE = CreateObject(&quot;AccessControlEntry&quot;)&lt;br /&gt;objACE.Trustee = objRecordSet2.Fields(&quot;UserprincipalName&quot;).Value&lt;br /&gt;objACE.AccessMask = ADS_RIGHT_DS_WRITE_PROP&lt;br /&gt;objACE.AceFlags = 0&lt;br /&gt;objACE.Flags = ADS_FLAG_OBJECT_TYPE_PRESENT&lt;br /&gt;objACE.AceType = ADS_ACETYPE_ACCESS_ALLOWED_OBJECT&lt;br /&gt;objACE.ObjectType = MEMBER_ATTRIBUTE&lt;br /&gt;objDACL.AddAce objACE&lt;br /&gt;objSD.DiscretionaryAcl = objDACL&lt;br /&gt;objGroup.Put &quot;ntSecurityDescriptor&quot;, objSD&lt;br /&gt;objGroup.SetInfo&lt;br /&gt;End If&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;wscript.echo &quot;Group named &quot; &amp;amp; strinput(1) &amp;amp; &quot; is created&quot;&lt;br /&gt;Loop&lt;br /&gt;&lt;br /&gt;Wscript.echo &quot;***** Script End *****&quot;&lt;br /&gt;&#39;Script end&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Queries on scripts. Open http://orangescripts.blogspot.com and post it&lt;/strong&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;Please post suggestions to improve this blog.
You can mail me at itmurugappan@hotmail.com&lt;/div&gt;</description><link>http://orangescripts.blogspot.com/2007/10/vbscript-to-create-mail-enabled.html</link><author>noreply@blogger.com (Murugappan Chokkalingam)</author><thr:total>1</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8821559813854889014.post-1264497860637232184</guid><pubDate>Wed, 03 Oct 2007 10:03:00 +0000</pubDate><atom:updated>2007-10-03T15:37:29.025+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">Desktop</category><title>VBScript - Search and delete MP3 files inside ZIP</title><description>&#39;Script start&lt;br /&gt;&lt;br /&gt;strDir = &quot;D:\cvc4sp4&quot;&lt;br /&gt;Set fso = CreateObject(&quot;Scripting.FileSystemObject&quot;)&lt;br /&gt;Set objShell = CreateObject(&quot;WScript.Shell&quot;)&lt;br /&gt;&lt;br /&gt;Set objDir = FSO.GetFolder(strDir)&lt;br /&gt;getInfo(objDir)&lt;br /&gt;Sub getInfo(pCurrentDir)&lt;br /&gt;For Each aItem In pCurrentDir.Files&lt;br /&gt;If LCase(Right(Cstr(aItem.Name), 3)) = &quot;zip&quot; Then&lt;br /&gt;wscript.echo aItem.path&lt;br /&gt;objshell.run &quot;c:\7za d &quot; &amp;amp; aItem.path &amp;amp; &quot; *.mp3&quot;    &lt;strong&gt;&#39;Download 7za.exe from internet and place the exe in the specified path. Its free download&lt;br /&gt;&lt;/strong&gt;End If&lt;br /&gt;If LCase(Right(Cstr(aItem.Name), 3)) = &quot;mp3&quot; Then&lt;br /&gt;wscript.echo aItem.path&lt;br /&gt;aItem.delete(True)&lt;br /&gt;End If&lt;br /&gt;Next&lt;br /&gt;For Each aItem In pCurrentDir.SubFolders&lt;br /&gt;&#39;wscript.Echo aItem.Name &amp;amp; &quot; passing recursively&quot;&lt;br /&gt;getInfo(aItem)&lt;br /&gt;Next&lt;br /&gt;End Sub&lt;br /&gt;&lt;br /&gt;&#39;Script End&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;Queries on customization. Open &lt;/span&gt;&lt;a href=&quot;http://orangescripts.blogspot.com/&quot;&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;http://Orangescripts.blogspot.com&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;font-size:85%;&quot;&gt; and post it.&lt;/span&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;Please post suggestions to improve this blog.
You can mail me at itmurugappan@hotmail.com&lt;/div&gt;</description><link>http://orangescripts.blogspot.com/2007/10/vbscript-search-and-delete-mp3-files.html</link><author>noreply@blogger.com (Murugappan Chokkalingam)</author><thr:total>1</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8821559813854889014.post-7628653408214430139</guid><pubDate>Mon, 01 Oct 2007 20:13:00 +0000</pubDate><atom:updated>2010-09-22T13:55:02.483+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">Desktop</category><category domain="http://www.blogger.com/atom/ns#">Printer</category><title>VBScript - Printer - Logging when printer is used</title><description>&#39;Script start&lt;br /&gt;&lt;br /&gt;strComputer = &quot;.&quot;&lt;br /&gt;Set objWMIService = GetObject(&quot;winmgmts:\\&quot; &amp;amp; strComputer &amp;amp; &quot;\root\cimv2&quot;)&lt;br /&gt;Set colEvents = objWMIService.ExecQuery _&lt;br /&gt;(&quot;Select * from Win32_NTLogEvent Where LogFile=&#39;System&#39; and eventcode=10&quot;)&lt;br /&gt;Set objFSO = CreateObject(&quot;Scripting.FileSystemObject&quot;)&lt;br /&gt;Set objFile = objFSO.CreateTextFile(&quot;C:\Events.CSV&quot;)&lt;br /&gt;For Each objEvent in colEvents&lt;br /&gt;strTimeWritten = objEvent.TimeWritten&lt;br /&gt;dtmTimeWritten = CDate(Mid(strTimeWritten, 5, 2) &amp;amp; &quot;/&quot; &amp;amp; _&lt;br /&gt;Mid(strTimeWritten, 7, 2) &amp;amp; &quot;/&quot; &amp;amp; Left(strTimeWritten, 4) _&lt;br /&gt;&amp;amp; &quot; &quot; &amp;amp; Mid (strTimeWritten, 9, 2) &amp;amp; &quot;:&quot; &amp;amp; _&lt;br /&gt;Mid(strTimeWritten, 11, 2) &amp;amp; &quot;:&quot; &amp;amp; Mid(strTimeWritten, 13, 2))&lt;br /&gt;dtmDate = FormatDateTime(dtmTimeWritten, vbShortDate)&lt;br /&gt;dtmTime = FormatDateTime(dtmTimeWritten, vbLongTime)&lt;br /&gt;strDescription = objEvent.Message&lt;br /&gt;strEvent = dtmTime &amp;amp; &quot;,&quot; &amp;amp; trim(strDescription)&lt;br /&gt;objFile.WriteLine strEvent&lt;br /&gt;Next&lt;br /&gt;objFile.Close&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&#39;Script End&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;Queries on scripts ? . Open &lt;/span&gt;&lt;a href=&quot;http://orangescripts.blogspot.com/&quot;&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;http://orangescripts.blogspot.com&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;  and post it.&lt;/span&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;Please post suggestions to improve this blog.
You can mail me at itmurugappan@hotmail.com&lt;/div&gt;</description><link>http://orangescripts.blogspot.com/2007/10/vbscript-printer-logging-when-printer.html</link><author>noreply@blogger.com (Murugappan Chokkalingam)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8821559813854889014.post-8628633999300886455</guid><pubDate>Mon, 01 Oct 2007 15:28:00 +0000</pubDate><atom:updated>2007-10-01T21:03:48.563+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">Outlook</category><title>VBScript - Outlook - Send message from text file</title><description>&#39;Script start&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Set objOutlook = CreateObject(&quot;Outlook.Application&quot;)&lt;br /&gt;Set objOutlookMsg = objOutlook.CreateItem(0)&lt;br /&gt;Const ForReading = 1&lt;br /&gt;Set objFSO = CreateObject(&quot;Scripting.FileSystemObject&quot;)&lt;br /&gt;Set objTextFile = objFSO.OpenTextFile (&quot;C:\Documents and Settings\murugan1\Desktop\mailsg.txt&quot;, ForReading)&lt;br /&gt;strNextLine = objTextFile.Readall&lt;br /&gt;wscript.echo StrNextLine&lt;br /&gt;With objOutlookMsg&lt;br /&gt;  .To = InputBox(&quot;Enter To field&quot;)&lt;br /&gt;  .Subject = InputBox(&quot;Enter Subject&quot;)&lt;br /&gt;  .Body = strNextLine&lt;br /&gt;  .Send&lt;br /&gt;End With&lt;br /&gt;Set objOutlookMsg = Nothing&lt;br /&gt;Set objOutlook = Nothing&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&#39;Script End&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Queries on customization. Open Orangescripts.blogspot.com and post it .&lt;div class=&quot;blogger-post-footer&quot;&gt;Please post suggestions to improve this blog.
You can mail me at itmurugappan@hotmail.com&lt;/div&gt;</description><link>http://orangescripts.blogspot.com/2007/10/vbscript-outlook-send-message-from-text.html</link><author>noreply@blogger.com (Murugappan Chokkalingam)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8821559813854889014.post-5138996763714286675</guid><pubDate>Mon, 01 Oct 2007 12:43:00 +0000</pubDate><atom:updated>2007-10-01T18:17:00.304+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">Desktop</category><title>VBScript - Internet Explorer - Proxy settings</title><description>&#39;Script Start&lt;br /&gt;&lt;br /&gt;On Error Resume Next&lt;br /&gt;strComputer = &quot;.&quot;&lt;br /&gt;&lt;br /&gt;Set objWMIService = GetObject(&quot;winmgmts:&quot; _&lt;br /&gt;&amp;amp; &quot;{impersonationLevel=impersonate}!\\&quot; &amp;amp; strComputer &amp;amp; &quot;\root\cimv2&quot;)&lt;br /&gt;Set colItems = objWMIService.ExecQuery(&quot;Select * from Win32_Proxy&quot;)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Const HKEY_CURRENT_USER = &amp;amp;H80000001&lt;br /&gt;Set objRegistry = GetObject(&quot;winmgmts:\\&quot; &amp;amp; strComputer &amp;amp; &quot;\root\default:StdRegProv&quot;)&lt;br /&gt;strKeyPath = &quot;SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings&quot;&lt;br /&gt;strValueName = &quot;ProxyEnable&quot;&lt;br /&gt;dim dWord&lt;br /&gt;objRegistry.GetDWORDValue HKEY_CURRENT_USER , strKeyPath , strValueName ,dWord&lt;br /&gt;if dWord = 1 then&lt;br /&gt;dwValue = 0&lt;br /&gt;objRegistry.SetDWORDValue HKEY_CURRENT_USER, strKeyPath, strValueName, dwValue&lt;br /&gt;else&lt;br /&gt;For Each objItem in colItems&lt;br /&gt;dwValue = 1&lt;br /&gt;objRegistry.SetDWORDValue HKEY_CURRENT_USER, strKeyPath, strValueName, dwValue&lt;br /&gt;objItem.SetProxySetting &quot;HOME&quot;,&quot;8080&quot;  &lt;strong&gt;&#39;Change parameters here&lt;br /&gt;&lt;/strong&gt;Next&lt;br /&gt;end if&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&#39;Script End&lt;br /&gt;Got from website dev.thatsit.net.au&lt;br /&gt;&lt;a href=&quot;http://orangescripts.blogspot.com/2007/09/how-to-execute-vbscript.html&quot;&gt;How to execute a VBScript&lt;/a&gt;&lt;br /&gt;Please post suggestions to improve this blog.&lt;br /&gt;You can reach me at itmurugappan@hotmail.com&lt;div class=&quot;blogger-post-footer&quot;&gt;Please post suggestions to improve this blog.
You can mail me at itmurugappan@hotmail.com&lt;/div&gt;</description><link>http://orangescripts.blogspot.com/2007/10/vbscript-internet-explorer-proxy.html</link><author>noreply@blogger.com (Murugappan Chokkalingam)</author><thr:total>1</thr:total></item></channel></rss>