Skip to main content
Microsoft
PowerShell Community
PowerShell Community
  • Home
  • DevBlogs
    • Visual Studio
    • Visual Studio Code
    • Visual Studio for Mac
    • DevOps
    • Developer support
    • CSE Developer
    • Engineering@Microsoft
    • Azure SDK
    • IoT
    • Command Line
    • Perf and Diagnostics
    • Dr. International
    • Notification Hubs
    • Math in Office
    • DirectX
    • PIX
    • SurfaceDuo
    • Startups
    • Sustainable Engineering
    • Windows AI Platform
    • C++
    • C#
    • F#
    • Visual Basic
    • TypeScript
    • PowerShell Community
    • PowerShell Team
    • Python
    • Q#
    • JavaScript
    • Java
    • Java Blog in Chinese
    • .NET
    • .NET MAUI
    • Blazor
    • ASP.NET
    • NuGet
    • Xamarin
    • #ifdef Windows
    • Apps for Windows
    • Azure Depth Platform
    • Azure Government
    • Bing Dev Center
    • Microsoft Edge Dev
    • Microsoft Azure
    • Microsoft 365 Developer
    • Old New Thing
    • Windows MIDI and Music dev
    • Windows Search Platform
    • Azure Cosmos DB
    • Azure Data Studio
    • Azure SQL Database
    • OData
    • Revolutions R
    • SQL Server Data Tools

    @DoctorDNS

    PowerShell Evangelist, PowerShell Community Blog

    I'm just this old guy living in the English countryside. I know a bit about PowerShell and Windows. Love the Grateful Dead. Been excited about PowerShell since the first time Jeffrey Snover spoke about it in public. I have loved it, and the community ever since. So pleased to be able to give back here.

    Post by this author

    How to Preview PowerShell Scripts In PowerShell
    How to Preview PowerShell Scripts In PowerShell
    December 13th, 2021
    Q: When I use Windows Explorer and select a PowerShell script file - I do not see the script in the preview window. Can I fix that? A: You can make a few simple registry updates and do just what you want! At some time in the deep and distant past, Windows Explorer gained the preview pane feature. The idea is simple: you select a file in ...

    Comments are closed.0ExplorerExplorer Preview
    How to Use $PSDefaultParameterValues
    How to Use $PSDefaultParameterValues
    December 7th, 2021
    Q: When I use cmdlets like Receive-Job and Format-Table, how do I change default values of the Keep and Wrap parameters? A: Use the $PSDefaultValues automatic variable. When I first discovered PowerShell's background jobs feature, I would use Receive-Job to view job output - only to discover it's no longer there. And almost too often to ...

    2Default Parameter valuesparameters
    How to Use $FormatEnumerationLimit
    How to Use $FormatEnumerationLimit
    November 5th, 2021
    Q: When I format an object where a property contains more than 4 objects, I never see the extra property values. How can I fix that? A: Use the $FormatEnumerationLimit variable. This query is one I hear in many PowerShell support forums, and I have encountered this issue a lot over the years. What happens is that you issue a command to ...

    Comments are closed.0FormatFormatEnumerationLimit variable
    How to use the Secret modules
    How to use the Secret modules
    October 25th, 2021
    Q: I have a bunch of scripts we use in production that make use of Windows credentials. In some cases, these scripts have an actual password in plain text, while others read the password from an XML file. Is there a better way? A: Scripts with high-privilege account passwords in plain text is not a good idea. There are several methods you can...

    3credentialspasswordsSecretManagement
    How to Make Use Of PowerShell Profile Files
    How to Make Use Of PowerShell Profile Files
    September 21st, 2021
    Q: I would like to personalize the way that PowerShell works. I have heard that I can use a thing called a profile to do this, but when I try to find information about profiles, I come up blank. There is no New-Profile cmdlet, so I do not see how to create such a thing. Can you help me, please? A: Profiles are a powerful part of PowerShell ...

    2PowerShellprofile
    How to Update or Add a Registry Key Value with PowerShell
    How to Update or Add a Registry Key Value with PowerShell
    July 30th, 2021
    Q: I am having a problem trying to update the registry. I am using the New-ItemProperty cmdlet, but it fails if the registry key does not exist. I added the –Force parameter, but it still does not create the registry key. The error message says that it cannot find the path because it does not exist. Is there something I am not doing? I ...

    3PowerShellproviderregistry
    How to Change the Start Page for the Edge Browser
    How to Change the Start Page for the Edge Browser
    June 21st, 2021
    Q: How can I change the Edge startup page? A: You can change the start page easily using PowerShell. Edge and It's Start Page I am basing this article on the latest incarnation of the Edge browser, aka Edge Chromium. The settings in this article seem to work fine on the latest versions of Windows 10 and Server 2022. Other browsers can have ...

    8EdgePowerShell
    How to rename a NIC
    How to rename a NIC
    June 13th, 2021
    Q: Is there a simple way to rename a NIC, especially inside a Hyper-V VM? A: You can change the name of any Windows NIC using PowerShell - whether the NIC is in a physical host or a Hyper-V VM. NICS and NIC names One thing that can quickly become confusing when using Hyper-V with multiple VMs and VM Switches is how fast the network adapters...

    4networkNICPowerShell
    How to send output to a file
    How to send output to a file
    May 24th, 2021
    Q: Is there an easy way to save my script output to a text file rather than displaying it on screen? A: Of course - there are multiple ways to do just that! PowerShell and Output One of PowerShell's great features is the way it automatically formats output. You type a command - PowerShell gives you the output it thinks you want. If the ...

    2outputPowerShell
    How Do I Discover Changes to an AD Group’s Membership
    How Do I Discover Changes to an AD Group’s Membership
    May 7th, 2021
    Q: Is there an easy way to detect and changes to important the membership of AD Groups? A: Easy using PowerShell 7, WMI, and the CIM Cmdlets. WMI Windows Management Instrumentation (WMI) is an important component of the Windows operating system. WMI is an infrastructure of both management data and management operations on Windows-based ...

    5ADWMIWMI Eventing
    • 1
    • 2
    Topics
    .NETACLActive DirectoryActiveDirectoryADAnnouncementArrayBlog newsCaps LockClipboardcmdletconfigurationcredentialsCrescendoDefault Parameter valuesDevOpsEdgeErrorActionEventsExisting CmdletExplorerExplorer PreviewFileFileSystemWatcherFormatFormatEnumerationLimit variableFun trickFunctionGitjsonlocal userslogon scriptsModulenetstatnetworknetworkingNew PurposeNICoutputoutput handlerparametersparsingparsing stringspasswordsPowerShellPreference VariablesprofileProgressproviderregistryScripting Guys UpdateSecretManagementsecuritystringTest-PathToUpper()VBScriptVerbosevssadminWMIWMI EventingXML
    Top Bloggers

    @DoctorDNS
    PowerShell Evangelist

    Sean Wheeler
    Sr. Content Developer for PowerShell

    Faris Malaeb
    External Author

    James O'Neill
    Freelance IT Consulant

    Links
    • About this blog
    • How to contribute to the blog
    • PowerShell Team blog
    • Scripting blog (retired)

    Stay informed

    Login
    Code Block
    What's new
    • Surface Pro 8
    • Surface Laptop Studio
    • Surface Pro X
    • Surface Go 3
    • Surface Duo 2
    • Surface Pro 7+
    • Windows 11 apps
    • HoloLens 2
    Microsoft Store
    • Account profile
    • Download Center
    • Microsoft Store support
    • Returns
    • Order tracking
    • Virtual workshops and training
    • Microsoft Store Promise
    • Flexible Payments
    Education
    • Microsoft in education
    • Devices for education
    • Microsoft Teams for Education
    • Microsoft 365 Education
    • Education consultation appointment
    • Educator training and development
    • Deals for students and parents
    • Azure for students
    Business
    • Microsoft Cloud
    • Microsoft Security
    • Azure
    • Dynamics 365
    • Microsoft 365
    • Microsoft Advertising
    • Microsoft Industry
    • Microsoft Teams
    Developer & IT
    • Developer Center
    • Documentation
    • Microsoft Learn
    • Microsoft Tech Community
    • Azure Marketplace
    • AppSource
    • Microsoft Power Platform
    • Visual Studio
    Company
    • Careers
    • About Microsoft
    • Company news
    • Privacy at Microsoft
    • Investors
    • Diversity and inclusion
    • Accessibility
    • Security
    English (United States)
    • Sitemap
    • Contact Microsoft
    • Privacy
    • Manage cookies
    • Terms of use
    • Trademarks
    • Safety & eco
    • About our ads
    • © Microsoft 2022