Here is how you can create random passwords that meet certain requirements: function Get-RandomPassword { param( $length = 10, $characters =...
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 WindowsPowerShellCreate Random Passwords
Whenever you need to create a new random password, be sure to check out this function: function Get-RandomPassword { param( $length = 10,...
Using MsgBox Dialogs
Have you ever used VBScript? Would you like your MsgBox dialog back? Here is how:...
Creating Shortcuts on your Desktop
PowerShell and .NET can do amazing things, but they are not good at creating shortcuts. However, you can create a shortcut on your Desktop in a...
Resolving Host Names
In a previous tip, you learned how to quickly ping network segments. Next, you could resolve online IPs and get host lists of systems currently...
Finding Systems Online (Fast)
Using PowerShell Background Jobs, you can find a large number of online systems within only a few seconds: function Check-Online { param(...
Auditing PowerShell Scripts
How would you know if all PowerShell scripts on a production critical server are safe? Here is a simple line that can help you conduct a security...
Refreshing Web Pages
Imagine you opened a number of Web pages in Internet Explorer and would like to keep the display current. Instead of manually reloading these pages...
Using Robocopy to Copy Stuff
You should avoid cmdlets if you need to copy large files or a large number of files. Instead, you should use native commands like robocopy. This...
Hiding NetworkAdapter
When you use VMware, or if you have installed a Microsoft Loopback adapter, these adapters will show up in your network panel as "Unidentified...
Resetting Network Adapters
Sometimes, it is necessary to reset network adapters, such as after you changed settings for that adapter in your registry. Resetting a network...
Disabling Network Adapters
If you need to systematically disable network adapters, all you need is the name of the adapter (as stated in your control panel or returned by...
Enumerating Network Adapters
Finding your network adapters with WMI isn't always easy because WMI treats a lot of "network-like" adapters like network adapters. To...
Launching PowerShell Scripts with Admin Privileges
If you must ensure that a PowerShell script runs with Admin privileges, you can add this to the beginning of your script: $identity =...
Test Admin Privileges
If you want to systematically test whether you currently have Administrator privileges, you can use this function: function Test-Admin { $identity =...
Processing Function Parameters As Hash Table
If you want to get more control over function parameters, you can treat them as hash table. So in your function, you can then check whether a...
Determining Function Parameters Supplied by User
To find out which parameters that a user submitted to a self-defined function, you can use $PSCmdlet like this: function Get-Parameters {...
Re-Running Your Profile
If you made changes to your profile script and want to see the changes that are in effect without having to close and restart PowerShell, you can...
Create (and Edit) your Profile Script
Profile scripts are automatically executed whenever PowerShell launches. Your profile script is the perfect place to customize your PowerShell...
Enter-PSSession – Do’s and Dont’s
Enter-PSSession will let you switch your console input to a remote computer—if remoting is enabled on the target computer. Essentially,...
Get WebClient with Proxy Authentication
If your company is using an Internet proxy, and you'd like to access Internet with a webclient object, make sure it uses the proxy and supplies...
Strongly Typed Arrays
When you assign strongly typed values to an array, the type declaration will remain intact only as long as you do not add new array content: $array...
Create Files and Folders in One Step
Use New-Item like this when you want to create a file plus all the folders necessary to host the file: new-item -type file -force...
Running 32-Bit-Code on 64-Bit Machines
Some code may not work right on 64-Bit machines. Use this approach to make PowerShell execute code in an isolated 32-Bit PowerShell session and hand...
Get Notification When a Background Job is Done
When you assign long-running commands to a background session, you may want to get some notification when the job is completed so you don't have...
Running Commands in the Background
You can also transfer commands into another PowerShell session and run it in the background. This will find all log files recursively in your...
Escaping Spaces
You should remember that spaces are special characters in PowerShell, too. They are token delimiters, and once you feed arguments to a native...
Why Native Commands Fail In PowerShell
You probably already know that not all native commands work equally well in PowerShell. Have a look here: find /I /N "dir" *.ps1 In...
Downloading Internet Files with Dialog
There is a great way to download large files from the Internet. This example downloads a tutorial video from Idera that, once downloaded will run in...
Using OpenFile Dialog
You can use this code to open a standard OpenFile dialog in your PowerShell scripts:...