Doctor Scripto

Parallel Processing with jobs in PowerShell

Hello everyone!  Doctor Scripto is elated to present some more great content from Joel Vickery, PFE , today he discusses using jobs in PowerShell.   Stay tuned in the upcoming weeks for some amazing regular content.   Take it away Joel! I have to be honest, back in 2010 I was firmly entrenched in VBScript and […]

Parallel Processing with jobs in PowerShell Continue Reading

PowerTip: Use Windows PowerShell to display all Environment variables

Summary: Doctor Scripto demonstrates how to use [System.Environment] to show all currently set environment variables Question: Hey Doctor Scripto, I remember in DOS if I wanted to see the values of all the Environment variables; like TEMP I could just type the SET Command. How do I do this in PowerShell? Answer: You can do

PowerTip: Use Windows PowerShell to display all Environment variables Continue Reading

Testing RPC ports with PowerShell (and yes, it’s as much fun as it sounds!)

Summary: Using PowerShell to identify RPC ports in use by capturing content from Dos Commands like PortQRY.exe We’d like to introduce you today to one of our newest bloggers!  It’s a froopingly awesome friend of ours, Joel Vickery, PFE.  (did I mention Dr. Scripto is a big fan of books written by Douglas Adams?….oops!) Take

Testing RPC ports with PowerShell (and yes, it’s as much fun as it sounds!) Continue Reading

PowerTip: Identify if CredentialGuard is enabled with Windows PowerShell

Summary: Easily identify if Credential Guard is enabled using the Get-ComputerInfo Cmdlet in Windows 10 Question: Hey Doctor Scripto, how can I tell if CredentialGuard has been enabled on my Windows 10 computer? Answer: Just use the Get-ComputerInfo Cmdlet and target the DeviceGaurdSecurityServicesConfigured property. The following line will produce a Boolean $TRUE if it is

PowerTip: Identify if CredentialGuard is enabled with Windows PowerShell Continue Reading

PowerTip: Using Set-ADUser with multi-valued attributes

Summary: Using the -Replace parameter with Set-ADUser to take an array to populate multi-valued attributes Question: Hey Doctor Scripto, how can I use Set-ADUser to populate multivalued attributes in Active Directory? Answer: You can use an array with the -Replace parameter to do it. Set-ADUser -Identity “TestUser” -Replace @{ProxyAddresses = @(“Address1″,”Address2″,”Address3”)} PowerShell, Doctor Scripto, PowerTip,

PowerTip: Using Set-ADUser with multi-valued attributes Continue Reading

Copy multi-valued Active Directory attributes from one user to another with PowerShell

Summary: Using -Replace parameter with Set-ADUser to copy Active Directory multi-valued attributes Q: Hey, Doctor Scripto! We are in the middle of an Active Directory migration and need to copy the multi-valued attribute “ProxyAddresses” from old user accounts to new ones. Can you do with a few lines of code? —ND A: Hello ND, Hello

Copy multi-valued Active Directory attributes from one user to another with PowerShell Continue Reading

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

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

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

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

Summary: Using Regular Expressions to cleanup string data from NetSh.exe. Let’s remember the last two discussions. The first time we looked at using PowerShell to identify wireless profiles with some simple regular expressions. We followed up the next week with how to identify which approach would be the fastest. Today we’re going to take that

Using PowerShell to View and Remove Wireless Profiles in Windows 10 – Part 3 Continue Reading

PowerTip: Converting a Here-String to an Array in One Line with PowerShell

Summary: Using the split method in a more powerful fashion to split an array based upon two line terminating types Hey, Doctor Scripto. I was wondering if there was a more efficient way of converting a Here-String to an Array when there were multiple line termination options like Linefeed or Carriage Return and Linefeed? There

PowerTip: Converting a Here-String to an Array in One Line with PowerShell Continue Reading

PowerTip: Read a JSON configuration file as a PowerShell object

Summary: Using the ConvertFrom-Json Cmdlet in PowerShell to read a JSON formatted file Hey, Doctor Scripto! I’ve seen a lot of JSON files in use in Azure. I’m not very good with editing JSON properly. Is there an easy way to read this and at least edit it with PowerShell? Most definitely my good friend.

PowerTip: Read a JSON configuration file as a PowerShell object Continue Reading