Tag Archives: Powershell

PowerCLI: List all snapshots

It’s been a while since last update, again, so I figured I should at least provide something.. I recently started in a new job, and one of the first things I looked into was the amount of snapshots in our … Continue reading

Posted in PowerCLI, Powershell, VMware Tagged , , , , , , ,

Powershell: Invoke-Sound function

I stumbled upon this brilliant powershell function for playing sounds using powershell, check it out: http://community.spiceworks.com/scripts/show/1337-powershell-function-invoke-sound He even added a switch for playing the imperial march from Star Wars    

Posted in Microsoft, Powershell Tagged , ,

Powershell: Install role or feature on multiple remote servers

Today I was presented with a task that sounded pretty boring and repetitive: Install the Windows Search service on all our citrix servers. Now, I could just log on each and every one of our citrix servers, open Server Manager and … Continue reading

Posted in Microsoft, Powershell Tagged , ,

Powershell: Export-Csv and non-English letters

The Export-Csv cmdlet is a really nice tool if you want to gather info from e.g. Active Directory that you later want to import to Excel. But as you might have noticed it doesn’t play well with non-English letters. Working … Continue reading

Posted in Microsoft, Powershell Tagged , , ,

Exchange: Content index state failed

If you ever had problems with corrupt databases in an Exchange 2010 DAG setup you might have encountered this error. Trying to activate the database on a server where it has this state will fail. However there is a quite … Continue reading

Posted in Exchange, Microsoft, Powershell Tagged , , ,

Powershell: Checking multiple dns records for multiple domains

I don’t know how useful this will be for others, but in our case we had a need to check a few public dns records on some of our domains. Doing so by using a web portal will be time … Continue reading

Posted in Microsoft, Powershell Tagged , ,

Powershell function for enabling a user for Lync and configure settings

A little while ago I posted a script for enabling users for Lync and settings some settings for that user. That script has been used here ever since I posted it and it has worked like a charm. However there’s … Continue reading

Posted in Lync, Microsoft, Powershell Tagged , , , , , , ,

Powershell function for gathering users in groups

A friend of mine asked me a couple of days ago if I knew a way to gather users who are members of given groups. I thought to myself “Hmm, challenge accepted!” and started writing a small powershell script. After … Continue reading

Posted in Active Directory, Microsoft, Powershell Tagged , , ,

Motivational Powershell function

If you are ever in need of some motivation, here is a very simple Powershell function for that: function Motivate-Me { $motivator = Get-Random -Minimum 1 -Maximum 5 if ($motivator -eq 1) {Write-Host “You are a Powershell God!”} if ($motivator … Continue reading

Posted in Microsoft, Powershell Tagged , ,

Powershell function for showing some system information

This is a function I created just because I wanted to toy around with Powershell and get-wmiobject. Also, this is my first function where I made it possible to use a switch parameter. What the function does is gather some … Continue reading

Posted in Microsoft, Powershell Tagged , , , , , ,