Quantcast
Channel: Microsoft – JeffOps
Browsing all 120 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

PowerShell – Having fun with Compare-Object in the 2012 Scripting Games

This year I was competing in the Windows PowerShell Scripting Games 2012. One of the exercises in the Beginners class was to compare two folders. Ed Wilson (Microsoft ScriptingGuy) provided a script to...

View Article


Image may be NSFW.
Clik here to view.

PowerShell function to generate a random password

This is part of one of my AD migration scripts which I find very useful. Whenever creating a user, I like to generate a random and complex password. The length of the password differs for each of my...

View Article


Image may be NSFW.
Clik here to view.

Powershell function to create a random password with complexity requirement

Today I wrote a post with a Powershell function to create a complex password. Although it does generate a complex password, it would not be enough for the complexity policy for passwords in Windows....

View Article

Image may be NSFW.
Clik here to view.

Grant full access to a group on a mailbox in Multi-tenant Hosted Exchange...

Yesterday I helped a fellow IT Pro out with an issue concerning Exchange and PowerShell. Why user PowerShell? Well, in an Exchange 2010 SP2 Multi-tenant hosted environment there isn’t a management...

View Article

Image may be NSFW.
Clik here to view.

Mail enable Active Directory contacts in Exchange with a PowerShell oneliner

Last week a community peer asked me on Facebook to assist him with a challenge. His issue was that he had imported contacts into Active Directory by using a tool named “ldifde”. This tool also filled...

View Article


Image may be NSFW.
Clik here to view.

Manage Windows Server 2012 Hyper-V in SCVMM 2012 –Unknown Hypervisor

This morning I received an email from a community peer stating that he was unable to manage Hyper-V 3.0 in Windows Server 2012 by using SCVMM 2012 CTP. The specific error message: “Error (12704) :...

View Article

Image may be NSFW.
Clik here to view.

Convert a domain name to a usable distinguished name format

Every once in a while I need to get the domain name from a computer and use it in a PowerShell script. But when you do something like “Get-WMIObject –Class Win32_ComputerSystem | Select-Object...

View Article

Image may be NSFW.
Clik here to view.

PowerShell – Searching for the cause of a user account that keeps getting...

Earlier this week a colleague was asked to troubleshoot an issue where a user account kept getting locked out. So, we wanted to know from which device the faulty credentials were being used that were...

View Article


Image may be NSFW.
Clik here to view.

So you think a domain local group cannot be a member of a domain local group?

Last weekend I did some scripting again and stumbled upon something I found rather funny. For as long as I can remember, it has not been possible to make a domain local group a member of another domain...

View Article


Image may be NSFW.
Clik here to view.

SCVMM Warning (3107)–The format of the file yourvirtualdisk.avhd is not...

Problem You’re getting an error in SCVMM stating that the format of a aVHD file on a Hyper-V server is not compatible with the VHD format. It is specified with the warning code 3107. Cause Although...

View Article

Image may be NSFW.
Clik here to view.

Having some fun with a NIC and PowerShell

I was just asked on Twitter to write a script to disable all disconnected NIC’s on Windows Server 2008 R2 through the use of PowerShell. First, let’s start with the basics… getting all NIC’s. For this...

View Article

Image may be NSFW.
Clik here to view.

SCVMM – Custom inventory about VM and VHD with PowerShell

Whenever I go to a new customer with a Hyper-V and SCVMM environment, there are a bunch of scripts I run in order to get a view of their environment. One of those is to get all VM’s, the the VHD sizes...

View Article

Image may be NSFW.
Clik here to view.

PowerShell to quickly provision an Active Directory for events and...

Just now I’ve uploaded my first script into the Microsoft TechNet Script Repository… New-DemoAD.ps1 This is a PowerShell script/function one can use to quickly fill an Active Directory with demo users...

View Article


Image may be NSFW.
Clik here to view.

THE Microsoft Private Cloud Computing book to get and read

This is a book I’ve been looking forward to for some time now (along with a few PowerShell books and of course the Hyper-V book from Leandro Carvalho @LeandroEduardo (Hyper-V Administrator’s CookBook)…...

View Article

Image may be NSFW.
Clik here to view.

The rise and fall of the Metro UI in Windows 8

Ever since the Developer Preview of Windows 8 came out, I started working with it. Especially on tablet devices, this was a very nice experience. But I found that the Metro UI was not something I could...

View Article


Image may be NSFW.
Clik here to view.

SCVMM – A PowerShell one liner to report the Cluster Shared Volumes utilization

I’ve just been asked by a community peer to write a script that will report on the utilization of cluster shared volumes on his Hyper-V environment. Since they are using SCVMM, normally I would tell...

View Article

Image may be NSFW.
Clik here to view.

What does the Best Practice Analyzer in Windows Server check for?

Whenever I install a server, I run the Best Practice Analyzer (BPA) for all installed roles just to check if I haven’t messed up. But when I did it this morning for a Hyper-V installation, I was...

View Article


Image may be NSFW.
Clik here to view.

Switch your display through the command line

In Windows 7 Microsoft has introduced a very nice feature, the ability to extend/duplicate your desktop to an external screen. In Windows XP I found it to be very, very annoying whenever I had to use a...

View Article

Image may be NSFW.
Clik here to view.

PowerShell – Data Classification Toolkit for Windows Server 2012

This afternoon I received an email from Microsoft providing me the beta of a tool named “Data Classification Toolkit for Windows Server 2012 Beta”. First, I think they forgot to change the name of the...

View Article

Image may be NSFW.
Clik here to view.

Move disabled user accounts with a PowerShell oneliner

Today I’ve been asked to find all disabled user accounts in a OU named “Branch Offices”. Next, we wanted to move those accounts to an OU named “Disabled Users”. It seems this is fairly simple by using...

View Article
Browsing all 120 articles
Browse latest View live