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

PowerShell

PowerShell & ActiveDirectory - BYOTD - Build your own test domain

Sometimes you'd like to test your scripts/polices/solution before the implementation against thousands of users. And as usuall, your personal LAB is too poor, on the other side your Admin considers OU creation in crime categories. I love these stories … "I won't create this GPO until you show me that it works. " I would say a typical IT paradox. Psssst… the beer is open. Let's create some better OU structure on my LAB domain. Cheers! If you wondering how to build a domain and DC, I'd recommend you ......

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 ......

XenDesktop 7 – The QFARM /LOAD case

For XenApp admin live without QFARM is like live without right hand. Of course you can obtain required information using the PowerShell, but XenDesktop 7's command line is too long to remember and type. Let's make some sweet alias. Add-PSSnapin citrix.*set-alias qfarm Qfarm-Loadfunction Qfarm-Load {Get-BrokerMachine -SessionSupport MultiSession -Property dnsName,loadIndex,SessionCo... Of course you'll need to update your personal ENV to start this alias automatically ......

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 ......

Full PowerShell Archive