Here are a couple of lines that remotely create an SMB share on a server: #requires -Version 3.0 -Modules CimCmdlets, SmbShare -RunAsAdministrator...
database-tools
Important PowerShell Variables
Here is a list of important PowerShell variables: $pshome is the path to the place where PowerShell lives. $home is the path to your personal...
Read-Host Blocks Automation
Using Read-Host to ask for user information can be problematic because it prevents scripts from running unattended. A better way could be to wrap...
Force Client Time Resync
If your client does not sync time correctly with your domain controller, try the code below. It does require Admin privileges: w32tm.exe /resync...
A Simple Test (for geographically distributed systems)
Here is a simple test that might save you a lot of heartache. If Oracle is a long distance from the application server, open SQLplus, set...
Bad Index – use Clustering Factor to determine when a range scan is expensive
Oracle's Optimizer attempts to pick the most efficient plan for resolving a SQL statement. Most of the time, it succeeds and execution time is...
Mapping Network Drives
PowerShell offers numerous ways to connect to SMB file shares. Here are three different approaches: # adjust path to point to your file share...
Getting Started with MySQL Replication for High-Availability
Many organizations have MySQL or MariaDB databases at the core of their business—for processing and storing product sales, collecting information...
Safely Deleting Data
To safely delete files, folders, or entire drives, PowerShell can use the built-in cipher.exe tool. This line would safely delete the old user...
Finding Organizational Units
Get-OrganizationalUnit (from Microsofts free RSAT tools) can search for organizational units based on fully distinguished name or GUID, or you can...
Tutorial : Setting up ER/Studio Repository with Microsoft SQL Server in Amazon Web Services
Howdy! In this series, we will explore on how easy it is to setup our Model Repository in the Amazon Web Services Cloud Environment....
Testing Organizational Unit
Provided you have installed the free Microsoft RSAT tools, here is a simple way to check whether an OU exists: $OUPath =...
Validating Variables
Variables and function parameters can be automatically validated through validation attributes. Here is a simple example making sure $test1 can only...
Getting Started with MySQL High-Availability
Keeping databases running consistently and continuously is crucial to many organizations. When your site or application fails to load because of...
Cloning DHCP Server Settings
Beginning with Windows Server 2012, you can easily export and re-import DHCP settings. Cloning or migrating DHCP servers is a snap. The example...
Searching for ADUsers
The free Microsoft RSAT tools come with the PowerShell “ActiveDirectory” module: plenty of cmdlets help you administer Active Directory...
Big Data is a Big Deal
Data is proliferating at an accelerated rate, with all the mobile and desktop apps, social media, online purchasing, and consumer loyalty programs...
ToString() Masquerade
In the previous tip we explained that ToString() is a fuzzy way of describing an object, and that the object author can decide what ToString()...
Determining the cause of high load on MySQL database server
This blog details the experience of Partner Agent, Inc. on working towards a focused approach for monitoring their MySQL database servers. The State...
Careful with ToString()
Any .NET object has a method ToString() that returns a text representation. This is also what you get when you output an object in a string....
Feeling the bloat? Quiet down our log files.
Log obesity. It's a silent problem. One that often is hidden by well meaning administrators, adding space to their VMs over time. The patient,...
Validating Integer Variables
You can easily assign the [Int] type to a variable to make sure it can contain only digits. But did you know that you can also apply a regex...
Highlights: High-Availability and Scalability with Galera Cluster for MySQL
Thank you everyone who attended our webinar on “High-Availability and Scalability with Galera Cluster for MySQL”. This joint webinar by Monyog and...
How Do You Approach a Performance Problem?
We all see performance problems on a regular basis. Some look to hardware first, some look to logical design. We all turn to IDERA and other tools....