Starting Runbook with PowerShell

To start an orchestrator runbook with PowerShell, Microsoft provide a reliable script in its MSDN web site.   But, as prerequisite, the script needs the GUIDs for runbook and runbook parameters. There are different ways to find these GUIDs. One of the easier is to use Excel, and more specifically the PowerPivot plugin. Thank … Read more Starting Runbook with PowerShell

PowerShell Date Time

To play with Date and Time with PowerShell, the main Cmdlet to use is Get-Date. TechNet: The Get-Date cmdlet gets a DateTime object that represents the current date or a date that you specify. It can format the date and time in several Windows and UNIX formats. You can use Get-Date to generate a … Read more PowerShell Date Time

Remove “Users” Group from ACL

This script allows to remove the “Users” Group from the Access Control List (ACL) of a file or folder. First, the NTFS rights inheritance is removed, then the “Users” group is removed from ACL. To play with ACL, the Cmdlet to use is the following: Get-Acl TechNet: The Get-Acl cmdlet gets objects that represent … Read more Remove “Users” Group from ACL

PowerShell Usual Commands

Here is a memento of several useful commands in PowerShell (check files, folders and registry, create or delete files and folders, run executables with or without arguments, displaying MsgBox…). Here is the TechNet listing the standard CmdLets: There are only few commands for the time being, but this article will be updated progressively. . Check … Read more PowerShell Usual Commands

PowerShell and Strings

Here is a memento of several ways to play with strings in PowerShell. Insert Double Quote and ASCII codes Return a specified number of characters   Insert Double Quotes and ASCII Codes To insert double quotes in a string, the following ASCII code can be used: [char]34 ASCII codes can be inserted like follow: $([char]34) … Read more PowerShell and Strings