Announcing the General Availability of IDERA SQL Safe Backup 9.3
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
Understanding Profile Scripts
Whenever you want PowerShell to configure or execute code automatically on launch, the code needs to go into one of four profile scripts. They really work pretty much like autoexec.bat for Windows in old days, and execute whenever PowerShell starts. You can find the...
Opening a file with the default program on Windows and Mac
I've been using the windows API call ShellExec for years to pass in the file name of a file I want to launch programatically with the default application on Windows; but I am now creating an application for use on Windows and Mac with FireMonkey for the upcoming...
Test Local User Account Credentials
Here is a snippet that verifies a local user account. Simply submit a username and a password. You get back either $true or $false: $username = 'Administrator' $password = 'P@ssw0rd' $computer = $env:COMPUTERNAME Add-Type -AssemblyName...

Enabling High Performance Power Plan via Command Line
Hopefully, everyone knows by now that the default power plan in Windows 2008+ is “balanced” which can result in your CPUs being throttled down to 67% or even 50% power. This would be equivalent to running at full power with 2/3 or 1/2 as many CPUs. Make no mistake...
Using "Using:" On Remote PowerShell Sessions (Part 2)
In a previous tip we talked about using PowerShell Remoting to execute code on a remote machine, and how to use "using:" to carry over local variables to the remotely executed script. However, this only works in PowerShell 3.0. If you must still use...
Using RegEx to Filter Files
Get-ChildItem supports basic wildcards, but it does not support the rich feature set of regular expressions. If you combine Get-ChildItem with Where-Object, you can easily add this functionality. This example lists all DLL files found in System32 folder that start...
Enable PowerShell Remoting in Two Lines of Code
One common problem with enabling PowerShell Remoting on your box is public networks. As long as there are active network connection labeled as "public" or "unknown", Enable-PSRemoting will fail. Previously, you would have to manually and...
Using "Using:" On Remote PowerShell Sessions
When you use PowerShell Remoting to execute scripts and commands on another machine, you may have run into an issue like this: $class = 'Win32_LogicalDisk' $ComputerName = 'storage1' Invoke-Command -ScriptBlock { Get-WmiObject -Class $class }...
Replacing Variable Names in ISE 3.0 Editor
If you want to replace variables in a PowerShell script, in PowerShell ISE 3.0 you can use the following function: function Replace-Variable { param( [Parameter(Mandatory=$true)] $OldName, [Parameter(Mandatory=$true)] $NewName ) $token=$null $text =...
Working with Sensors, Devices and Platform Services in your C++ applications
All of our modern PCs, Smartphones, Tablets and other devices include more than just a screen, keyboard, mouse, memory, and storage. The devices We use include sensors for location, orientation, acceleration, ambient light, etc. My Samsung Slate Series 7 is a hybrid...
Quick Reference Sheets for PowerShell
PowershellMagazine.com has prepared a set of very useful quick reference sheets for PowerShell 3.0, the ISE editor and more. Microsoft now offers these quick reference documents for download. They are free: http://www.microsoft.com/en-us/download/details.aspx?id=30002...
Controlling Admin PowerShell from Non-Elevated PowerShell
In a previous tip we illustrated how you can use Start-Process to launch an elevated PowerShell from within your script to do elevated tasks. The problem with launching elevated processes is, though, that the non-elevated caller cannot monitor the elevated process. So...
Reversing GUIDs
Active Directory and other services sometimes use a custom GUID format. To convert a GUID to that format, all blocks of the GUID need to be reversed. In addition, the second and third block need to be exchanged. PowerShell can easily do that conversion: $sampleGUID =...
Preventing Direct Function Calls
If you must make sure that a function within your script is inaccessible from outside calls, you can use this trick. Save this code as a script file, then run it: $scriptPath = $MyInvocation.MyCommand.Definition function Test { if ($MyInvocation.ScriptName -ne...
Use Select-String For Fast Textfile Parsing
Select-String is an extremely useful cmdlet for parsing log files. You can use it to dump all lines in a text file that contain a certain keyword. This dumps all lines from windowsupdate.log with the keyword "successfully installed": Select-String -Path...
OSX Java 1.6.0_51 Update Fix posted to Apple-Java mailing list
Apple has posted a fix to the Apple-Java mailing list. Here is the post : ------------------------------------------------------------------------------------------------- Hello Java developers, As of 10:00AM PST today, Apple has revised the "Java for OS X...
Replace Escape
There are two ways for replacing text, and both have their advantages and pitfalls: Each string has a Replace() method which works very straightforward: Unfortunately, as you can see, the method is case-sensitive, and there is no way to change that. Alternatively, you...
Changing Scheduled Tasks with PowerShell
PowerShell can read and also change any part of a scheduled task. Just make sure you have appropriate permissions and run PowerShell elevated. Let's assume you wanted to automatically enable or disable a task trigger for a given task. Here's a sample that...
PowerShell 3.0 Help Available on Non-US-Systems
PowerShell 3.0 does not ship with help files. Instead, they need to be downloaded separately using Update-Help. Unfortunately, PowerShell 3.0 help isn't localized, yet, and only available in English. Non-English systems refuse to use the English help files,...
Latest Mac OS X Java Update to 1.6.0_51 Seems Broken
The update to 1.6.0_51 seems broken and causes ADS to no longer be functional. In diagnosing the problem, we have been able to add a small patch which will get Aqua Data Studio up and running, although we are not sure of the full extent of the Apple Java bug. The...