Monthly Archives: January 2015

How can I list all available modules in PowerShell?

This is a quick post based on a question I got today. A friend wondered which PowerShell modules were available by standard in Windows 8.1. To get the complete list of all modules that are available on your system, simply … Continue reading

Posted in Powershell | Tagged , , , , | 1 Comment

Create and use a PowerShell console file

When writing scripts, sooner or later you will realize that you add the same snap ins all over again in different scripts. What you can do in this case is to export all loaded PowerShell snap ins from a console … Continue reading

Posted in Powershell | Tagged , , , , , | 2 Comments

Read XML-file in PowerShell

Today I will show you how to read a XML-file, something with endless possibilities. An example is if you have a file that contains information about users and you need to create new accounts in the Active Directory.

Posted in Powershell | Tagged , , | Leave a comment

Query SQL database from PowerShell

I’ve been working on a larger script where I needed to query a database to see if a value was present or not, something I thought was pretty much straight forward. However, this turned out to be a bit harder … Continue reading

Posted in Powershell | Tagged , , , , , , | 1 Comment

Install SQL Server PowerShell Module (SQLPS)

When installing SQL server, the PowerShell modules are installed by default, but if you wan’t to run scripts or commands from a computer/server that hasn’t got an installation of SQL, you need to install these manually.

Posted in Powershell | Tagged , , , , , | 5 Comments