Powershell 101

The aim of this post is to explain some basic tips and tricks about the usage of powershell in a real world: For reference to well-known PowerShell web sites, go to my Web links on this web site or here is a reference for powershell cmdlets: http://ss64.com/ps/ else in French a simple tutorial:http://lavalisedutechnicien.free.fr/joomla/index.php?option=com_content&view=article&id=195&Itemid=297 Videos: https://channel9.msdn.com/Blogs/Taste-of-Premier/PowerShellBasicsPart1 https://channel9.msdn.com/Blogs/Taste-of-Premier/PowerShell-Basics-Part-2-Real-Word-Examples-for-Our-Most-Common-CmdletsContinue reading “Powershell 101”

Powershell module for DNS

DNS to change a dynamic record to a static record http://social.technet.microsoft.com/wiki/contents/articles/21726.how-to-convert-a-dynamic-resource-record-to-a-static-one-without-re-creating-it-in-dns.aspx   DNS PowerShell – import-module DNSServer example: http://www.rivnet.ro/category/active-directory/dns   DNS Powershell – DnsShell  Summary: Learn how to use a free Windows PowerShell module to ease administration of Windows DNS: DnsShell (http://dnsshell.codeplex.com/) What is DnsShell? The majority of the cmdlets in DnsShell are wrappers aroundContinue reading “Powershell module for DNS”

Monitoring Event ID with Powershell or SCOM

Using Powershell: http://msexchange.me/2014/06/05/monitoring-event-id-thru-powershell/ http://community.spiceworks.com/topic/282720-powershell-event-log-monitor-email-alert-script-central-monitor https://vijredblog.wordpress.com/2014/03/21/task-scheduler-event-log-trigger-include-event-data-in-mail/ Using SCOM: http://jimmoldenhauer.blogspot.fr/2013/03/scom-2012-how-to-generate-alerts-from.html http://scomandplus.blogspot.fr/2013/02/creating-rules-to-monitor-security-logs.html http://thoughtsonopsmgr.blogspot.fr/2013/11/windows-event-log-monitoring-how-to-get.html http://opsmgradmin.blogspot.fr/2011/05/scom-monitoring-windows-event-logs.html        

AD CS (PKI) cmdlets reference

To manage ADCS with Powershell, after you install the Quest Active Roles Management Shell For Active Directory (download here), you get lots of additional PowerShell CMDlets to use. To find those, just issue the command “Get-Command *QAD*” or have a look at the reference information. Just download and install the snap-in. To see the availableContinue reading “AD CS (PKI) cmdlets reference”

Signing Powershell script with a Certificate

Introduction about Powershell execution policies: get-help set-executionpolicy First a signing certificate matching a specific template. It could be a self-signed certificate but it does not really make sense. Relying on PKI infrastructure, there is already a “Code Signing” template. For instance, have a look to: http://www.mikepfeiffer.net/2010/02/obtaining-a-code-signing-certificate-and-signing-powershell-scripts/ In the same link, there are instructions to signContinue reading “Signing Powershell script with a Certificate”