Summary: Learn how to quickly find the latest events in a Windows event log. How can I use Windows PowerShell to look in the Application log to see the latest events? Use the Get-Eventlog cmdlet, specify the log name, and select newest events, for example: Get-EventLog application -Newest 5
Troubleshooting WinRM—The Video Part 2
Summary: Ed Wilson, Microsoft Scripting Guy, presents a video about troubleshooting WinRM (part 2). Microsoft Scripting Guy, Ed Wilson, is here. Today I present part two of my troubleshooting WinRM video. In this video, I talk about five basic commands that are used in troubleshooting WinRM. Note For more information about these commands see this…
PowerTip: Use PowerShell to Get Windows Home Location
Summary: Use Windows PowerShell to get the Windows home location setting. How can I get the Windows GeoID home location setting for the current user account with Windows PowerShell 5.0 on Windows 10? Use the Get-WinHomeLocation cmdlet.
Troubleshoot WinRM—The Video Part 1
Summary: Ed Wilson, Microsoft Scripting Guy, presents a video about troubleshooting WinRM (part 1). Microsoft Scripting Guy, Ed Wilson, is here. Today I present a video where I talk a bit about troubleshooting WinRM. First I talk about looking at the WinRM logs, and then I talk about checking specific things such as: Is the WinRM…
PowerTip: Find Win32 Type Data in PowerShell
Summary: Learn how to find Win32 WMI classes in Windows PowerShell that have type data. How can I easily find which WMI classes in Windows PowerShell have their own type data? Use the Get-TypeData cmdlet and filter for types that contain Win32, for example: Get-TypeData -TypeName *win32*
Playing with JSON and PowerShell
Summary: Ed Wilson, Microsoft Scripting Guy, talks about playing with JSON and Windows PowerShell 5.0. Microsoft Scripting Guy, Ed Wilson, is here. The Scripting Wife has an updated shopping list. It includes a Microsoft Band 2 and a Surface Pro 4. The launch was a mouthwatering event and really well done. One of the cool cmdlets in Windows…
PowerTip: Concatenate String Array with PowerShell
Summary: Use Windows PowerShell to concatenate elements of a array. How can I use Windows PowerShell to concatenate the elements of a string array? Use the static Concat method from the String class, for example: $a = "string a" $b = "string b" $arr = @($a,$b) [string]::Concat($arr)
Dude, a String Is a String in PowerShell
Summary: Ed Wilson, Microsoft Scripting Guy, talks about using string methods to determine null or empty in Windows PowerShell. Hey, Scripting Guy! I have a problem with a script. It is used to write data to another application, but sometimes the variables in it are empty. I have tried to detect this by checking to…
PowerTip: Enable PowerShell Remoting
Summary: Learn how to enable Windows PowerShell remoting. How can I turn on Windows PowerShell remoting on my workstation so it will run remote commands? Use the Enable-PSRemoting cmdlet.
Troubleshooting WinRM with PowerShell—Part 2
Summary: Ed Wilson, Microsoft Scripting Guy, talks about troubleshooting WinRM. Hey, Scripting Guy! So I thought that Windows PowerShell remoting was supposed to just work. Well, it doesn't. I am confused, and don’t even know where to begin. I am pretty sure that it should be enabled, but it is not working. Can you help?…