If you ever needed a tool to find out the type of file system for any drive, take a look at this simple PowerShell function: function...
posts-powershell
Categories
- Free tools
- SQL Admin Toolset
- SQL Compliance Manager
- SQL Defrag Manager
- SQL Diagnostic Manager for MySQL
- SQL Diagnostic Manager for SQL Server
- SQL Diagnostic Manager Pro
- SQL Doctor
- SQL Enterprise Job Manager
- SQL Inventory Manager
- SQL Query Tuner for SQL Server
- SQL Safe Backup
- SQL Secure
- SQL Workload Analysis for SQL Server
- Uptime Infrastructure Monitor Formerly Uptime
Tags
Administration agent-based monitoring Agentless Monitoring alert responses alert thresholds alerting Alerts Amazon Aurora Amazon EC2 Amazon RDS Amazon RDS / Aurora Amazon RDS for SQL Server Amazon Redshift Amazon S3 Amazon Web Services (AWS) Analytics application monitoring Aqua Data Studio automation availability Azure Azure SQL Database azure sql managed instance Azure VM backup Backup and recovery backup and restore backup compression backup status Backup Strategy backups big data Blocking bug fixes business architecture business data objects business intelligence business process modeling business process models capacity planning change management cloud cloud database cloud database monitoring cloud infrastructure cloud migration cloud providers Cloud Readiness Cloud Services cloud storage cloud virtual machine cloud VM clusters code completion collaboration compliance compliance audit compliance audits compliance manager compliance reporting conference configuration connect to database cpu Cross Platform custom counters Custom Views customer survey customer testimonials Dark Theme dashboards data analysis Data Analytics data architect data architecture data breaches Data Collector data governance data lakes data lineage data management data model data modeler data modeling data models data privacy data protection data security data security measures data sources data visualization data warehouse database database administration database administrator database automation database backup database backups database capacity database changes database community database connection database design database developer database developers database development database diversity Database Engine Tuning Advisor database fragmentation database GUI database IDE database indexes database inventory management database locks database management database migration database monitoring database navigation database optimization database performance Database Permissions database platforms database profiling database queries database recovery database replication database restore database schema database security database support database synchronization database tools database transactions database tuning database-as-a-service databases DB Change Manager DB Optimizer DB PowerStudio DB2 DBA DBaaS DBArtisan dBase DBMS DDL Debugging defragmentation Demo diagnostic manager diagnostics dimensional modeling disaster recovery Download drills embedded database Encryption End-user Experience entity-relationship model ER/Studio ER/Studio Data Architect ER/Studio Enterprise Team Edition events execution plans free tools galera cluster GDPR Getting Started Git GitHub Google Cloud Hadoop Healthcare high availability HIPAA Hive hybrid clouds Hyper-V IDERA IDERA ACE Index Analyzer index optimization infrastructure as a service (IaaS) infrastructure monitoring installation Integrated Development Environment interbase Inventory Manager IT infrastructure Java JD Edwards JSON licensing load test load testing logical data model macOS macros managed cloud database managed cloud databases MariaDB memory memorystorage memoryusage metadata metric baselines metric thresholds Microsoft Azure Microsoft Azure SQL Database Microsoft PowerShell Microsoft SQL Server Microsoft Windows MongoDB monitoring Monitoring Tools Monyog multiple platforms MySQL news newsletter NoSQL Notifications odbc optimization Oracle PeopleSoft performance Performance Dashboards performance metrics performance monitoring performance schema performance tuning personally identifiable information physical data model Platform platform as a service (PaaS) PostgreSQL Precise Precise for Databases Precise for Oracle Precise for SQL Server Precise Management Database (PMDB) product updates Project Migration public clouds Query Analyzer query builder query monitor query optimization query performance Query Store query tool query tuning query-level waits Rapid SQL rdbms real time monitoring Real User Monitoring recovery regulations relational databases Releases Reporting Reports repository Restore reverse engineering Roadmap sample SAP Scalability Security Policy Security Practices server monitoring Server performance server-level waits Service Level Agreement SkySQL slow query SNMP snowflake source control SQL SQL Admin Toolset SQL CM SQL code SQL coding SQL Compliance Manager SQL Defrag Manager sql development SQL Diagnostic Manager SQL Diagnostic Manager for MySQL SQL Diagnostic Manager for SQL Server SQL Diagnostic Manager Pro SQL DM SQL Doctor SQL Enterprise Job Manager SQl IM SQL Inventory Manager SQL Management Suite SQL Monitoring SQL Performance SQL Quality SQL query SQL Query Tuner SQL Safe Backup SQL script SQL Secure SQL Security Suite SQL Server sql server alert SQL Server Migration SQL Server Performance SQL Server Recommendations SQL Server Security SQL statement history SQL tuning SQL Virtual Database sqlmemory sqlserver SQLyog Storage Storage Performance structured data Subversion Support tempdb tempdb data temporal data Tips and Tricks troubleshooting universal data models universal mapping unstructured data Uptime Infrastructure Monitor user experience user permissions Virtual Machine (VM) web services webinar What-if analysis WindowsPowerShellFeeding Input Into Native Commands
Sometimes, you need to call commands that require interactive input to work. For example, to find out existing drives with DiskPart, you would have...
Advanced String Filtering
In a previous tip, you learned how Select-String can filter string arrays based on a keyword. Have a look: route print | Select-String 127.0.0.1...
Filtering Command Results
PowerShell captures any output from any command you enter. This is why you can always store command results in a variable, even with native...
"Grep": Finding PowerShell Scripts with a Keyword
Select-String can automatically search entire folders and scan all file contents for specific key words. All you do is to provide a path to scan,...
Using Select-String to Focus on the important stuff
Select-String is a fun cmdlet. Whenever a command returns string data, Select-String filters out text that does not contain a specific keyword. For...
Wait For Key Press
Sometimes you'd like to wait for a key press. The easiest way is to use Read-Host like this: Read-Host 'Please press ENTER' | Out-Null...
Consolidating Information In An Object
Sometimes, you may want to store information you gathered in different places into one single object and return this object to the caller. This is...
Displaying Battery Charge in your prompt
If you use a notebook and are on the road often, you may want a way to check the battery status so you can shut down your stuff in time. Here is a...
Summing Up Multiple Objects
PowerShell is a dynamic language, and as Forest Gump put it, you never know what you get. For example, when you try and figure out the battery...
Adding Multiple Registry Keys
With New-Item, it is easy to create new registry keys: New-Item HKCU:SoftwareTestkey New-Item can only create one key at a time and fails if the...
Virtual Drives With UNC-Paths
With New-PSDrive, you can create new virtual PowerShell drives to locations you often visit. New-PSDrive needs three pieces of information: the name...
Assigning Values to Parameters
Cmdlets and Functions most of the time support one or more parameters. Let's take this simple function. It defines two parameters called number and...
Avoid Format-… in Scripts
The family of Format-... Cmdlets is useful for outputting data into the console. You probably often used lines like this: Get-Service | Format-Table...
Using Switch Parameters
Switch parameters work like a switch, so they are either "on" or "off" aka $true or $false. To add a switch parameter to a...
Conflicting Commands
PowerShell supports many different command categories and searches for the command in the following order: 1. Alias 2. Function 3. Cmdlet 4....
Extending Alias Functionality
Alias names are a good way of making commands more accessible. The following line would enable you to quickly launch Internet Explorer by entering...
Finding Alias Names
To find out all alias names associated with a given command, filter the alias list by its definition property. The following command lists all...
Trustworthy Folders
If you want to launch a script file or executable, in PowerShell, you'll need to specify either a relative or absolute pathname. To do so by...
Removing Illegal File Name Characters
If you have to batch-process tons of file names, you may want to make sure all file names are legal and automatically remove all illegal characters....
Removing Illegal Path Characters
You can always strip all illegal characters from the path If you have no time to review path names and correct them manually to see if they...
Using Test-Path to Validate A Path
While raw .NET calls provides you with granular control over how to validate paths and file names, there is a cmdlet called Test-Path for simple...
Checking File Names for Invalid Characters
File names may not contain certain characters because they are illegal and cannot be processed by Windows. First, let's find out which...
Checking Paths for Invalid Path Characters
Paths may not contain certain characters because they are illegal and cannot be processed by Windows. First, let's find out which characters are...
Using Advanced Path Functions
Whenever the built-in Split-Path cmdlet isn't enough, you can always resort to the real .NET class behind it. This class is called...
Using Simple Path Functions
PowerShell comes with the Split-Path cmdlet, which helps you disassemble paths and find the interesting information. Take a look: Split-Path...
Using VB.NET to Migrate From VBScript
If you have ever written scripts using VBScript and now are trying to migrate them to PowerShell, you may miss a lot of useful commands not...
Casting Strings
Strings represent text information and consist of individual characters. By casting, you can convert strings to individual characters and these into...
Using String Functions
PowerShell uses .NET objects everywhere. Anything is represented as .NET object, and .NET objects come with useful built-in methods. However, for...
Processing External Script Output in Real Time
In a previous tip, you learned how to call an external VBScript from PowerShell and read back any text VBScript returned. We will now take a look at...