Check out this code and try to find the problem: $desc = Get-Process -Id $pid | Select-Object -Property Description "PowerShell process...
Month: October 2013
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...
Creating an Overflow Menu on Android
During my CodeRage 8 session I talked about creating an Action Bar with an Overflow menu, so I wanted to provide some step-by-step instructions. On...
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...
Aqua Data Studio 14.0.3 – Minor Fixes and Enhancements
We have released the 14.0.3 patch which addresses several defects and includes a few enhancements. Patch: dd1.aquafold.com/.../ads-14.0.3-patch.zip...
My "Secure DataSnap Development" CodeRage 8 session
During my CodeRage 8 "Secure DataSnap Development" session I'm demonstrating different levels of security in DataSnap architecture....
Monyog MySQL Monitor 5.64 Has Been Released
Changes (as compared Monyog MySQL Monitor to 5.63) include: Bug fixes: * This release is a stability-fix release. Fixes includes fixes for a rare...
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...
How to load custom styles at runtime
During my session at CodeRage, I briefly talked about how to load custom styles at runtime. I wanted to elaborate on this topic and provide some...
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...
Bridging the NoSQL, Cloud and Big Data gap with Studio 14!
With increasing adoption of NoSQL, Cloud and Big Data databases, we have released our new 14.0 version of Aqua Data Studio with full support for...
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...