Showing results for July 2015 - Scripting Blog [archived]

Jul 31, 2015
0
0

PowerTip: Download Links from Webpage with PowerShell

Doctor Scripto
Doctor Scripto

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").Links.Href...

Scripting Guy!Windows PowerShellPowerTip
Jul 31, 2015
0
0

What’s My PID?

Doctor Scripto
Doctor Scripto

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 and, for example, look to see what the process ID...

Scripting Guy!Windows PowerShellscripting techniques
Jul 30, 2015
0
0

PowerTip: Find Most Recent Event Log Entry

Doctor Scripto
Doctor Scripto

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...

Scripting Guy!Windows PowerShellPowerTip
Jul 30, 2015
0
0

Launch Elevated PowerShell Shell

Doctor Scripto
Doctor Scripto

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 PowerShell community seems to be really engaged with ...

Scripting Guy!Windows PowerShellscripting techniques
Jul 29, 2015
0
0

PowerTip: Use PowerShell to Check Logon Server for Client

Doctor Scripto
Doctor Scripto

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&...

Scripting Guy!Windows PowerShellscripting techniques