header image

Archive for November, 2016

Conference–time to book

Posted by: | November 30, 2016 Comments Off on Conference–time to book |

Registration is open for the PowerShell Summit (USA) and PowerShell Conference (Europe). Now is an excellent time to decide which one you’re going to attend next year. If you’re serious about PowerSHell you should be at one of these events.   PowerShell Summit – https://eventloom.com/event/home/summit2017   PowerShell Conference – http://www.psconf.eu/

under: PowerShell

PowerShell finally the de facto shell

Posted by: | November 18, 2016 Comments Off on PowerShell finally the de facto shell |

After 10 years PowerShell has become the de facto shell for Windows!   Windows Insider Preview build 14971 released yesterday uses PowerShell instead of cmd.exe as the default shell in Start Menu or File Explorer.   See https://blogs.windows.com/windowsexperience/2016/11/17/announcing-windows-10-insider-preview-build-14971-for-pc/#66Smq5KicvsTBzld.97 for this and other new features

under: PowerShell, Windows 10

Changing the samAccountName

Posted by: | November 18, 2016 Comments Off on Changing the samAccountName |

I was recently asked how the samAccountName – also referred to as the login id – could be changed.   First lets look at an account: PS C:\Scripts> Get-ADUser -Identity ‘FredFox’ DistinguishedName : CN=FOX Fred,OU=UserAccounts,DC=Manticore,DC=org Enabled           : True GivenName         : Name              : FOX Fred ObjectClass       : user ObjectGUID        : db5a3975-980d-4749-b9c0-48aff9217b2a SamAccountName    : FredFox SID               : […]

under: PowerShell and Active Directory

New PowerShell console on Server Core

Posted by: | November 17, 2016 Comments Off on New PowerShell console on Server Core |

Server Core is great for reducing the footprint of your VMs – Nano server is smaller but it can’t be a domain controller   One draw back to server core is that you only get a single console. If you hang that for any reason you have to either try and open another one (Hyper-V […]

under: PowerShell, Windows Server 2012, Windows Server 2012 R2, Windows Server 2016

Creating test accounts in Active Directory

Posted by: | November 17, 2016 Comments Off on Creating test accounts in Active Directory |

There’s often a need to create test accounts in AD. You may want to create a a set of test accounts or if you have a demo/test lab you may need accounts in that. Creating the names for the accounts is a pain unless you go down the test1, test2 etc route. One way to […]

under: PowerShell and Active Directory

Exploring PowerShell automation

Posted by: | November 16, 2016 Comments Off on Exploring PowerShell automation |

My PowerShell books have all been published by Manning, A while back they asked me to put together a selection of extracts that show the depth and breadth of PowerShell. Its now available – for free – https://www.manning.com/books/exploring-powershell-automation   The book highlights PowerShell remoting and administering SQL Server, IIS and Active Directory through PowerShell. These […]

under: Books, PowerShell

PowerShell 10 year anniversary videos

Posted by: | November 15, 2016 Comments Off on PowerShell 10 year anniversary videos |

Yesterday was the PowerShell 10 year anniversary event – broadcast live on channel 9 The session recordings are available https://channel9.msdn.com/Events/PowerShell-Team/PowerShell-10-Year-Anniversary?sort=status&direction=desc

under: PowerShell

Hyper-V book

Posted by: | November 11, 2016 Comments Off on Hyper-V book |

I’ve been working with Andy Syrewicze on Learn Hyper-V in a Month of Lunches.   Its now available in Manning’s Early Access program (MEAP) https://www.manning.com/books/learn-hyper-v-in-a-month-of-lunches   Until 14 November 2016 you can get the MEAP for half price using code mlsyrewicze

under: Books, Hyper-V

Creating a new AD forest

Posted by: | November 5, 2016 Comments Off on Creating a new AD forest |

As I’ve completely rebuilt my demo/lab machine I need to re-create the Active Directory This is now so simple even on a server core machine   First install the roles and features needed Add-WindowsFeature -Name AD-Domain-Services, RSAT-AD-PowerShell, DNS, RSAT-DNS-Server, DHCP, RSAT-DHCP   This adds AD, DNS, DHCP and the appropriate admin tools – as its […]

under: PowerShell and Active Directory, Windows Server 2016

ComputerName parameters for CIM and WMI cmdlets

Posted by: | November 4, 2016 Comments Off on ComputerName parameters for CIM and WMI cmdlets |

Accessing a remote system and running Get-WmiObject -ClassName Win32_LogicalDisk -ComputerName $computer or Get-CimInstance -ClassName Win32_LogicalDisk -ComputerName $computer is a standard approach.   If you’re creating a function with that code in you may put the local machine as a default parameter: $computer = $env:COMPUTERNAME   Running Get-WmiObject locally will work quite happily because you’re using […]

under: PowerShell and CIM, PowerShell and WMI

Older Posts »