Quantcast
Channel: Scripting Blog
Browsing all 2129 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

Using PowerShell to create a folder of Demo data

Summary: Creating sample files with random sizes and dates for use in a Lab Q: Hey, Dr. Scripto! From time to time I like to show “how things works” at User Group meetings and to colleagues.   But I...

View Article


Image may be NSFW.
Clik here to view.

PowerTip: Use PowerShell to pick a random name from a list

Summary: Using the Get-Random Cmdlet to select a random list of names instead of numbers Hey! Dr. Scripto! I’d like to pick a random name from a list to generate user names in my lab.   Could you show...

View Article


Image may be NSFW.
Clik here to view.

Reporting on Microsoft 365 Licensing using PowerShell – Part 2

Summary: Will Martin continues his discussion on how to report on Microsoft 365 licensing in the cloud. Previous Posts on this article can be found here for continuity Reporting on Microsoft 365...

View Article

Image may be NSFW.
Clik here to view.

PowerTip: Identify the last time Users changed passwords in AzureAD

Summary: Using PowerShell to report on Users and the last time Passwords were changed Hey, Doctor Scripto! I need to report on users and when they updated their passwords In AzureAD. Could you show me...

View Article

Image may be NSFW.
Clik here to view.

Reporting on Microsoft 365 Licensing using PowerShell – Part 3

Summary: Will Martin finalizes his discussion on how to report on Microsoft 365 licensing in the cloud. Previous Posts on this article can be found here for continuity Reporting on Microsoft 365...

View Article


Image may be NSFW.
Clik here to view.

PowerTip: Identify Synchronized AzureAD accounts without a License assigned

Summary: Using PowerShell to identify users who are Synchronized to AzureAD but not yet licensed Hey, Doctor Scripto! I’d love to be able to identify users Synchronized to AzureAD that haven’t yet had...

View Article

Executing SQL Server Assessments from PowerShell

Summary: Using the SQLServer module cmdlets to review and monitor SQL Server instance and database configuration Q: Hey, Doctor Scripto! I have loads of SQL Servers in my area of responsibility and I...

View Article

Image may be NSFW.
Clik here to view.

PowerTip: Identify if SQL Servers are configured to best practices

Summary: Using the features of the SQLServer PowerShell module to run assessments of your servers How can I easily check that my SQL Servers are all configured to meet best practices? You can use SQL...

View Article


Automating Quser through PowerShell

Summary: Using PowerShell to automate Quser to identify users to Logoff systems in Windows Hey Doctor Scripto! I need to log a user off every computer they’re logged into. The problem is, I don’t know...

View Article


Image may be NSFW.
Clik here to view.

PowerTip: Using PowerShell to Convert raw Text to a Comma Separated columm

Summary: Using PowerShell and a very simple Regular Expression to convert Random counts of spaces to a Comma Hey Doctor Scripto! I have some string based output from a non PowerShell application. The...

View Article

Image may be NSFW.
Clik here to view.

Configuring Startup Settings in Microsoft Teams with Windows PowerShell

Summary: Using the ConvertFrom-JSON and ConvertTo-JSON Cmdlets to edit a configuration file Q: Hey, Doctor Scripto! I need to be able to change the Startup settings in Teams (like the Auto launch...

View Article

Image may be NSFW.
Clik here to view.

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

View Article

Image may be NSFW.
Clik here to view.

Maximizing the Power of Here-String in PowerShell for Configuration Data

Summary: Discovering some of the awesome and neat ways to leverage a Here-String in a Script or function Q: Hey, Doctor Scripto! I used to write scripts with supporting configuration files that never...

View Article


Image may be NSFW.
Clik here to view.

PowerTip: Identify if you are running on PowerShell Core

Summary: Pulling up the properties of $PSVersionTable to identify your PowerShell edition Hey, Doctor Scripto! I want to write my modules and scripts to be more portable. How can I tell if I am...

View Article

Creating a Platform Independent Function in PowerShell

Summary: Creating a Function in PowerShell and the power of the $PSVersionTable to make code more portable Q: Hey, Doctor Scripto! I saw that post last week on converting Here-String into an array. I...

View Article


Image may be NSFW.
Clik here to view.

PowerTip: Identify which Platform PowerShell is running on

Summary: Using $PSVersionTable to identify if you are on Windows or Unix Hey, Doctor Scripto! I’m working on my PowerShell scripts and I need to be able to identify if I’m working on Windows or Linux....

View Article

Image may be NSFW.
Clik here to view.

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

Summary: Using PowerShell and Regular Expressions as a wrapper on NetSh.exe output to identify the profiles. Hey, Doctor Scripto! I have a whole pile of old Wireless profiles that have been collecting...

View Article


Image may be NSFW.
Clik here to view.

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

View Article

Image may be NSFW.
Clik here to view.

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

Summary: Using Measure-Command to determine the fastest approach to a solution. Last week we were having some fun using PowerShell as a wrapper around the NetSh.exe command’s output. We were left at a...

View Article

Image may be NSFW.
Clik here to view.

PowerTip: Identify Drives Encrypted with Bitlocker

Summary: Using the Get-Bitlocker Cmdlet to show the status of drives on your Windows 10 computer Hey, Doctor Scripto. Is there a nice simple way to see if drives are Bitlocker encrypted? A most...

View Article
Browsing all 2129 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>