Welcome to TechNet Blogs Sign in | Join | Help

Browse by Tags

All Tags » Windows Server » 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

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

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

VMware and Powershell

Fair's fair. I've taken VMware to task when they, or their bloggers, post something which I think is false. Or the more blatant I think falsehood, the more outspoken my condemnation. Although it's might make a for a simpler view of the world to be attacking

Powershell Tab expansion

One of the things which annoys me about Powershell is that having (in effect) extended the available commands with functions and filters, Tab expansion doesn't find them. I was aware that people have done some clever things extending Tab-expansion ( Power

Getting to grips with Hyper-V's API

It's only 7 months since I first installed Powershell. Hard to believe that last week I saw a copy of the OCS res kit with my name on the cover as a result of the PowerShell scripts I wrote, and worth remembering before criticizing other people's scripts.
More Posts Next page »
 
Page view tracker