LDAP queries are extremely powerful and can help find accounts that are missing information. This code would return all Active Directory users that...
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 WindowsPowerShellGetting Excuses Automatically
Tired of inventing lame excuses yourself? Then here's a script that gets you a new excuse any time you call Get-Excuse! All you need is Internet...
Exporting and Importing PowerShell History
PowerShell keeps a list of all commands you enter, but once you close PowerShell, the list is lost. Here is a simple one-liner that saves the...
Capitalizing Words
To correctly capitalize words (making sure the first character is capitalized), you can either use regular expressions or a little system function....
Finding Default Outlook Profile
PowerShell can access COM objects like Outlook Application. These two simple lines return the current Outlook profile: $outlookApplication =...
Dynamic Methods in PowerShell 4
Beginning with PowerShell 4.0, method names may come from variables. Here's a simple example: $method = 'ToUpper'...
Dynamic Parameters in PowerShell 4.0
In PowerShell, you can use variables in place of properties. This sample script defines the four property names that return profile paths, then...
Replacing Specific Characters in a Text
If you just need to replace characters anywhere in a text, you are easy off. This would capitalize every "l" in a text: "Hello...
Weird Text Formatting (and what to do about it)
Check out this code and try to find the problem: $desc = Get-Process -Id $pid | Select-Object -Property Description "PowerShell process...
Finding Services in PowerShell
Get-Service lists all services on a computer, but the information returned is very sparse. You cannot easily see what a service does, whether it is...
Getting More Than 1000 Active Directory Results
By default, Active Directory returns only the first 1000 search results when you use an ADSISearcher. This is a security mechanism designed to...
Hiding Parameters from IntelliSense
Beginning with PowerShell 4.0, a script author can decide to hide function parameters from IntelliSense. This way, less frequently used parameters...
Finding Active Directory User Accounts Fast
The more specific your LDAP query is the faster and less resource intense the query is, and the more precise are the results as well. For example,...
Finding Active Directory Accounts by SID
If you know the SID and would like to find the corresponding Active Directory account, then LDAP queries won't work well. For them to work, you...
Searching in Different Domains
When you use the ADSISearcher type accelerator to find Active Directory accounts, it defaults to the current domain you are logged on to. If you...
Getting Domain from DN
A "DN" (Distinguished Name) is the path to an Active Directory object and could look similar to this:...
Converting Binary SID to String SID
Active Directory accounts contain the SID in binary form. To convert the byte array into a string representation, use a .NET function like this: #...
Finding Current Script Folder
Beginning in PowerShell 3.0, there is a very easy way of determining the folder a script is located in: $PSScriptRoot. This variable always holds...
Getting Active Directory Account Information
In a previous script you have discovered how easy it is to find Active Directory accounts with just some simple PowerShell code. The result is a...
Finding AD User Accounts
There are modules and cmdlets to deal with Active Directory tasks, but sometimes it is easier and faster to simply use some .NET code instead. If...
Resetting PowerShell Host in ISE
Imagine you have worked long hours on a script in the ISE editor. While you worked on it, you probably have defined variables, created functions,...
Finding Cmdlets
Get-Command can be used to find cmdlets, but in PowerShell 3.0 it will often return many more cmdlets than expected. Due to module auto-loading,...
Pasting PowerShell Code from ISE Editor
The PowerShell ISE editor is great for copying and pasting code, for example to Microsoft Word and other text processors. Since ISE formats the...
Creating Calendars (and Lists of Dates)
Here's a code snippet that creates DateTime ranges. Just specify a year and a month, and the script produces a DateTime object for each day in...
What Is Going On Here?
Frequently, you will have PowerShell retrieve data, and then you pick parts of the information and use it in reports. Like here: $serial =...
Password Obfuscator Script
Ever had the need to store a password in a script? Ever needed to automate a credential dialog? First: storing passwords and other confidential...
Encoding a Love Letters (and Other Things) in Hex Strings
If your partner is as geeky as you, he or she may enjoy a private message in hex encoding. Everyone else may at least enjoy the technology used...
Checking Disk Partitions and Block Size
WMI is a treasure chest full of information. This line will read local partitions along with their block sizes: Get-WmiObject -Class...
Converting Excel CSV to UTF8
When you export Microsoft Excel spreadsheets to CSV files, Excel by default saves CSV files in ANSI encoding. That's bad because special...
Finding All PowerShell Profile Scripts
Sometimes it can get confusing which startup scripts run when PowerShell starts. There can be plenty, and they may be different, depending on...