Simple powershell script for enabling users for Lync

I wrote this simple little script for enabling users for Lync. It asks for input on name, sipdomain and line uri. The rest is set using variables defined at the start of the script. If you only have one sipdomain you can change the script so that it doesn’t ask for it. Here’s the script in all its glory: $UI = (Get-Host).UI.RawUI $UI.WindowTitle = "Enable lync user" Import-Module Lync #Setting some variables $registrarpool = lyncpool....

October 12, 2011 · nerenther

Install and configure Exchange 2010 using Powershell

In this guide I will show you how to install and configure a simple Exchange 2010 environment using no gui at all. Installing exchange 2010 without gui may seem kinda nerdy, but it’s quite useful for quickly setting up a test environment for example. Remember to run Windows update prior to the installation. Start powershell as administrator and type: import-module servermanager First we need to install all of the prerequisites:...

September 29, 2011 · nerenther

Setting NTFS permissions using Powershell

I am currently working on a script similar to the Mass import of users in Active Direcory post I published earlier (as promised 🙂 ). In the new script I wanted to only use powershell, so I had to find a way to set ntfs permissions using powershell. After all, the cacls way is pretty outdated. After some googling I came up with a rather extensive script, it is a little more complicated than I wanted but here goes:...

September 23, 2011 · nerenther

New monitor stands for my four monitors

At work I am known as “the monitor king”. The reason for that is that while my co-workers have two monitors, I have four 🙂 I really enjoy working on four monitors and would never go back to working on only two or three. But the problem with having so many monitors on your desk is that it takes up most of the space on the desk, there is little room for other stuff you usually have on a desk....

September 21, 2011 · nerenther

Robocopy backup script

This is a script I have used on several of my relatives computers for backing up their data. Windows backup won’t do for them because they feel the need to see the actual files on the external drive… Anyway, heres my script: robocopy c:users<username> <destination> /MIR /XD templates start-menu "local settings" appdata "internal video" cookies "my music" "my pictures" "my documents" printers programdata recent sendto andrmask /XF ntuser.dat ntuser.dat.log1 ntuser.dat.log2 /R:5 /LOG:<log destination> I guess a little explanation is required....

September 13, 2011 · nerenther

Enable Resource Booking Attendant on all Room Mailboxes

The Resource Booking Attendant should be enabled on all your Room Mailboxes. If it is not, the room will not accept or decline incoming meeting requests. Which is somewhat the whole point right? Heres a powershell command to enable it on all the Room Mailboxes in an exchange organization: Get-Mailbox -RecipientTypeDetails roommailbox | Set-CalendarProcessing -AutomateProcessing AutoAccept

September 12, 2011 · nerenther

Mass import of users in Active Directory

Tried sleeping……That obviously didn’t work out, so here’s a guide on how to import a number of users in Active Directory and then creating and sharing out their home folder. Note: This guide uses dsadd for creating users and cacls for setting ntfs permissions. Thats kind of old fashioned, I will try to write a new guide using powershell later on. In the scenario I have created this script for we have a domain controller who happens to also be the file server, file01....

September 6, 2011 · nerenther

Minecraft Structure Planner

I have for a long time been dreaming of some sort of software for minecraft that lets me plan a structure and see how it will look before I go and spend hours of building something that looks like shit. When I finally got my ass in gear and started googling for it it didn’t take long before I found Minecraft Structure Planner. It’s rather small and simple but it definitely does the job well....

September 1, 2011 · nerenther

Import MIBs in Zenoss

If you are using Zenoss as a monitoring solution, chances are you are sending snmp traps to it, right? In that case you should always remember to import the MIBs for the devices you are monitoring. Because if you don’t it can be a real pain in the ass to figure what it is wrong when all you see is a “warning snmp trap enterprises.2.6.211.4.11”. Sadly there is no way to import MIBs using the gui in Zenoss, you have to use the cli....

August 29, 2011 · nerenther

Using remote desktop over an ssh tunnel

This is kinda the nerdy way of remoting a pc on a remote network. Usually a vpn connection would be preffered, but in my case I don’t want to forward the rdp port of security reasons. Lets use my setup as an example: At home I have a server running Debian linux, I also have several windows pc’s that I want to be able to use remote desktop to. Since I have already forwarded the ssh port (22) to my Debian server I figured I could use it as a jumpstation....

August 24, 2011 · nerenther