//
Archivi

Archivio per

Up Next: Don Jones talks about PowerShell V4 Desired State Configuration

Originally posted on PowerScripting Podcast:
This Thursday July 25, we are having PowerShell MVP, Don Jones, on the show to give us his take on the PowerShell V4 feature Desired State Configuration. This will be a great show, don’t miss it! Some reading material from Don on the topic: Microsoft announces PowerShell v4, DSC Powershell…

Server Documentation

Originally posted on Richard Siddaway's Blog:
No one likes documenting their servers but is a necessary job.  As the start of a series on taking those first automation steps – you’ve learned PowerShell and now you want to put it to use – I have an article on the Scripting Guy blog that shows…

Select and List

Originally posted on Richard Siddaway's Blog:
There are many times when I need to do something like this: get-Whatever | select –first 1 | format-list –property * Normally its because I need to discover the properties on an object and see some representative data at the same time. If I  just wanted the properties…

AD Month of Lunches–Chapt 18 & 19 in MEAP

Originally posted on Richard Siddaway's Blog:
An updated MEAP has been released for Active Directory Management in a Month of Lunches.  This one adds chapters 18 & 19 Chapter 18, “Managing AD trusts” Chapter 19, “Troubleshooting your AD” The MEAP is available from http://www.manning.com/siddaway3 Enjoy

ErrorAction and WarningAction

Originally posted on Richard Siddaway's Blog:
You’ve all probably done something like this: £> Get-Process -Name xyzGet-Process : Cannot find a process with the name “xyz”. Verify the process name and call the cmdlet again.At line:1 char:1+ Get-Process -Name xyz+ ~~~~~~~~~~~~~~~~~~~~~    + CategoryInfo          : ObjectNotFound: (xyz:String) [Get-Process], ProcessCommandException    + FullyQualifiedErrorId : NoProcessFoundForGivenName,Microsoft.PowerShell.Commands.GetProcessCommand   First…

Using WMI methods with the CIM cmdlets

Originally posted on Richard Siddaway's Blog:
  Using WMI class methods with the CIM cmdlets can cause a lot of confusion. This article, of mine, should clear up that confusion for you. http://blogs.technet.com/b/heyscriptingguy/archive/2013/09/20/hey-dude-where-are-my-methods.aspx

Module versions in PowerShell 4.0

Originally posted on Richard Siddaway's Blog:
Comparing a Windows 8.1 build with a Windows 8 machine I think these modules remain the same between Windows 8/PowerShell 3 and Windows 8.1/PowerShell 4 BitLockerBitsTransferBranchCacheCimCmdletsDirectAccessClientComponentsDnsClientiSCSIISEKdsMicrosoft.PowerShell.DiagnosticsMicrosoft.PowerShell.HostMicrosoft.PowerShell.SecurityMicrosoft.WSMan.ManagementMMAgentMsDtcNetConnectionNetSwitchTeamNetTCPIPNetworkConnectivityStatusNetworkTransitionPKIPSDiagnosticsPSWorkflowUtilityScheduledTasksTroubleshootingPackWdacWindowsDeveloperLicenseWindowsErrorReporting While these modules appear to have changed – at least with the version number 1.0.0.0 AppBackgroundTask2.0.0.0 AppLocker2.0.0.0 Appx1.0.0.0 AssignedAccess1.0     Defender2.0     Dism2.0.0.0 International3.1.0.0…

Death of the command line?

Originally posted on Richard Siddaway's Blog:
I saw this today “the desktop is going to disappear, just like the command line before it” in http://windowsitpro.com/windows-8/windows-desktop-death Has the guy never heard of PowerShell?

PowerShell help

Originally posted on Richard Siddaway's Blog:
There’s an announcement from the team producing PowerShell help that most of the help for PowerShell 4.0/Windows 8.1/Windows 2012 R2 is complete. You can see the latest versions of the help files at http://technet.microsoft.com/en-us/library/dn249523.aspx The version numbers may not be fully up to date but they will be…

PowerShell whimsy with arrays

Originally posted on Richard Siddaway's Blog:
I was thinking about the Christmas song – 12 days of Christmas and wondering just how many presents were delivered. Don’t ask why! So I decided to work it out. $days = 12$presents = 1..$days $total = 00..($days-1) | foreach {  $total += $presents[$_] * $presents[(-1 * $presents[$_]…