Waclaw Chrabaszcz
... there is no spoon ...

PowerShell

Hyper-V & PowerShell – How to create a VM with a differential disk

How many times you have to create a VM to test something? How many times you have to watch OS installation progress. Enough! All you need is to create a differential disk to your golden image and spin it. There is another advantage of differential disk. You can create a pseudo strip and keep master image on one drive (SSD) and differential disks on other hard drives. I like this setup for my R&D games. It saves a lot of storage and improves VMs performance. Ad of course I can repeat something ......

Server 2012 and PowerShell remoting – How to create a failover cluster without leaving your desk(top)

Who's the king? Of course PowerShell. Let's try to use its beauty to create 3 node failover cluster. It's nothing unusual, where is this beauty? In remoting of PowerShell scripts. RDP is for noobs. Geeks(withBlogs) do such tasks this way: # Install Failover Clustering and File Server RolesInvoke-Command -ComputerName Server1, Server2, Server3 -ScriptBlock {Get-WindowsFeature *Cluster* | Add-WindowsFeature –includeManagementToolsGet-... *File-Services* | Add-WindowsFeature –includeManagementToolsGet-... ......

Server 2012 R2 – Storage Spaces – A Software Defined Storage by Microsoft

You know ... when I was young (bear in mountainsJ) the server was meaning a file server and Novell as well. In 2000 Microsoft released Server 2000, Active Directory and have changed the world once forever. We will never forget year 2002 when Windows XP was born and of course Server 2003. It was great time to participate in this revolution. We were so proud doing migrations to XP/2003 world. Once it was done we choose to rest, not we … Microsoft did it. It's funny but what you should be aware in live ......

PowerShell – Sexy PoSH console

PowerShell don't has to be boring. Download this module: http://www.powertheshell.co... Extract it into C:\Windows\System32\Windows... may need to enable both module files by right clicking | Prosperities |Unlock) Now you can start PowerShell window: Import-Module PTSAeroConsoleEnable-AeroGl... Enjoy ......

AZURE - Stairway To Heaven

Before you’ll start reading please start to play this song. OK boys and girls, time get familiar with clouds. Time to become a meteorologist. To be honest I don’t know how to start. Is cloud better or worse than on campus resources … hmm … it is just different. I think for successful adoption in cloud world IT Dinosaurs need to forget some “Private Cloud” virtualization bad habits, and learn new way of thinking. Take a look: - I don’t need any tapes or CDs (Physical Kingdom of Windows XP and 2000) ......

PowerShell – duplicated files in Windows Media Player library

Holiday! .. But why it's raining. Let's cleanup some duplicated MP3s. Maybe the rain will stop in the meantime. For sure this code is not optimized, and I am not recommending anyone to use it. If you uncomment move actions you can reduce number of duplicated media files in your Windows Media Player library. You can consider it as an example how to access and browse WMP using PowerShell. $wmp = New-object –COM WMPlayer.OCX$playlist = $wmp.mediaCollection.getAll... { if ($playlist.item($i).sourceURL ......

Server 2012 GUI – to be or not to be …

That's the question J This quick post is inspired by one of feedbacks. To enter into PowerShell just type powershell in CMD To make Server 2012 core server: PowershellUninstall-Windows... Server-Gui-Shell, Server-Gui-Mgmt-InfraShutdown –r To restore server's GUI PowershellInstall-WindowsFe... Server-Gui-Shell, Server-Gui-Mgmt-InfraShutdown –r Voila ! P.S. Of course it not works for 2008 ......

Server 2012R2 – PowerShell Web Access

Haha … Sometimes I'm joking that there is nothing worse than Linux fanboi imprisoned in Windows engineer's body. Maybe someday I will start blogging about my noob's experiences. However let's stick to the point. Sometimes the easiest solutions are the best. After couple of tries how to reach left pocket using right hand I'm going to follow easy path. Today's plan is very easy, I'm going to take advantage of Server 2012 and install Web gateway to PowerShell console. After that I would be able execute ......

Easter egg – OMG^2 the true PowerShell in bash window

Let's continue this crazy experiment. More or less it should works on any distro in my case it is Ubuntu 13. The idea is to use wine (Wine Is Not an Emulator J) to install Powershell 2.0 for Windows XP. Wine can emulate W7 or W8 however it refuses to install .MSU packages. To reach our goal we will need to use experimental wine 1.7 or above and EXE file so … For the science!!! sudo add-apt-repository ppa:ubuntu-wine/ppasudo apt-get updatesudo apt-get install wine1.7 winetrickswget http://kegel.com/wine/winet... ......

SCOM 2012 R2 – How to put servers into Maintenece mode using PowerShell

In more or less ITIL's world you have to monitor availability and performance of your servers. However from time to time you need to apply approved changes, what means temporary unavailability or performance degradation. When we talk about Worldwide organizations, in many cases it is really hard to inform everyone about upcoming changes. Sometimes you don't want to inform anyone, you just don't want to wake up your colleagues at 2:00 AM their local time. So to apply the change in elegant way let's ......

Full PowerShell Archive