Welcome to TechNet Blogs Sign in | Join | Help

Browse by Tags

All Tags » Powershell   (RSS)

PowerShell and checking management rights.

Something which has come up more than once with the builds I of my PowerShell Hyper-V library has been that by default PowerShell doesn't ask Windows to elevate it's privileges - which, for example, the Microsoft Management Console does. By default it

You know you have been doing too much PowerShell when you translate Macbeth ...

When you wake up with Powershell in your head for things which are not scripting tasks, as I did this morning, you being to thing I need a holiday, or perhaps "Get-Vacation -days 7" It stated with the thought that Waiting for Godot could be one line of
Posted by jamesone | 6 Comments

Finding Hyper-V servers in your domain

One of the advantages of having Virtualization integrated with Windows is that the Hyper-V (and in fact Virtual Server 2005) registers itself in active directory so you can discover your servers easily - quite useful if servers start popping up like mushrooms. 

Hyper-V PowerShell library - now on Codeplex

I've decided to go ahead and post the PowerShell library I have been working on to Codeplex . I wanted to explain various bits of it here before pulling it all together, but that is taking more time than I wanted. I've provided early copies to a few people

How to get PowerShell snapins to work on 64 bit

I mentioned a problem with 64bit Powershell in my previous post: 3 snap-ins I've wanted to use have been packed for 32 bit and didn't work "out of the box" on 64 bit, so  I thought I'd give a generic guide to making snapins work on 64bit.
Posted by jamesone | 2 Comments
Filed under: ,

Open-XML. This is what it's all about.

I have been saying for ages that most IT professionals really don't give two hoots about Open-XML. It's a file format. Who cares ? The old file format had been around for ages, and was pretty opaque, so hardly anyone dug into it. The new format is XML
Posted by jamesone | 0 Comments
Filed under: , ,

Doubts and Powershell, Hyper-V KeyValue pairs and Hash tables.

I've said a number of times that I think technical people are rarely secure in their own abilities; that they have a demon on their shoulder who whispers "You're not really, that good" ... "They'll find you out one day". I was talking

The Hyper-v API Network interfaces

If you've read my post on adding disks to a Virtual machine , the techniques here should already feel familiar. We create a NIC , and we create a switch port. And then we tell the NIC it is connected to the switch port. Hyper-V creates VM switches which

The Hyper-V API - Disks

In an earlier post in this series (several posts ago now) I showed how the Msvm_virtualSystemManagementService WMI object can be used to configure resources in Hyper-V, and I started with the easy step of setting memory and CPUs which exist on a freshly

More on the Hyper-V API

In which we see how to set the number of CPUs I started with getting MSVM Computer System objects - which I showed back in February . With these objects I can ask for the state of the VM to be changed to Running, Stopped or Saved. To do things in a proper

Hyper-v Snapshots part 2.

In my last post I explained how snapshots work and gave a little bit of PowerShell for creating a one . In the post before that I talked about creating a generic  choose-tree function. What I wanted was to be able to call Choose-tree  List_Of_Items

Hyper-v and Snapshots (Part 1)

We often talk about "rolling back" to a snapshot, but here, some of the snapshots we can apply aren't simply forward or backward, hence Hyper-V talks about applying snapshots. It also talks about Deleting snapshots which causes some confusion.

A little more on PowerShell

I've been showing PowerShell on the roadshow, and Steve warning me about it becoming the "Look-how-clever-I-am-with-PowerShell show". Actually, I quite like the idea of a "Look-how-clever-PowerShell-makes-you show". Working on some

Accessing the Hyper-V API: disks.

... In which we create compact, mount, unmount vhds In my last post I said " There are two WMI objects which do most of the work", and mentioned the one named "Msvm_ImageManagementService". I spent last week with  poor Internet

More on the accessing the Hyper-V API from Powershell

... In which we find VMs, them choose one, start them, stop them , and connect to them. I spent more of the last week than I planned looking at Hyper-V and Powershell, and I'm getting dangerously close to calling myself an expert. There are two WMI objects
More Posts Next page »
 
Page view tracker