Feb
20
2013

Move inactive computer objects

Needed to do some AD cleaning; and obviously Powershell is the way to go. Did some digging around the web and found misc ways to do it; but ended up with this script: $time=[DateTime]::Now.AddDays(-90) $targetOU=(distinguished name for OU) $oldcomputers = Get-ADComputer -Filter * -Properties lastlogontimestamp,objectguid | where {(([DateTime]::FromFileTime($_.lastlogontimestamp) – ([system.datetime]$time)).totaldays) -lt 0 } $oldcomputers | foreach {Move-ADObject -identity $_.objectguid -TargetPath $targetOU} I had some initial troubles, since I tried using distinguishedname, which gave me all […]

Feb
16
2013

So you wanna save some space on Server 2012?

This is usually not a big thing; but say you have 100 virtual servers. All of them set up as you want them; and the odds are slim that you’ll want to add significant features. Prior to server 2012, those servers would have binaries for all of the roles available; with no means to remove them (officially). For an average server, that would be about 2GBs wasted, dead data which you’ll never use. With a […]

Jan
23
2013

Boot-image problems in SCCM 2012 SP1

So this has pretty much been well documented elsewhere, but I’ll jot down some experiences of my own. Updating boot-images failed when installing SP1 for SCCM2012. Obviously this SP had been highly anticipated, so we were eager to see if it could resolve some of our qualms and troubles with the RTM version. Maybe we were too eager, but to the best of my knowledge we followed the pre-installation guide MS provided. Anywho; we ended […]

Jan
18
2013

“The trust relationship between this workstation and the primary domain failed”

So this isn’t really a new problem, but in Windows 7 it’s become more frequent it seems. It can happen for a number of reasons, but often it’s related to a time-skew between the domain controller and the workstation. Certain computer models seem to be more prone to this than others, though I don’t have any data on that, just my experience. Regardless. You get this: …and you don’t want it. You could log in […]

Nov
6
2012

Set default Calendar Permissions in Exchange 2010

So this is a common request: you need to set calendar permissions for all your users, so they all share details, beyond simple free/busy. Not really a problem, but I’ll save you the bother of reinventing the wheel. Here’s a script which does just that: $mailboxes = get-mailbox $mailboxes | foreach { $user=$_.Alias $path=$user+”:\Calendar” Set-MailboxFolderPermission –identity $path -User Default -Accessrights LimitedDetails } Now, keep in mind the following: This is for ALL mailboxes. Users should […]

Oct
10
2012

XenDesktop – No items match the supplied pattern

So this was driving me nuts for a while. I was trying a simple task: Setting the power scheme for a XD pool. Should be straight forward, but it kepts failing, giving me “No items match the supplied pattern”. Now luckily it’s powershell based (yay!), so it’s solvable. And seing as this isn’t something I change that often, I’m not going to be digging for the answer as to WHY this happens. For some reason […]

Sep
5
2012

Delegate unlock account privileges

So you want to delegate permissions to unlock accounts, as well as reset passwords for users in your domain? It’s not as straight forward as it should be. First, you have to edit %Systemroot%\System32\Dssec.dat to make the property visible. Open the file in notepad; find the [user] section, and change lockoutTime from 7 to 0. Close and save. Now open Active Directory Users & Computers: Go to properties on the desired OU Go to Security-Advanced […]

Sep
3
2012

Past due – Will be installed

We spent quite a bit of time cursing at this problem. In essence, a SCCM 2012 deployment, where all ‘required’ deployments were simply stuck at ‘Past due – Will be installed’. Clicking ‘Install all required’ worked, but was obviously not an option. So after plowing through log after log and everything looking fine and dandy; the deployments simply wouldn’t fire; I went though all the client default settings. An lo an behold. The perpetrator was […]

Jul
17
2012

Exchange 2010 Mailbox report

This is not really that hard, but it’s something many Exchange admins find themselves needing: A script which emails mailbox statistics and a schedule task which fires it offonce a month. Now I did this for a customer with about 200 users, who just wanted some control over the mailbox sizes, as they don’t have any quota on them. For large enterprise environments, this is not necessarily the best solution, but it works. So what […]

Jul
8
2012

Windows Server 2012 on Virtualbox

Just a quick heads up; as I was setting up a 2012 lab today, on Virtualbox, I just went on auto-pilot and installed the Guest Additions. They install just fine, but after a reboot, the server was useless. Started hanging pretty much regardless of what I tried to do. Not sure what the problem is; but I did see that the Desktop Window service was taking quite a bit of CPU, so it might be […]

Pages:«12345»