Browse by Tags

Tagged Content List
  • Blog Post: Use Transcript Tool in PowerShell ISE

    Summary : Ed Wilson, Microsoft Scripting Guy, talks about using the Windows PowerShell ISE transcript in PowerShell 5.0 in Windows 10. Microsoft Scripting Guy, Ed Wilson, is here. It is not a secret that I love Windows PowerShell. It is also not a secret that Windows PowerShell keeps getting better...
  • Blog Post: PowerTip: Use PowerShell 5.0 to Clear Recycle Bin

    Summary : Learn how to clear the recycle bin by using Windows PowerShell 5.0 in Windows 10. How can I use Windows PowerShell to clear the recycle bin in my laptop running Windows 10? Use the Clear-RecycleBin cmdlet.
  • Blog Post: Cool Stuff about PowerShell 5.0 in Windows 10

    Summary : Ed Wilson, Microsoft Scripting Guy, talks about cool stuff in Windows PowerShell 5.0 for Windows 10. Microsoft Scripting Guy, Ed Wilson, is here. Over the weekend, I installed Windows 10. It is way cool. I love what we have done with the charms bar…it is gone. I also like the streamlined...
  • Blog Post: PowerTip: Find PowerShell Help Content

    Summary : Learn how to find all Windows PowerShell Help content. I updated the Help files on my installation of Windows PowerShell. I can find the cmdlet Help, but how can I see the Help text files? Use the Get-Help cmdlet, search for the HelpFile category, select all of them with a wildcard character...
  • Blog Post: Weekend Scripter: Exploring Windows PowerShell 5.0

    Summary : Teresa Wilson, Powershell MVP, talks about exploring Windows PowerShell 5.0 on Windows 10. Teresa Wilson, AKA the Scripting Wife, is here. The Microsoft Scripting Guy, Ed Wilson, is still missing in action. He downloaded Windows 10, and I haven’t seen him since. So I thought I would...
  • Blog Post: PowerTip: Install PowerShell Help on PowerShell 5.0

    Summary : Update Help for Windows PowerShell 5.0. I installed Windows 10 and opened Windows PowerShell, but how can I update the Help for Windows PowerShell 5.0? Open Windows PowerShell as an Administrator, type Update-Help , select all of the modules, and use the –Force parameter if you...
  • Blog Post: Weekend Scripter: Upgrade to Windows 10

    Summary : Teresa Wilson, Windows PowerShell MVP, talks about upgrading to Windows 10. Teresa Wilson, AKA the Scripting Wife, is here. I first wanted to mention that Ed and I will be in Atlanta on August 21 for TechStravaganza . At the time I am writing this there are 22 tickets remaining, so hurry...
  • Blog Post: PowerTip: Find What Version of PowerShell You Have

    Summary : Easily find what version of Windows PowerShell you are running. I upgraded to Windows 10, but how can I confirm what version of Windows PowerShell I am running? Use the $psversiontable automatic variable.
  • Blog Post: What’s My PID?

    Summary : Ed Wilson, Microsoft Scripting Guy, creates a function to capture the process ID of a Windows PowerShell host. Microsoft Scripting Guy, Ed Wilson, is here. One of the things I like to know is the process ID (PID) of specific processes. Often this is trivial. I can use the Get-Process cmdlet...
  • Blog Post: PowerTip: Download Links from Webpage with PowerShell

    Summary : Use Windows PowerShell to download links from a webpage. How can I use Windows PowerShell to easily download links from a webpage that has a lot of links I want? Use Invoke-WebRequest and select Links and href , for example: (Invoke-WebRequest -Uri "http://www.scriptingguys.com"...
  • Blog Post: Launch Elevated PowerShell Shell

    Summary : Ed Wilson, Microsoft Scripting Guy, talks about launching an elevated Windows PowerShell shell. Microsoft Scripting Guy, Ed Wilson, is here. Today I had a great talk with Steve, the Scripting Manager. One of the things we talked about was the importance of community, and how the Windows...
  • Blog Post: PowerTip: Find Most Recent Event Log Entry

    Summary : Use Windows PowerShell to find the most recent event log entry. How can I use Windows PowerShell to see the most recent event log entry from my application log? Use the Get-EventLog cmdlet and select the application log and the Newest 1 entry: Get-EventLog application -Newest 1
  • Blog Post: Use Function to Determine Elevation of PowerShell Console

    Summary : Ed Wilson, Microsoft Scripting Guy, talks about using a function to determine if a Windows PowerShell console is elevated. Microsoft Scripting Guy, Ed Wilson, is here. I had a friend tell me that nearly half of all the cmdlets, functions, and whatever’s in Windows PowerShell 4.0 on...
  • Blog Post: PowerTip: Use PowerShell to Check Logon Server for Client

    Summary : Use Windows PowerShell to check the logon server of your clients. How can I use Windows PowerShell to verify if my users are trying to sign in to their computers with a Windows account instead of using their domain credentials? Check the value of the environmental LOGONSERVER variable...
  • Blog Post: One of My Favorite PowerShell Functions

    Summary : Ed Wilson, Microsoft Scripting Guy, discusses one of his favorite functions: Get-EnumValues. Microsoft Scripting Guy, Ed Wilson, is here. Today I am working on my presentation for Atlanta TechStravaganza 2015 , which will happen on August 21. It will be a really cool event, and the Scripting...
  • Blog Post: PowerTip: Read File with Backtick in Name

    Summary : Read the content of a text file with a backtick ( ` ) in the name. How can I use Windows PowerShell to read the content of a file that has a backtick ( ` ) in the file name? Use single quotation marks around the name when you supply the path to Get-Content , for example: Get-Content...
  • Blog Post: Describe Your PowerShell Variables

    Summary : Ed Wilson, Microsoft Scripting Guy, talks about adding a description to variables. Microsoft Scripting Guy, Ed Wilson, is here. There is a “water feature” outside that keeps running and running and running. It is a bit strange, and to be honest, it makes me think that it is raining...
  • Blog Post: PowerTip: Find PowerShell Variables Defined for AllScope

    Summary : Find Windows PowerShell variables that are defined for all scopes. How can I find what variables are defined as AllScope in my Windows PowerShell environment? Get a list of all your variables, and filter for options that include AllScope , for example: (dir variable:).where({$_.options...
  • Blog Post: Weekend Scripter: Back Up Your PowerShell Profile

    Summary : Ed Wilson, Microsoft Scripting Guy, talks about automatically backing up your Windows PowerShell profile. Microsoft Scripting Guy, Ed Wilson, is here. My rule for making backups is that when the loss of the item would cause me grief, it is backed up. Otherwise, there is not too much need...
  • Blog Post: PowerTip: Open Temporary Copy of PowerShell Profile

    Summary : Open a temporary copy of your Windows PowerShell profile. How can I look at a temporary copy of my Windows PowerShell profile to ensure that I don’t accidentally make any changes? Copy your Windows PowerShell profile to a temporary file, and then open it in the Windows PowerShell...
  • Blog Post: Weekend Scripter: Replace One PowerShell Function with Another

    Summary : Ed Wilson, Microsoft Scripting Guy, talks about replacing one Windows PowerShell function with a different one. Microsoft Scripting Guy, Ed Wilson, is here. One of the problems with writing Windows PowerShell code every day is that you eventually... No, it’s not what you think....
  • Blog Post: PowerTip: Launch PowerShell Without a Profile

    Summary : Learn how to launch Windows PowerShell without using a profile. I suspect my profile is causing issues with Windows PowerShell. How can I launch Windows PowerShell without starting the profile? Use the Run command to launch Windows PowerShell with the –noprofile switch: PowerShell...
  • Blog Post: Two Cool PowerShell Functions

    Summary : Ed Wilson, Microsoft Scripting Guy, talks about a pair of cool Windows PowerShell functions to add to your profile. Microsoft Scripting Guy, Ed Wilson, is here. At times, it seems like a Windows PowerShell profile is like a filing cabinet. Whether you have good organizational skills or you...
  • Blog Post: PowerTip: Create New PowerShell Profile for All Hosts

    Summary : Learn how to create a new Windows PowerShell current user profile for all hosts. How can I easily create current user profile for all hosts that can be used in the Windows PowerShell console and the Windows PowerShell ISE? Use the New-Item cmdlet to create a new file. To find the correct...
  • Blog Post: PowerShell Profile? Which One?

    Summary : Ed Wilson, Microsoft Scripting Guy, talks about determining which Windows PowerShell profile to use for which functions. Microsoft Scripting Guy, Ed Wilson, is here. Living in central Florida can be a bit warm and humid in late July. Of course, I knew that before we moved here. I told one...