PowerShell for Windows Admins:

Powershell

1

September 20, 2014  10:13 AM

Creating a DHCP reservation

Richard Siddaway Richard Siddaway Profile: Richard Siddaway
DHCP Reservation, Powershell

For my demo at the PowerShell Summit I wanted to use DHCP for the Linux machine but guarantee that it had a specific IP address.  Time to create a DHCP reservation   The DHCP module in Windows Server 2012 and 2012 R2 enables you to create a reservation: Add-DhcpServerv4Reservation...

September 17, 2014  12:48 PM

Getting the most from your PowerShell Summit

Richard Siddaway Richard Siddaway Profile: Richard Siddaway
Powershell

With the first European PowerShell Summit rapidly approaching – 11 days and counting – I thought I’d give you a few ideas on how to get the maximum out of the Summit. First – ask questions – lots of questions.  The speakers are masters of their topics and if you need to drill deeper...


September 14, 2014  4:58 AM

Output from jobs

Richard Siddaway Richard Siddaway Profile: Richard Siddaway
Powershell

I tripped over a little problem the other day that’s worth reporting.  I was running something like this:   $sb = { $procs = get-service $procs | Export-Csv test.csv -NoTypeInformation } Start-Job -ScriptBlock $sb -Name test   I was collecting some data and outputting...


September 12, 2014  10:49 AM

Multiple triggers on a scheduled task

Richard Siddaway Richard Siddaway Profile: Richard Siddaway
Powershell

Setting up a scheduled task can be accomplished like this:   $taskname = 'Test Job' Get-ScheduledTask -TaskName $taskname -ErrorAction SilentlyContinue |  Unregister-ScheduledTask -Confirm:$false   $trigger = New-ScheduledTaskTrigger -Daily -At...


September 10, 2014  2:07 PM

OneNote and XML–finding pages

Richard Siddaway Richard Siddaway Profile: Richard Siddaway
office 2013, Powershell

Pages are towards the bottom of the hierarchy in OneNote – though we still haven’t dived into the content of pages yet.   You can find the pages in your notebooks like this:   $onenote = New-Object -ComObject OneNote.Application $scope =...


September 9, 2014  1:22 PM

OneNote and XML–finding sections

Richard Siddaway Richard Siddaway Profile: Richard Siddaway
office 2013, Powershell

I recently showed how to find the names of your OneNote notebooks.  The next level down is the section.  You can find these sections in a notebook like this:   $onenote = New-Object -ComObject OneNote.Application $scope =...


1

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: