In a previous tip we illustrated how -like can work on array. To iterate on that, check out how -like (in contrast to -contains) allows the use of...
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 WindowsPowerShellAssigning Two Unique Random Numbers in PowerShell
If you need to get two random numbers from a given numeric range, and you want to make sure they cannot be the same, simply tell Get-Random to pick...
Eliminating Empty Text in PowerShell
If you wanted to exclude results with empty (text) columns, you can filter based on $null values. This will get you all processes with a valid...
Adding Personal Drives in PowerShell
In a previous tip we showed you how you can add new drives to easily access your desktop, your cookies or media like music and video. However, when...
When to Use Select-Object’s -ExpandProperty in PowerShell
Use Select-Object to determine which information in a result you are interested in. Here are three easy rules for its parameters: Use -Property *...
Find WMI Classes with PowerShell
In a previous tip we showed how Get-WmiObject can search for WMI class names. Some of the returned WMI class names aren't particularly useful,...
Finding Files Only or Folders Only
In PowerShell v2, to list only files or only folders you had to do filtering yourself: Get-ChildItem $env:windir | Where-Object { $_.PSIsContainer...
Export-Csv with Append
Finally, in PowerShell v3 the cmdlet Export-Csv got a new parameter called -Append! Now you can easily append information to an existing CSV file....
New Alias in PowerShell v3
Since Select-String is such a useful cmdlet, the PowerShell decided to add an alias to it in PowerShell v3. The alias is called sls. Try this:...
Sharing PowerShell ISE v3 Code Snippets
In a previous tip we illustrated how you can create code snippets for PowerShell ISE v3 script editor using New-ISESnippet. All custom snippets are...
Sophisticated Directory Filtering in PowerShell v3
In PowerShell v3, Get-ChildItem now supports sophisticated filtering through its –Attribute parameter. To get all files in your Windows folder...
Restarting Computers in PowerShell
In PowerShell v3, Restart-Computer now has a number of useful new parameters. For example, you can restart a remote machine and wait for the reboot...
Colorizing PowerShell ISE v3
The new PowerShell ISE script editor in PowerShell v3 lets you customize a lot of colors, so if a particular color does not show well on a...
Out-GridView Grows Up
In PowerShell v2, Out-GridView was a useful way of displaying information in a separate window but its functionality was limited because you could...
Get-Content Can Now Read Raw Text
In PowerShell v3, Get-Content was reading text files line by line. This was great for pipeline processing but could take a long time and also...
Disabling Console Apps in PowerShell ISE
In PowerShell v3, the new PowerShell ISE script editor has improved a lot. Yet, it still has no real console but instead sports a useful console...
Controlling IntelliSense in PowerShell ISE v3
The new PowerShell ISE script editor that ships with PowerShell v3 has a much improved IntelliSense (code completion) that you can even fine-tune...
Removing Code Snippets in PowerShell ISE v3
In a previous tip we showed you how to add your own little code snippets to the new PowerShell ISE v3 script editor. Here's how you can get rid...
Testing URLs for Proxy Bypass
If you'd like to find out whether a given URL goes through a proxy or is accessed directly, you can use this neat little trick: Function...
Using ActiveDirectory Module without AD Drive
By default, when you import Microsoft’s ActiveDirectory PowerShell module which ships with Server 2008 R2 and is a part of the free RSAT...
New PowerShell ISE v3 Console Keyboard Tricks
If you already use the new PowerShell ISE v3 script editor, you noticed that the editor now has an almost real console with input and output going...
Using Code Snippets in PowerShell ISE v3
PowerShell ISE v3 script editor supports code snippets. Press CTRL+J to open a list of built-in snippets. You can add your own snippets, too. For...
Reading Twitter (And Detecting Speed Traps)
With just a couple lines of code, PowerShell can search for Twitter news. If you happen to live in Germany, then this would tell you the latest...
Downloading PowerShell v3 Help
Beginning with PowerShell v3, help is no longer shipped by default. Instead, in order to get help you need to download the help information from the...
More Useful Keyboard Tricks for PowerShell ISE v3
Here are some more useful keyboard strokes that work in the new PowerShell ISE script editor that comes with PowerShell v3. These keyboard shortcuts...
Getting Relative Dates
Here's a quick and fast way of generating relative dates in any format: (Get-Date).AddDays(-1).ToString('yyyy-MM-dd') This would return...
PowerShell ISE v3 Keyboard Shortcuts
Note: Beginning now, we will include useful tips on PowerShell v3. PowerShell v3 is the next generation of PowerShell that is in public beta right...
Getting Movie Database Information
Here's a sample that illustrates how versatile PowerShell is. The function Get-Movie retrieves information about movies from the Internet....
Identifying PowerShell Host
If your script requires a real console, or if your script requires PowerShell ISE features, it may be a wise thing to check which host is actually...
Find WMI Classes
Get-WmiObject is a great cmdlet that returns all instances of a WMI class: PS> Get-WmiObject -Class Win32_LogicalDisk All you need to know is the...