Showing results for functions - Scripting Blog [archived]

Oct 16, 2019
0
0

Using PowerShell to View and Remove Wireless Profiles in Windows 10 – Part 4

Doctor Scripto
Doctor Scripto

Summary: Using Windows PowerShell to purge Wlan profiles with NetSh.exe. Last week we had a way with a Regular Expression to run one Netsh.exe command and show only the profile names as a PowerShell Array. Today we're going to finish the task and show you how to delete those Profiles. As a quick reminder here's the line in PowerShell we ...

Sean KearneyPowerShellfunctions
Jan 23, 2016
0
0

PowerTip: Create list of approved PowerShell verbs

Doctor Scripto
Doctor Scripto

Summary: Learn how to easily produce a list of approved Windows PowerShell verbs.  How can I find what verbs are approved for use in a Windows PowerShell function?  Use the Get-Verb cmdlet, and to make it easy to peruse, send the output to the Out-GridView cmdlet: get-verb | Out-GridView...

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

Use Function to Determine Elevation of PowerShell Console

Doctor Scripto
Doctor Scripto

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 Windows Server 2012 R2 required ...

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

One of My Favorite PowerShell Functions

Doctor Scripto
Doctor Scripto

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 Wife and I are looking forward to attending ...

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

Weekend Scripter: Replace One PowerShell Function with Another

Doctor Scripto
Doctor Scripto

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. I am often asked if I run out of ideas, and the answer is...

Scripting Guy!Windows PowerShellscripting techniques