Posts Tagged "PowerShell"

How I used PowerShell to download Channel9 recordings from events

SessionDownloader-PoSh
Previously I’ve written Session Downloader to get all (or selected) session recordings from events such as TechEd and Build. Before I wrote the app, I wrote scripts based in PowerShell for the same thing. Now, in time for the Connect() conference I’ve written a PowerShell module in C# that allows you...

A lot of fixes in CU2 for Configuration Manager PowerShell wise

CU2_Almost_Fixes_WildCard_in_PowerShell
As I wrote some time ago Cumulative Update 1 for Configuration Manager 2012 R2 broke the wild card support for getting packages using the Get-CMPackage command in PowerShell. Happily Cumulative Update 2 fixes that problem along with “some” other commands. Get the full list of fixes and updates here. However,...

Get-CMPackage Does Not Support Wildcard Post ConfigMgr 2012 R2 CU1

PostCU1.png
After you’ve installed CU1 for Configuration Manager 2012 R2 you can no longer use wildcard with Get-CMPackage. Pre-installation of CU1, it works just fine to use Get-CMPackage –Id CM100* If your Site Code is CM1 that is. However, after you’ve installed CU1 and restarted PowerShell it nolonger works. Instead we...

Create ConfigMgr Boundary based on Active Directory Site and Services Subnet

Subnets
Every now and then I run into a case where a customer have a problem to deploy an application to a machine. Quite often the problem lies with a missing Content Boundary in Configuration Manager. Many uses the boundary type AD Site, and that is fine – IF, and only...

Workplace vNext :: Part 6 :: Unattended Install ConfigMgr 2012 R2 in Windows Azure

02Installing_Roles_and_Features_thumb.png
This blog post shows you how to create a new VM with SQL Server pre-installed, make sure it automatically joins the Active Directory domain and install required Windows Features as well as Configuration Manager 2012 R2. It acts as a part in a bigger series about ‘Workplace vNext’ using Configuration...

Workplace vNext :: Part 5 :: Add Second Server Automatically Into Active Directory

01-Running_The_Script
This blog post shows you how to create a new VM and make sure it automatically joins the Active Directory domain. It acts as a part in a bigger series about ‘Workplace vNext’ using Configuration Manager 2012 R2, Intune, ADFS and Azure Multifactor Authentication to provide the next generations Workplace....

BITS Transfer is not allowed in Remote PowerShell

dont_use_bits_in_remote_powershell_session
I’ve been developing scripts for quite some time now. One of the more popular have been my script to download TechEd/MMS event videos and powerpoint slides. During the development of that script I went with the .Net Framework WebClient feature instead of the PowerShell integrated BITS transfer feature to some...

Connect Enter-PSSession to an Azure Virtual Machine using a nontrusted certificate

Enter-PSSession_Untrusted_Certificate
Tried Windows Azure for Virtual Machines lately? Then you’ve probably noticed that Remote PowerShell is activated by default as an Endpoint (firewall opening/port forwarding). Per default however, the certificate used by the VM is a nontrusted certificate and if you use Enter-PSSession it will trow you an error: “The SSL...

Workplace vNext :: Part 3 :: Ordering the first VM

07Windows_Azure_PowerShell_VM_Is_Created_thumb.png
This blog post shows you how to order your first VM in Windows Azure and what you need to do in order to create a network in Windows Azure. It acts as a part in a bigger series about ‘Workplace vNext’ using Configuration Manager 2012 R2, Intune, ADFS and Azure...

Clear Device User Affinity in Configuration Manager 2012 R2

/ A couple of days ago I got a question on how one would go ahead and clear all Device/User affinity in a Configuration Manager 2012 Site. There are some PowerShell methods that we can utilize for our script to do this. It is quite simple “for-each” actually but of...

Update multiple Package Source Paths using PowerShell in Configuration Manager 2012

I saw a question on twitter for how to update package source paths using PowerShell in Configuration Manager 2012 SP1. This is a script that I’ve used for many customers during migrations from Configuration Manager 2007 to Configuration Manager 2012 SP1. You can download the script here. As some sort...

Use PowerShell to create ou’s in Active Directory

Just a quick follow up to my last post on creating users with PowerShell. If you find yourself in the need of creating a basic ou structure in Active Directory you can of course do this with PowerShell as well. Below is a quick sample that we use in our...

Use powershell to create sample users in Active Directory

Since I work with Identity Management I often find myself in the need for a bunch of sample users in my directories in order to do proper demos and development. A while ago I found a site called FakeNameGenerator.com which is great because it is possible to put in an...

Hydration Kit for Configuration Manager 2012 R2 Preview using Windows Server 2012 R2 Preview and SQL 2014 CTP1

One of my most popular things on this site is my Hydration Kit to install System Center products. I’ve completed yet a new version, this time I only support the Preview version of Configuration Manager 2012 R2 as well as SQL Server 2014 CTP1. And Windows Server 2012 R2 of...

Unattended installation of System Center Configuration Manager

Alot of you are fully aware that it is possible to perform an unattended/silent installation of a site server using a so called script file. It is really an INI file with declared properties. I really love the simplicity with PowerShell and that it is so easy to run a...