Articles http://windowsitpro.com/author/4225/feed en PowerShell: Granting Computer Join Permissions http://windowsitpro.com/windows-server/powershell-granting-computer-join-permissions <div class="node-body article-body">The principle of least privilege, as applied to Active Directory (AD), means that users should be granted only the minimum permissions necessary to complete their job functions. Here's how you can work towards that a little more easily with PowerShell.</div> <div class="og_rss_groups"></div><p><a href="http://windowsitpro.com/windows-server/powershell-granting-computer-join-permissions" target="_blank">read more</a></p> http://windowsitpro.com/windows-server/powershell-granting-computer-join-permissions#comments Windows Server Active Directory Active Directory Business Decision Maker IT Manager PowerShell PowerShell security Security Wed, 20 Apr 2016 02:08:00 +0000 168141 at http://windowsitpro.com Working with IPv4 Addresses in PowerShell http://windowsitpro.com/powershell-scripting/working-ipv4-addresses-powershell <div class="node-body article-body"><p>System administrators work with IP version 4 (IPv4) addresses on a regular basis. If you&rsquo;ve ever had to work with IPv4 addresses in scripts, you&rsquo;re already aware of the complications: IPv4 addresses are 32-bit numbers, not strings. In order to calculate a network ID, for example, you need to use the bitwise AND operator with the IPv4 address and a subnet mask.</p></div> <div class="og_rss_groups"></div><p><a href="http://windowsitpro.com/powershell-scripting/working-ipv4-addresses-powershell" target="_blank">read more</a></p> http://windowsitpro.com/powershell-scripting/working-ipv4-addresses-powershell#comments Windows PowerShell & Scripting Sun, 13 Mar 2016 22:41:00 +0000 165121 at http://windowsitpro.com PowerShell - Farewell to For http://windowsitpro.com/windows/powershell-farewell <div class="node-body article-body"><p style="font-size: 12.8px; line-height: 20px;">In my last article (<a href="http://windowsitpro.com/systems-management/powershell-goodbye-goto" style="font-size: 12.8px;">Goodbye,&nbsp;Goto</a>), I described how batch files handle common iteration (repeating or looping) and subroutines using the&nbsp;Goto&nbsp;and Call commands, and the most common&nbsp;PowerShell&nbsp;language constructs that replace those commands. Batch files have one last iteration command command that you still need to know how to replace in&nbsp;PowerShell: The For command.</p></div> <div class="og_rss_groups"></div><p><a href="http://windowsitpro.com/windows/powershell-farewell" target="_blank">read more</a></p> http://windowsitpro.com/windows/powershell-farewell#comments Windows PowerShell Thu, 07 Jan 2016 23:06:00 +0000 158071 at http://windowsitpro.com PowerShell: Goodbye, Goto http://windowsitpro.com/systems-management/powershell-goodbye-goto <div class="node-body article-body">When batch files were added to MS-DOS over 30 years ago, the BASIC programming language was the predominant programming language in use on microcomputers, and GOTO ruled to roost. Fortunately, things have improved. Here's how while, do while, do until, and for replace those classic commands in a variety of situations.</div> <div class="og_rss_groups"></div><p><a href="http://windowsitpro.com/systems-management/powershell-goodbye-goto" target="_blank">read more</a></p> http://windowsitpro.com/systems-management/powershell-goodbye-goto#comments Systems Management development Development IT Manager PowerShell PowerShell Tue, 24 Nov 2015 13:54:00 +0000 155201 at http://windowsitpro.com Changing Service Credentials Using PowerShell http://windowsitpro.com/powershell/changing-service-credentials-using-powershell <div class="node-body article-body">Changing an account’s password is simple, but updating the password for all of the services that start using that account can be a time-consuming and error-prone process, depending on the number of servers and services involved.</div> <div class="og_rss_groups"></div><p><a href="http://windowsitpro.com/powershell/changing-service-credentials-using-powershell" target="_blank">read more</a></p> http://windowsitpro.com/powershell/changing-service-credentials-using-powershell#comments PowerShell PowerShell PowerShell Fri, 02 Oct 2015 13:26:00 +0000 149891 at http://windowsitpro.com PowerShell: Why You'll Never Go Back to Cmd.exe Batch Files http://windowsitpro.com/windows/powershell-why-youll-never-go-back-cmdexe-batch-files <div class="node-body article-body">Scripts have a long history on the Windows OS platform. In Cmd.exe most people call them batch files, but they are scripts nonetheless. The command-line parsing rules that Cmd.exe uses mean that some commands you enter on a Cmd.exe command line behave differently than when you put the same commands in a batch file. This is an ongoing source of confusion for those not familiar with Cmd.exe’s syntax quirks.</div> <div class="og_rss_groups"></div><p><a href="http://windowsitpro.com/windows/powershell-why-youll-never-go-back-cmdexe-batch-files" target="_blank">read more</a></p> http://windowsitpro.com/windows/powershell-why-youll-never-go-back-cmdexe-batch-files#comments Windows batch files Cmd.exe command-line parsing rules PowerShell Windows OS Thu, 27 Aug 2015 20:30:00 +0000 147541 at http://windowsitpro.com Presenting the PowerShell Pipeline http://windowsitpro.com/powershell/presenting-powershell-pipeline <div class="node-body article-body">Little makes sense in PowerShell without an understanding of the pipeline.</div> <div class="og_rss_groups"></div><p><a href="http://windowsitpro.com/powershell/presenting-powershell-pipeline" target="_blank">read more</a></p> http://windowsitpro.com/powershell/presenting-powershell-pipeline#comments PowerShell pipeline pipeline PowerShell PowerShell Thu, 23 Jul 2015 12:43:00 +0000 144961 at http://windowsitpro.com PowerShell: Objects and Output http://windowsitpro.com/powershell/powershell-objects-and-output <div class="node-body article-body">Now that you’ve started using PowerShell as an interactive command line, you’ll need to understand that there are some fundamental differences between how Cmd.exe and PowerShell process input and output. </div> <div class="og_rss_groups"></div><p><a href="http://windowsitpro.com/powershell/powershell-objects-and-output" target="_blank">read more</a></p> http://windowsitpro.com/powershell/powershell-objects-and-output#comments PowerShell PowerShell PowerShell Tue, 12 May 2015 12:52:00 +0000 138001 at http://windowsitpro.com Using PowerShell Interactively http://windowsitpro.com/powershell/using-powershell-interactively <div class="node-body article-body">While PowerShell is Powerful a scripting language, it’s also an interactive command shell that you can use instead of Cmd.exe.</div> <div class="og_rss_groups"></div><p><a href="http://windowsitpro.com/powershell/using-powershell-interactively" target="_blank">read more</a></p> http://windowsitpro.com/powershell/using-powershell-interactively#comments PowerShell PowerShell PowerShell Fri, 10 Apr 2015 13:51:00 +0000 134891 at http://windowsitpro.com Batch to PowerShell - Syntax Differences http://windowsitpro.com/powershell/batch-powershell-syntax-differences <div class="node-body article-body">In my last article, I made the argument that you should stop writing batch files (Cmd.exe shell scripts) and instead focus your efforts on learning PowerShell. In this article, I’ll describe the special characters that Cmd.exe uses and how a number of these characters work differently in PowerShell.</div> <div class="og_rss_groups"></div><p><a href="http://windowsitpro.com/powershell/batch-powershell-syntax-differences" target="_blank">read more</a></p> http://windowsitpro.com/powershell/batch-powershell-syntax-differences#comments PowerShell Batch Batch PowerShell PowerShell Wed, 04 Mar 2015 17:48:00 +0000 131031 at http://windowsitpro.com Break Your Batch Habit and Move to PowerShell http://windowsitpro.com/powershell/break-your-batch-habit-and-move-powershell <div class="node-body article-body">Windows PowerShell should rightly be seen as a replacement for batch file scripting (Cmd.exe shell scripting), but for some reason, many people seem to be unwilling to leave batch behind. This article begins a series that’s designed to help you break the batch habit and move forward with PowerShell.</div> <div class="og_rss_groups"></div><p><a href="http://windowsitpro.com/powershell/break-your-batch-habit-and-move-powershell" target="_blank">read more</a></p> http://windowsitpro.com/powershell/break-your-batch-habit-and-move-powershell#comments PowerShell PowerShell PowerShell Mon, 02 Mar 2015 13:03:00 +0000 130361 at http://windowsitpro.com Take Charge of Environment Variables in PowerShell http://windowsitpro.com/powershell/take-charge-environment-variables-powershell <div class="field-deck"> How to overcome PowerShell's limitations when working with environment variables </div> <div class="node-body article-body">Windows PowerShell has some limitations when it comes to working with environment variables. Here are three functions you can use to overcome these limitations.</div> <div class="og_rss_groups"></div><p><a href="http://windowsitpro.com/powershell/take-charge-environment-variables-powershell" target="_blank">read more</a></p> http://windowsitpro.com/powershell/take-charge-environment-variables-powershell#comments PowerShell Cmd.exe Cmd.exe Environment Variables Environment Variables variable scope variable scope Windows PowerShell Windows PowerShell Mon, 24 Nov 2014 19:45:00 +0000 123151 at http://windowsitpro.com Resetting the Local Administrator Password on Computers http://windowsitpro.com/powershell/resetting-local-administrator-password-computers <div class="field-deck"> A secure way to reset and store Administrator account passwords </div> <div class="node-body article-body">Resetting an Administrator account password with a Group Policy Object isn't secure. Here's how to securely reset the Administrator account password.</div> <div class="og_rss_groups"></div><p><a href="http://windowsitpro.com/powershell/resetting-local-administrator-password-computers" target="_blank">read more</a></p> http://windowsitpro.com/powershell/resetting-local-administrator-password-computers#comments PowerShell Administrator passwords Administrator passwords Microsoft Windows PowerShell Microsoft Windows PowerShell Scripting Scripting Wed, 08 Oct 2014 15:20:00 +0000 118611 at http://windowsitpro.com <p>Securely resetting the Administrator account password for a computer</p> Enforcing the Membership of the Administrators Group http://windowsitpro.com/scripting/enforcing-membership-administrators-group <div class="field-deck"> VBScript script ensures that only allowed accounts are members </div> <div class="node-body article-body">Here's a solution for managing the members of the Administrators group on computers when you don't have an Active Directory domain or you can't use Group Policy.</div> <div class="og_rss_groups"></div><p><a href="http://windowsitpro.com/scripting/enforcing-membership-administrators-group" target="_blank">read more</a></p> http://windowsitpro.com/scripting/enforcing-membership-administrators-group#comments Scripting Active Directory Active Directory Group Policy Group Policy managing the Administrators Group managing the Administrators Group vbscript vbscript Wed, 20 Aug 2014 13:00:00 +0000 112951 at http://windowsitpro.com <p>Enforcing Administrators group membership</p> Running Executables in PowerShell http://windowsitpro.com/powershell/running-executables-powershell <div class="field-deck"> How to avoid common pitfalls </div> <div class="node-body article-body">Correctly constructing an executable's command line in PowerShell can be confusing. The guidelines presented here can help you avoid common pitfalls.</div> <div class="og_rss_groups"></div><p><a href="http://windowsitpro.com/powershell/running-executables-powershell" target="_blank">read more</a></p> http://windowsitpro.com/powershell/running-executables-powershell#comments PowerShell constructing an executable's command line in PowerShell constructing an executable's command line in PowerShell quoting parameters in PowerShell quoting parameters in PowerShell Windows PowerShell Windows PowerShell Tue, 10 Jun 2014 15:39:00 +0000 106641 at http://windowsitpro.com <p>Pointing out common pitfalls when running executables in PowerShell</p> Windows PowerShell Operators http://windowsitpro.com/powershell/windows-powershell-operators <div class="field-deck"> Understanding how operators work can lead to more efficient code </div> <div class="node-body article-body">A good understanding of Windows PowerShell's operators is a must if you want to increase your understanding of PowerShell and the efficiency of your code.</div> <div class="og_rss_groups"></div><p><a href="http://windowsitpro.com/powershell/windows-powershell-operators" target="_blank">read more</a></p> http://windowsitpro.com/powershell/windows-powershell-operators#comments PowerShell code efficiency code efficiency operators operators PowerShell operators PowerShell operators understanding PowerShell understanding PowerShell Windows PowerShell Windows PowerShell Mon, 17 Mar 2014 04:00:00 +0000 97181 at http://windowsitpro.com Windows PowerShell Constructs http://windowsitpro.com/powershell/windows-powershell-constructs <div class="field-deck"> Exploring PowerShell's decision and flow control statements </div> <div class="node-body article-body">PowerShell provides a number of language constructs that let you control the flow of your script as well as make decisions about what it should do.</div> <div class="og_rss_groups"></div><p><a href="http://windowsitpro.com/powershell/windows-powershell-constructs" target="_blank">read more</a></p> http://windowsitpro.com/powershell/windows-powershell-constructs#comments PowerShell Scripting language constructs language constructs Scripting Scripting scripting decisions scripting decisions scripting flow scripting flow Windows PowerShell Windows PowerShell Mon, 03 Mar 2014 16:25:00 +0000 97351 at http://windowsitpro.com View or Remove Active Directory Delegated Permissions http://windowsitpro.com/active-directory/view-remove-ad-delegated-permissions <div class="field-deck"> PowerShell script overcomes limitations of Microsoft tools </div> <div class="node-body article-body">Microsoft provides tools to remove delegated permissions, but they have some limitations. Here's a Windows PowerShell script that not only overcomes these limitations but also provides an easy-to-read list of which users or groups have delegated permissions.</div> <div class="og_rss_groups"></div><p><a href="http://windowsitpro.com/active-directory/view-remove-ad-delegated-permissions" target="_blank">read more</a></p> http://windowsitpro.com/active-directory/view-remove-ad-delegated-permissions#comments Active Directory PowerShell Acitve Directory Acitve Directory delegated permissions delegated permissions permissions limitations permissions limitations users and groups users and groups Windows PowerShell Windows PowerShell Thu, 09 Jan 2014 16:47:00 +0000 92491 at http://windowsitpro.com Creating Custom Objects in Windows PowerShell http://windowsitpro.com/powershell/creating-custom-objects-windows-powershell <div class="field-deck"> How to create custom objects on demand </div> <div class="node-body article-body">One of Windows PowerShell's most useful features is the ability to create your own custom objects on demand containing the properties you need.</div> <div class="og_rss_groups"></div><p><a href="http://windowsitpro.com/powershell/creating-custom-objects-windows-powershell" target="_blank">read more</a></p> http://windowsitpro.com/powershell/creating-custom-objects-windows-powershell#comments .NET Framework Windows Development PowerShell custom objects custom objects custom objects on demand custom objects on demand properties needed properties needed Windows PowerShell Windows PowerShell Tue, 10 Dec 2013 00:22:00 +0000 90761 at http://windowsitpro.com Use PowerShell to Handle Active Directory Paths http://windowsitpro.com/powershell/powershell-active-directory-paths <div class="field-deck"> Add the Get-ADPathname.ps1 script to your toolbox </div> <div class="node-body article-body">Add the Get-ADPathname.ps1 script to your toolbox and stop writing unnecessary code to parse Active Directory paths.</div> <div class="og_rss_groups"></div><p><a href="http://windowsitpro.com/powershell/powershell-active-directory-paths" target="_blank">read more</a></p> http://windowsitpro.com/powershell/powershell-active-directory-paths#comments Active Directory PowerShell Active Directory Active Directory active directory paths active directory paths Get-ADPathname.ps1 Get-ADPathname.ps1 PowerShell PowerShell Scripting Scripting Wed, 06 Nov 2013 21:51:00 +0000 87611 at http://windowsitpro.com PowerShell Basics: Arrays and Hash Tables http://windowsitpro.com/powershell/powershell-basics-arrays-hash-tables <div class="field-deck"> How to use these important data structures </div> <div class="node-body article-body">Arrays and hash tables are two basic data structures that you need to understand in order to work effectively in Windows PowerShell.</div> <div class="og_rss_groups"></div><p><a href="http://windowsitpro.com/powershell/powershell-basics-arrays-hash-tables" target="_blank">read more</a></p> http://windowsitpro.com/powershell/powershell-basics-arrays-hash-tables#comments PowerShell Arrays Arrays Hash Tables Hash Tables PowerShell PowerShell Thu, 19 Sep 2013 21:29:00 +0000 82561 at http://windowsitpro.com Importing and Exporting CSV and XML Files in PowerShell http://windowsitpro.com/powershell/powershell-csv-xml-files <div class="field-deck"> Manually parsing CSV and XML files is a thing of the past </div> <div class="node-body article-body">Windows PowerShell provides some exceptionally powerful and easy-to-use cmdlets to help you import and export CSV and XML files, virtually eliminating the need for manual parsing.</div> <div class="og_rss_groups"></div><p><a href="http://windowsitpro.com/powershell/powershell-csv-xml-files" target="_blank">read more</a></p> http://windowsitpro.com/powershell/powershell-csv-xml-files#comments PowerShell cmdlets cmdlets csv CSV parsing parsing PowerShell PowerShell Windows PowerShell Windows PowerShell XML XML Mon, 19 Aug 2013 21:05:00 +0000 79561 at http://windowsitpro.com PowerShell Basics: Variables http://windowsitpro.com/powershell/powershell-basics-variables <div class="field-deck"> Variables are an integral part of how PowerShell works </div> <div class="node-body article-body">Understanding PowerShell variables is important because variables are such an integral part of how PowerShell works.</div> <div class="og_rss_groups"></div><p><a href="http://windowsitpro.com/powershell/powershell-basics-variables" target="_blank">read more</a></p> http://windowsitpro.com/powershell/powershell-basics-variables#comments PowerShell PowerShell PowerShell PowerShell basics PowerShell basics PowerShell variables PowerShell variables variables variables Windows PowerShell Windows PowerShell Tue, 21 May 2013 20:44:00 +0000 70961 at http://windowsitpro.com Expanding Tabs to Spaces in PowerShell http://windowsitpro.com/powershell/expanding-tabs-spaces-powershell <div class="field-deck"> A custom function makes this task easy </div> <div class="node-body article-body">Although the More.com program in Windows can expand tabs to spaces, here's a native PowerShell function that performs this task so you can take better advantage of PowerShell's pipeline.</div> <div class="og_rss_groups"></div><p><a href="http://windowsitpro.com/powershell/expanding-tabs-spaces-powershell" target="_blank">read more</a></p> http://windowsitpro.com/powershell/expanding-tabs-spaces-powershell#comments PowerShell Microsoft Microsoft Microsoft Windows PowerShell Microsoft Windows PowerShell PowerShell PowerShell Windows PowerShell Windows PowerShell Fri, 17 May 2013 04:00:00 +0000 66371 at http://windowsitpro.com Translating Active Directory Object Names Between Formats http://windowsitpro.com/active-directory/translating-active-directory-object-names-between-formats <div class="field-deck"> How to easily use the NameTranslate object in PowerShell </div> <div class="node-body article-body">The NameTranslate object is useful when you need to translate Active Directory object names between different formats, but it's awkward to use from PowerShell. Here's a PowerShell script that eliminates the awkwardness.</div> <div class="og_rss_groups"></div><p><a href="http://windowsitpro.com/active-directory/translating-active-directory-object-names-between-formats" target="_blank">read more</a></p> http://windowsitpro.com/active-directory/translating-active-directory-object-names-between-formats#comments Active Directory Active Directory Active Directory NameTranslate object NameTranslate object PowerShell PowerShell Scripting Scripting Mon, 22 Apr 2013 13:00:00 +0000 62741 at http://windowsitpro.com Get Hex Dumps of Files in PowerShell http://windowsitpro.com/powershell/get-hex-dumps-files-powershell <div class="field-byline"> Bill Stewart </div> <div class="field-deck"> Use this script to work some magic </div> <div class="node-body article-body">PowerShell doesn't have a native cmdlet suitable for viewing the content of binary files. Use the Get-HexDump.ps1 script to view binary-file content in PowerShell.</div> <div class="og_rss_groups"></div><p><a href="http://windowsitpro.com/powershell/get-hex-dumps-files-powershell" target="_blank">read more</a></p> http://windowsitpro.com/powershell/get-hex-dumps-files-powershell#comments Development PowerShell Scripting binary binary Development development Development hex hex PowerShell PowerShell PowerShell Scripting Scripting Scripting Scripting languages Scripting languages Scripting languages Mon, 25 Mar 2013 12:00:00 +0000 61150 at http://windowsitpro.com Comparing File Version Numbers in VBScript and PowerShell http://windowsitpro.com/powershell/comparing-file-version-numbers-vbscript-and-powershell <div class="field-deck"> These simple script functions make comparisons a snap </div> <div class="node-body article-body">File versions are important metadata for admins, but these 64-bit, unsigned integers can be tricky to handle properly, particularly from scripts. Find out how to take the pain out of comparing two version numbers.</div> <div class="og_rss_groups"></div><p><a href="http://windowsitpro.com/powershell/comparing-file-version-numbers-vbscript-and-powershell" target="_blank">read more</a></p> http://windowsitpro.com/powershell/comparing-file-version-numbers-vbscript-and-powershell#comments Development PowerShell Scripting development PowerShell Scripting Scripting languages vbscript Fri, 22 Feb 2013 18:00:00 +0000 63241 at http://windowsitpro.com Updating a Scheduled Task's Credentials http://windowsitpro.com/scripting/updating-scheduled-tasks-credentials <div class="field-byline"> Bill Stewart </div> <div class="field-deck"> Use this PowerShell script to overcome Schtasks limitations </div> <div class="node-body article-body">If you need to update credentials in scheduled tasks, you're in luck -- here's a Windows PowerShell script that can help.</div> <div class="og_rss_groups"></div><p><a href="http://windowsitpro.com/scripting/updating-scheduled-tasks-credentials" target="_blank">read more</a></p> http://windowsitpro.com/scripting/updating-scheduled-tasks-credentials#comments Development PowerShell Scripting Command shells Development Microsoft Windows PowerShell Scripting Scripting languages Scripting languages Windows PowerShell Windows Task Scheduler windows vista Fri, 21 Sep 2012 17:55:00 +0000 40851 at http://windowsitpro.com Generating Random Passwords in PowerShell http://windowsitpro.com/powershell/generating-random-passwords-powershell <div class="field-byline"> Bill Stewart </div> <div class="field-deck"> <p>This simple script helps you pump up password strength</p> </div> <div class="node-body article-body">Use this script from PowerShell to specify character classes in random strings.</div> <div class="og_rss_groups"></div><p><a href="http://windowsitpro.com/powershell/generating-random-passwords-powershell" target="_blank">read more</a></p> http://windowsitpro.com/powershell/generating-random-passwords-powershell#comments PowerShell password PowerShell Windows PowerShell Tue, 21 Aug 2012 17:31:00 +0000 18407 at http://windowsitpro.com Searching the Registry with PowerShell http://windowsitpro.com/scripting/searching-registry-powershell <div class="field-byline"> Bill Stewart </div> <div class="field-deck"> <p>Use this Windows PowerShell script for faster results</p> </div> <div class="node-body article-body">Use this Windows PowerShell script to speed up searches in the registry, whether on the local system, a remote system, or multiple remote systems.</div> <div class="og_rss_groups"></div><p><a href="http://windowsitpro.com/scripting/searching-registry-powershell" target="_blank">read more</a></p> http://windowsitpro.com/scripting/searching-registry-powershell#comments Development PowerShell Scripting Development Microsoft PowerShell Scripting Scripting languages search-registry2 function Technology_Internet Windows Windows PowerShell Windows Registry Wed, 21 Mar 2012 19:20:00 +0000 28211 at http://windowsitpro.com 4 Challenges of Auditing AD Users and Groups http://windowsitpro.com/scripting/4-challenges-auditing-ad-users-and-groups <div class="field-byline"> Bill Stewart </div> <div class="field-deck"> <p>This Windows PowerShell script makes fast work of a tricky task</p> </div> <div class="node-body article-body">Use this PowerShell script to create a list of users and their group memberships, in record time.</div> <div class="og_rss_groups"></div><p><a href="http://windowsitpro.com/scripting/4-challenges-auditing-ad-users-and-groups" target="_blank">read more</a></p> http://windowsitpro.com/scripting/4-challenges-auditing-ad-users-and-groups#comments Development Active Directory PowerShell Scripting .NET Framework Active Directory Development PowerShell Scripting Scripting languages Scripting languages Windows PowerShell Wed, 22 Feb 2012 14:00:00 +0000 51095 at http://windowsitpro.com Common Ways to Run Programs on Remote Computers http://windowsitpro.com/powershell/common-ways-run-programs-remote-computers <div class="field-byline"> Bill Stewart </div> <div class="node-body article-body">Find out some of the techniques commonly used to run programs on remote computers and their pros and cons.</div> <div class="og_rss_groups"></div><p><a href="http://windowsitpro.com/powershell/common-ways-run-programs-remote-computers" target="_blank">read more</a></p> http://windowsitpro.com/powershell/common-ways-run-programs-remote-computers#comments Development PowerShell Scripting Developer Development PowerShell Scripter Scripting Scripting languages Mon, 30 Jan 2012 20:18:00 +0000 49159 at http://windowsitpro.com Use PowerShell to Run Programs on Remote Computers http://windowsitpro.com/powershell/use-powershell-run-programs-remote-computers <div class="field-byline"> Bill Stewart </div> <div class="field-deck"> PowerShell scripting does all the work for you </div> <div class="node-body article-body">Here's a PowerShell script that provides an easy-to-use, flexible, and secure way to schedule a program to run on one or more remote computers.</div> <div class="og_rss_groups"></div><p><a href="http://windowsitpro.com/powershell/use-powershell-run-programs-remote-computers" target="_blank">read more</a></p> http://windowsitpro.com/powershell/use-powershell-run-programs-remote-computers#comments Development PowerShell Scripting Command shells Command shells Developer Development pipeline pipeline PowerShell Scripter Scripting Scripting languages Scripting languages Scripting languages vbscript vbscript Windows PowerShell Windows PowerShell Tue, 17 Jan 2012 19:22:00 +0000 49338 at http://windowsitpro.com How-To: Use PowerShell to Report on Scheduled Tasks http://windowsitpro.com/powershell/how-use-powershell-report-scheduled-tasks <div class="field-byline"> Bill Stewart </div> <div class="field-deck"> An alternative to the Schtasks utility </div> <div class="node-body article-body">Although you can use the Schtasks utility to report on scheduled tasks, it is difficult to use and doesn’t scale well. Here’s a PowerShell script that overcomes these limitations, making it easy to report on scheduled tasks for as many computers as you need.</div> <div class="og_rss_groups"></div><p><a href="http://windowsitpro.com/powershell/how-use-powershell-report-scheduled-tasks" target="_blank">read more</a></p> http://windowsitpro.com/powershell/how-use-powershell-report-scheduled-tasks#comments Development PowerShell Scripting Command shells Command shells Development PowerShell Schtasks Schtasks Schtasks utility Schtasks utility Scripting Scripting languages Scripting languages Scripting languages Task Scheduler task scheduler Windows NT Windows NT Windows PowerShell Windows PowerShell Fri, 16 Dec 2011 15:39:00 +0000 9821 at http://windowsitpro.com PowerShell How-To: Emulating Cmd.exe's Set Command http://windowsitpro.com/powershell/powershell-how-emulating-cmdexes-set-command <div class="field-byline"> Bill Stewart </div> <div class="field-deck"> <p>Give this custom PowerShell function a try</p> </div> <div class="node-body article-body">If you use PowerShell but miss the simplicity of Cmd.exe's Set command when working with environment variables, give this custom PowerShell function a try.</div> <div class="og_rss_groups"></div><p><a href="http://windowsitpro.com/powershell/powershell-how-emulating-cmdexes-set-command" target="_blank">read more</a></p> http://windowsitpro.com/powershell/powershell-how-emulating-cmdexes-set-command#comments Development PowerShell Scripting Command shells Computing Development Environment variable PowerShell Scripting Scripting languages Scripting languages Windows PowerShell Mon, 12 Dec 2011 20:46:00 +0000 45950 at http://windowsitpro.com Clarifying Credential Confusion http://windowsitpro.com/scripting/clarifying-credential-confusion <div class="field-byline"> Bill Stewart </div> <div class="node-body article-body">Learn about two sets of credentials that you might need when renaming a scheduled task with the Rename-ScheduledTask.ps1 script.</div> <div class="og_rss_groups"></div><p><a href="http://windowsitpro.com/scripting/clarifying-credential-confusion" target="_blank">read more</a></p> http://windowsitpro.com/scripting/clarifying-credential-confusion#comments Development PowerShell Scripting Development PowerShell Scripting Scripting languages Mon, 24 Oct 2011 16:38:00 +0000 44111 at http://windowsitpro.com PowerShell Script: Rename Scheduled Tasks in Windows 7, Windows Server 2008, and Windows Vista http://windowsitpro.com/scripting/powershell-script-rename-scheduled-tasks-windows-7-windows-server-2008-and-windows-vista <div class="field-byline"> Bill Stewart </div> <div class="field-deck"> <p>PowerShell script makes a Task Scheduler limitation less annoying</p> </div> <div class="node-body article-body">Walk through a Windows PowerShell script that renames Task Scheduler tasks in Windows 7, Vista, and Server 2008.</div> <div class="og_rss_groups"></div><p><a href="http://windowsitpro.com/scripting/powershell-script-rename-scheduled-tasks-windows-7-windows-server-2008-and-windows-vista" target="_blank">read more</a></p> http://windowsitpro.com/scripting/powershell-script-rename-scheduled-tasks-windows-7-windows-server-2008-and-windows-vista#comments Development PowerShell Scripting Systems Management Code Developer Development How-To Article Intermediate PowerShell PowerShell powershell scripts Scripter Scripting Scripting languages Task scheduling Windows 7 Windows PowerShell Windows script Windows Server 2008 Windows Task Scheduler windows vista Mon, 24 Oct 2011 13:00:00 +0000 45056 at http://windowsitpro.com Calculate MD5 and SHA1 File Hashes Using PowerShell http://windowsitpro.com/scripting/calculate-md5-and-sha1-file-hashes-using-powershell <div class="field-byline"> Bill Stewart </div> <div class="field-deck"> <p>An easy-to-use tool lets you verify the integrity of downloaded files</p> </div> <div class="node-body article-body">An easy-to-use tool lets you verify the integrity of downloaded files</div> <div class="og_rss_groups"></div><p><a href="http://windowsitpro.com/scripting/calculate-md5-and-sha1-file-hashes-using-powershell" target="_blank">read more</a></p> http://windowsitpro.com/scripting/calculate-md5-and-sha1-file-hashes-using-powershell#comments Development Identity Management Windows Development PowerShell Scripting Security Systems Management .NET Framework Code Command shells Computer programming Computer science Computing Developer Development Enterprise Identity How-To Article Intermediate IT Manager Network Administrator PowerShell Scripter Scripting Scripting languages Search algorithms Security Security Development Systems Administrator Windows PowerShell Wed, 17 Aug 2011 19:36:00 +0000 54950 at http://windowsitpro.com Auditing 32-Bit and 64-Bit Applications with PowerShell http://windowsitpro.com/scripting/auditing-32-bit-and-64-bit-applications-powershell <div class="field-byline"> Bill Stewart </div> <div class="field-deck"> Script deals with the complexities so you don’t have to </div> <div class="node-body article-body">Auditing computers that run both 32-bit and 64-bit applications can be difficult because their information is stored in different parts of the registry. Here’s a PowerShell script that deals with the complexities so you don’t have to.</div> <div class="og_rss_groups"></div><p><a href="http://windowsitpro.com/scripting/auditing-32-bit-and-64-bit-applications-powershell" target="_blank">read more</a></p> http://windowsitpro.com/scripting/auditing-32-bit-and-64-bit-applications-powershell#comments Development Windows Server PowerShell Scripting Systems Management Client Management Code Computing Desktop management Developer Development How-To Article Intermediate IT Manager Microsoft Windows PowerShell Registry Scripter Scripting Scripting languages Scripting techniques System software Systems Administrator Systems Management Tue, 26 Jul 2011 16:55:00 +0000 45408 at http://windowsitpro.com Byte Conversions Made Easy http://windowsitpro.com/development/byte-conversions-made-easy <div class="field-byline"> Bill Stewart </div> <div class="node-body article-body">To save time and eliminate calculator errors, use this HTML Application (HTA) to perform byte conversions. It converts values using both factors of 2 (kilo = 1,024 bytes) and 10 (kilo = 1,000 bytes).</div> <div class="og_rss_groups"></div><p><a href="http://windowsitpro.com/development/byte-conversions-made-easy" target="_blank">read more</a></p> http://windowsitpro.com/development/byte-conversions-made-easy#comments Development Community Development Reader to Reader Reader-submitted articles Reader-submitted code Tue, 26 Apr 2011 14:30:00 +0000 54698 at http://windowsitpro.com Managing ABE from the Command Line http://windowsitpro.com/scripting/managing-abe-command-line <div class="field-byline"> Bill Stewart </div> <div class="field-deck"> <p>PowerShell solution lets you control ABE on multiple shares</p> </div> <div class="node-body article-body">Unlike Microsoft’s Abecmd.exe tool, this PowerShell solution lets you to detect, enable, and disable access-based enumeration (ABE) on multiple shares and on multiple computers.</div> <div class="og_rss_groups"></div><p><a href="http://windowsitpro.com/scripting/managing-abe-command-line" target="_blank">read more</a></p> http://windowsitpro.com/scripting/managing-abe-command-line#comments Development Windows Server Windows Server 2008 Windows Server 2003 Scripting Development Scripting Scripting languages Windows Server Windows Server 2003 Windows Server 2008 Tue, 15 Mar 2011 13:49:00 +0000 47767 at http://windowsitpro.com Handling Input in PowerShell Functions http://windowsitpro.com/scripting/handling-input-powershell-functions <div class="field-byline"> Bill Stewart </div> <div class="field-deck"> <p>How to create a function that processes both pipeline and parameter input</p> </div> <div class="node-body article-body">PowerShell 2.0 lets you create a function that processes both parameter and pipeline input. Here's what you need to know when you're creating it so that you can avoid some inherent problems.</div> <div class="og_rss_groups"></div><p><a href="http://windowsitpro.com/scripting/handling-input-powershell-functions" target="_blank">read more</a></p> http://windowsitpro.com/scripting/handling-input-powershell-functions#comments Development PowerShell Scripting Development PowerShell Scripting Scripting languages Mon, 17 Jan 2011 15:27:00 +0000 53747 at http://windowsitpro.com Replacing Strings in Files Using PowerShell http://windowsitpro.com/scripting/replacing-strings-files-using-powershell <div class="field-byline"> Bill Stewart </div> <div class="field-deck"> Script fills void left from missing cmdlet </div> <div class="node-body article-body">PowerShell doesn't have a native cmdlet for replacing strings of text in files, but you can use Replace-FileString.ps1 to fill this void.</div> <div class="og_rss_groups"></div><p><a href="http://windowsitpro.com/scripting/replacing-strings-files-using-powershell" target="_blank">read more</a></p> http://windowsitpro.com/scripting/replacing-strings-files-using-powershell#comments Development Windows Server PowerShell Scripting Systems Management Development File management FileStrings FileStrings PowerShell PowerShell PowerShell Regular expressions Scripting Scripting languages Scripting techniques Server Management Systems Management Fri, 19 Nov 2010 16:01:00 +0000 55067 at http://windowsitpro.com Windows PowerShell 2.0 Remoting http://windowsitpro.com/scripting/windows-powershell-20-remoting <div class="field-byline"> Bill Stewart </div> <div class="field-deck"> <p>A new way to connect to remote computers</p> </div> <div class="node-body article-body">PowerShell 2.0 offers a new way to connect to remote computers called remoting. When you use remoting to run a PowerShell cmdlet, the cmdlet actually runs on the remote computer but you can see the results on the local computer.</div> <div class="og_rss_groups"></div><p><a href="http://windowsitpro.com/scripting/windows-powershell-20-remoting" target="_blank">read more</a></p> http://windowsitpro.com/scripting/windows-powershell-20-remoting#comments Development PowerShell Scripting Systems Management Client Management Development PowerShell Scripting Scripting languages Systems Management Wed, 25 Aug 2010 16:45:00 +0000 44772 at http://windowsitpro.com Editing and Debugging Scripts with PowerShell 2.0's Integrated Scripting Environment http://windowsitpro.com/powershell/editing-and-debugging-scripts-powershell-20s-integrated-scripting-environment <div class="field-byline"> Bill Stewart </div> <div class="node-body article-body">New to PowerShell 2.0, the Integrated Scripting Environment (ISE) is a welcome addition. You can edit, run, and debug scripts from the same easy-to-use interface.</div> <div class="og_rss_groups"></div><p><a href="http://windowsitpro.com/powershell/editing-and-debugging-scripts-powershell-20s-integrated-scripting-environment" target="_blank">read more</a></p> http://windowsitpro.com/powershell/editing-and-debugging-scripts-powershell-20s-integrated-scripting-environment#comments Development PowerShell Scripting Development PowerShell Scripting Scripting languages Mon, 10 May 2010 04:01:00 +0000 47995 at http://windowsitpro.com Take Control of the PowerShell Console's Colors http://windowsitpro.com/powershell/take-control-powershell-consoles-colors <div class="field-byline"> Bill Stewart </div> <div class="node-body article-body">If you find the colors in the PowerShell console hard on your eyes or if you just want a change of pace, here's how you can change the color of the background and the color of the type.</div> <div class="og_rss_groups"></div><p><a href="http://windowsitpro.com/powershell/take-control-powershell-consoles-colors" target="_blank">read more</a></p> http://windowsitpro.com/powershell/take-control-powershell-consoles-colors#comments Development PowerShell Scripting Development PowerShell Reader to Reader Scripting Scripting languages Tue, 23 Mar 2010 17:30:00 +0000 45776 at http://windowsitpro.com Running PowerShell Scripts Is as Easy as 1-2-3 http://windowsitpro.com/powershell/running-powershell-scripts-easy-1-2-3 <div class="field-byline"> Bill Stewart </div> <div class="field-deck"> What you need to know about PowerShell's &amp;quot;secure by default&amp;quot; philosophy </div> <div class="node-body article-body">The "secure by default" philosophy can make running PowerShell scripts a hassle. With these 3 steps you'll be running PowerShell scripts in no time.</div> <div class="og_rss_groups"></div><p><a href="http://windowsitpro.com/powershell/running-powershell-scripts-easy-1-2-3" target="_blank">read more</a></p> http://windowsitpro.com/powershell/running-powershell-scripts-easy-1-2-3#comments Development Windows Client PowerShell Scripting Security CLI CLI Command-line interface Command-line interface Development development Development PowerShell PowerShell PowerShell Scripting Scripting languages Security Windows Windows Windows Client Fri, 19 Feb 2010 04:00:00 +0000 39644 at http://windowsitpro.com Get Information About .msi Files with Just a Few Clicks http://windowsitpro.com/systems-management/get-information-about-msi-files-just-few-clicks <div class="field-byline"> Bill Stewart </div> <div class="field-deck"> <p>Utility retrieves programs' names, versions, and more</p> </div> <div class="node-body article-body">If you have an .msi file with an obscure filename, you can find out what software program it'll install without using Orca or having to run it on a test machine. Here's a utility that will retrieve the program's name, version, and more.</div> <div class="og_rss_groups"></div><p><a href="http://windowsitpro.com/systems-management/get-information-about-msi-files-just-few-clicks" target="_blank">read more</a></p> http://windowsitpro.com/systems-management/get-information-about-msi-files-just-few-clicks#comments Development Virtualization Windows Client Scripting Systems Management Application virtualization usage-server Application virtualization-server Client Management Deployment Development Home Technology Home Theater Installation Jscript Scripting Scripting languages Server Virtualization Systems Management Task scheduling Utilities Virtualization Windows Client Wed, 10 Feb 2010 05:00:00 +0000 49542 at http://windowsitpro.com Windows Installer at a Glance http://windowsitpro.com/systems-management/windows-installer-glance <div class="field-byline"> Bill Stewart </div> <div class="node-body article-body">Here are the basics you need to know about Windows Installer packages and the .msi files they contain.</div> <div class="og_rss_groups"></div><p><a href="http://windowsitpro.com/systems-management/windows-installer-glance" target="_blank">read more</a></p> http://windowsitpro.com/systems-management/windows-installer-glance#comments Virtualization Windows Client Systems Management Application virtualization usage-server Application virtualization-server Client Management Deployment Home Technology Home Theater Installation Server Virtualization Systems Management Utilities Virtualization Windows Client Wed, 10 Feb 2010 05:00:00 +0000 46016 at http://windowsitpro.com Find Files on Local Drives with Whereis.ps1 http://windowsitpro.com/powershell/find-files-local-drives-whereisps1 <div class="field-byline"> Bill Stewart </div> <div class="field-deck"> <p>This PowerShell script supercharges the search capabilities of Get-ChildItem</p> </div> <div class="node-body article-body">See how this Windows PowerShell script works to enhance the abilities of the Get-ChildItem cmdlet and let you customize your file searches and output.</div> <div class="og_rss_groups"></div><p><a href="http://windowsitpro.com/powershell/find-files-local-drives-whereisps1" target="_blank">read more</a></p> http://windowsitpro.com/powershell/find-files-local-drives-whereisps1#comments Development PowerShell Scripting Development PowerShell Scripting Scripting languages Tue, 15 Dec 2009 05:00:00 +0000 56086 at http://windowsitpro.com