PowerShell for Windows Admins:

Powershell


January 26, 2016  11:28 AM

Rescuing IE favourites

Richard Siddaway Richard Siddaway Profile: Richard Siddaway
Powershell

I received the new Windows Insider Windows 10 build over the wekend and have just discovered that installing it wiped out my IE favourites – or at least those in folders. I’d copied my favourites to Microsoft Edge when installing Windows 10 so I can copy everything back IE favourites are...

January 26, 2016  8:21 AM

FQDN

Richard Siddaway Richard Siddaway Profile: Richard Siddaway
Powershell

How do you find the FQDN of the machine you’re using.  The simplest way is to combine a couple of environmental variables: PS> "$env:COMPUTERNAME.$env:USERDNSDOMAIN" SERVER02.MANTICORE.ORG If you like using CIM (and who doesn’t) you can try this PS> Get-CimInstance -ClassName...


January 24, 2016  4:56 AM

CDXML filter parameters

Richard Siddaway Richard Siddaway Profile: Richard Siddaway
CIM, Powershell, WMI

I was recently asked about adding a filter parameter to a cmdlet created through CDXML. If you’ve not seen it before (see PowerShell and WMI Chapters 18 & 19 from www.manning.com) CDXML allows you to creat ecmdlets by wrapping a WMI class in some simple...


January 20, 2016  4:37 AM

WMF 4.0 Updates available downlevel

Richard Siddaway Richard Siddaway Profile: Richard Siddaway
Powershell

The WMF 4.0 Updates that were released in November 2014 for Windows 8.1 and Windows Server 2012 R2 are now available for: Windows Server 2012 Windows Server 2008 R2 SP1 Windows 7 SP1 You need WMF 4.0 installed to install the update Details from


January 18, 2016  1:44 PM

Setting external time source in AD

Richard Siddaway Richard Siddaway Profile: Richard Siddaway
Active Directory, Powershell

The PDC emaulator in the root domain of your AD forest should point to an external time source. For some odd reason the PDC emulator in my lab wasn’t doing that. Easily remedied: ## ## set external time source ## set server type to NTP Set-ItemProperty -Path...


January 17, 2016  2:27 PM

WMF 5.0

Richard Siddaway Richard Siddaway Profile: Richard Siddaway
Powershell

If you follow the PowerShell Team blog - http://blogs.msdn.com/b/powershell/ (and if you don’t you should) you’ll know that the WMF 5.0 RTM downloads were pulled just before Christmas. This was due to a bug that reset the module environment.
A comment on the blog -...


January 16, 2016  8:40 AM

PowerShell conferences 2016

Richard Siddaway Richard Siddaway Profile: Richard Siddaway
Powershell

April is going to be a very busy month. It starts with the PowerShell plus DevOps Global Summit in Bellevue, Washington - https://eventloom.com/event/login/PSNA16 The PowerShell Conference EU...


January 12, 2016  4:45 AM

European PowerShell conference 2016

Richard Siddaway Richard Siddaway Profile: Richard Siddaway
Powershell

PowerShell Conference EU combines the former “Deutsche PowerShell Konferenz” and “PowerShell Summit EU” into one great big 3-day PowerShell event for Admins and DevOps in Europe and takes place April 20-22 in Hannover/Germany. With more than 40 international speakers including PowerShell...


January 11, 2016  10:34 AM

Testing against an arrays contents

Richard Siddaway Richard Siddaway Profile: Richard Siddaway
Powershell

You may need to test if a value is a member of an array. PowerShell provides 2 operators for testing array membership  - -   -in and –contains. Simple usage is like this PS> $colours = 'red', 'orange', 'yellow', 'green', 'blue', 'indigo', 'violet' PS> 'blue' -in...


January 8, 2016  1:49 PM

WMI discovery

Richard Siddaway Richard Siddaway Profile: Richard Siddaway
CIM, Powershell, WMI

I’ve been working with System Center Configuration Manager this week. SCCM uses a lot of WMI. However, WMI discovery is still a bit of an art. I needed to find the SMS_SCI_Component class. If you know the namespace you can easily find the classes in that namespace but namespaces are...


Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to: