database-tools

Test-Driving PowerShellGet Version 3

PowerShellGet is a module and contains important cmdlets such as Install-Module, so this module is really the prerequisite for downloading and...

Getting Parent Culture

Most of the time, localized resources are tagged with a culture name such as “en-us” or “de-de”. If you’d like to know what such an ID stands for,...

Invoke-RestMethod Cancellation Issues

Both Invoke-WebRequest and Invoke-RestMethod are simple-to-use cmdlets to download information from the web. For example, this simple code can query...

Two Type Casts (and one bug)

To explicitly convert one data type to another, PowerShell offers two ways: PS> [int]5.6 6 PS> 5.6 -as [int] 6 While both approaches yield identical...

Mounting ISO Files

In our previous tip we showed how you can easily turn local folders into ISO file images. Today, we look at how you can mount (and dismount) your...

Creating ISO Files

PowerShell can turn regular folders into ISO files. ISO files are binary files that can be mounted and then behave like a read-only CD-ROM drive. In...

Progress Bar Tricks (Part 4)

Due to popular request, here is a code that illustrates how you can use nested progress bars and show a "real" progress indicator for each task your...

Progress Bar Tricks (Part 3)

PowerShell's built-in progress bar can be nested, showing one progress bar per task. For this to work, assign distinct ID numbers to your progress...

Progress Bar Tricks (Part 2)

Publishing on – Mon May 15 The built-in PowerShell progress bar supports a “real” progress indicator provided you submit a “percentCompleted” value...

Compare four leading database tools

Today, many roles within an organization work with the ever growing amounts of data in databases. No longer are databases the purview of just the...

Progress Bar Tricks (Part 1)

PowerShell comes with a built-in progress bar. It typically automatically disappears when your script is done: Write-Progress -Activity 'I am busy'...

Listing Active Domain Controller

If your machine is connected to a domain, you can use PowerShell to identify the domain controller you are connected to. Either use this command:...

Listing All Domain Controllers

To get a quick list of all of your domain controllers, run this one-liner: Get-AdDomainController -Filter * | Select-Object -Property Name, Domain,...

Achieve more with fewer resources

The current uncertainty in the economy is causing many organizations to look for ways of making their operations more productive. These...

Permanently Deleting Hard Drive Content

When you delete files on storage media like hard drives or USB sticks, as you probably know, the data is not immediately deleted. Instead, the data...