Summary : When writing a Windows PowerShell script, code reuse can speed up the process. Ed Wilson discusses best practices for reusing code. Hey, Scripting Guy! I often write Windows PowerShell scripts, and when I need to use a function that I wrote...(read more)
↧
How to Reuse Windows PowerShell Functions in Scripts
↧
Masking Passwords in Windows PowerShell
Summary : With Windows PowerShell cmdlets, it is easy to mask passwords used when scripting remote applications. Hey, Scripting Guy! I need to be able to mask a password when running a Windows PowerShell script. I am attempting to convert my VBScript...(read more)
↧
↧
Pausing a Windows PowerShell Script to Receive Keyboard Input
Summary : Pausing execution of a Windows PowerShell script to receive keyboard input can be as simple as using the Read-Host cmdlet. But other methods are available. Hey, Scripting Guy! I would like to pause a Windows PowerShell script and wait for user...(read more)
↧
Quick-Hits Friday: The Scripting Guys Respond to a Bunch of Questions (8/13/10)
In this post : How Do I Paste Code into the Windows PowerShell Console? Automation with Windows PowerShell How Can I Create an Automated Lockdown for Windows 7 by Using Windows PowerShell? How Can I Filter Search Results in the Script Repository? How...(read more)
↧
Using Group Policy to Deploy a Windows PowerShell Logon Script
Summary : The easiest way to deploy a Windows PowerShell script to users is to create a Group Policy logon script. Microsoft Scripting Guy Ed Wilson here. Oh…my eyes feel like they are glued to my eyelids. I am not a night owl , unlike the female...(read more)
↧
↧
Using PowerShell to Format a Report from XML Data
Summary : Use Windows PowerShell to create a formatted report from data stored in XML files. Microsoft Scripting Guy Ed Wilson here. It is still dark outside, and the lights of the neighborhood are slowly beginning to come on. It is really humid this...(read more)
↧
Using PowerShell to Find All Disabled Users in Active Directory
Summary : The Scripting Guys discuss three different approaches to finding disabled user accounts in Active Directory Domain Services by using Windows PowerShell. Hey, Scripting Guy! I would like to use Windows PowerShell to search Active Directory Domain...(read more)
↧
How to Change a User's Active Directory Password with PowerShell
Summary : The Scripting Guys discuss using Windows PowerShell to change a user's Active Directory password in this how-to article. Hey, Scripting Guy! I need to be able to change a user’s password by using Windows PowerShell. In the VBScript days...(read more)
↧
Sort an Active Directory User Group’s Members by Using PowerShell
Summary : Sorting lists of data in VBScript often involved writing complex code. The Sort cmdlet in Windows PowerShell makes that task easier. Hey, Scripting Guy! I need to be able to use Windows PowerShell to list the members of a group in Active Directory...(read more)
↧
↧
Use PowerShell to Add Domain Users to a Local Group
Summary : By using Windows PowerShell splatting, domain users can be added to a local group. This script includes a function to convert a CSV file to a hash table. Hey, Scripting Guy! I need to be able to use Windows PowerShell to add domain users to...(read more)
↧
Quick-Hits Friday: The Scripting Guys Respond to a Bunch of Questions (8/20/10)
In this post : Dealing with Hidden File Extensions How Can I Programmatically Remove the Everyone Group? How Can I Stop a Script That Has Started Running? Troubleshooting a Script That Uses WMI Dealing with Hidden File Extensions Hey, Scripting...(read more)
↧
Exploring the Windows PowerShell ISE Color Objects
Summary : Join Microsoft Scripting Guy Ed Wilson as he takes you on a guided tour of the Windows PowerShell ISE color objects. Microsoft Scripting Guy Ed Wilson here. It is a beautiful sunny afternoon. I have decided to embrace the sunshine and accept...(read more)
↧
Changing the Fonts Used by the Windows PowerShell ISE
Summary : See how to change the fonts used by the Windows PowerShell ISE in the Script pane and Output pane. Microsoft Scripting Guy Ed Wilson here. The summer is rapidly drawing to a close, although the summer heat and humidity will more than likely...(read more)
↧
↧
Use the DirectorySearcher .NET Class and PowerShell to Search Active Directory
Summary : Learn how to search Active Directory Domain Services from Windows PowerShell by using the DirectorySearcher .NET class. Hey Scripting Guy! I am curious about searching Active Directory Domain Services (AD DS) from Windows PowerShell. I have...(read more)
↧
Use the PowerShell [adsiSearcher] Type Accelerator to Search Active Directory
Summary : Learn how to use the Windows PowerShell [adsiSearcher] type accelerator to search Active Directory Domain Services (AD DS). Hey, Scripting Guy! I am trying to get in touch with my inner programmer. The problem is that our company has cut head...(read more)
↧
Query Active Directory and Ping Each Computer in the Domain by Using PowerShell
Summary : Query Active Directory and ping each computer in the domain by using Windows PowerShell. The Scripting Guys show you how. Hey, Scripting Guy! I am THE IT person at my company. I am also a chemical engineer who has daily production responsibilities...(read more)
↧
Query Active Directory with PowerShell and Run WMI Commands
Summary : Use Windows PowerShell to Query Active Directory for computers and then run WMI commands on the remote machines. The Scripting Guys show you how. Hey, Scripting Guy! We have a major problem at my company. We have a standard corporate...(read more)
↧
↧
Quick-Hits Friday: The Scripting Guys Respond to a Bunch of Questions (8/27/10)
In this post : How Can I Take Script Output and Use It in Other Scripts? Troubleshooting a Script That Reads from Excel Does Windows 7 Recognize VBScript Scripts? Can I Change the Path to the Profile Folder in Windows PowerShell? How Can I Take Script...(read more)
↧
Change Colors Used by the Windows PowerShell ISE
Summary : Learn how to change colors used by the Windows PowerShell ISE to customize your scripting environment. Microsoft Scripting Guy Ed Wilson here. One of the things that is kind of lame about Charlotte is that there is not a good computer store...(read more)
↧
Customize Colors and Fonts in the Windows PowerShell ISE
Summary : Customize colors and fonts in the Windows PowerShell ISE. The Microsoft Scripting Guys show you how to script the script editor. How meta! Microsoft Scripting Guy Ed Wilson here. In just about two weeks it will be my birthday, and I have...(read more)
↧