Calamari/Bootstrap.ps1 at master · OctopusDeploy/Calamari
Temp
about Variables - PowerShell
Describes how variables store values that can be used in PowerShell.
Set-Variable (Microsoft.PowerShell.Utility) - PowerShell
The Set-Variable cmdlet assigns a value to a specified variable or changes the current value. If the variable does not exist, the cmdlet creates it.
Everything you wanted to know about variable substitution in strings - PowerShell
There are many ways to use variables in strings to create formatted text.
How do I concatenate strings and variables in PowerShell?
Suppose I have the following snippet:
$assoc = New-Object PSObject -Property @{
Id = 42
Name = "Slim Shady"
Owner = "Eminem"
}
Write-Host $assoc.Id + " - &qu...
CrashblockBlog
CrashBlockBlog设立于2021年,记录了站长的一些技术分享和心得。欢迎大家互换友链,友善讨论!
New-Service (Microsoft.PowerShell.Management) - PowerShell
This cmdlet is only available on the Windows platform. The New-Service cmdlet creates a new entry for a Windows service in the registry and in the service database. A new service requires an executable file that runs during the service. The parameters of this cmdlet let you set the display name, description, startup type, and dependencies of the service.
SANS Cyber Security Certifications & Research
思路分享:windows权限维持场景中如何隐藏服务信息 - 先知社区
先知社区,先知安全技术社区
about Hash Tables - PowerShell
Describes how to create, use, and sort hashtables in PowerShell.
about Assignment Operators - PowerShell
Describes how to use operators to assign values to variables.
How do I pass multiple parameters into a function in PowerShell?
If I have a function which accepts more than one string parameter, the first parameter seems to get all the data assigned to it, and remaining parameters are passed in as empty.
A quick test scrip...
Functions - PowerShell
PowerShell functions allow you to create tools that can be reused in scripts.
about Functions - PowerShell
Describes how to create and use functions in PowerShell.
Learning PowerShell By Example
PowerShell by Example is a hands-on introduction to PowerShell using annotated example programs.
jinzhu/copier: Copier for golang, copy value from struct to struct and more
Copier for golang, copy value from struct to struct and more - jinzhu/copier: Copier for golang, copy value from struct to struct and more
What is '@{}' meaning in PowerShell
I have line of scripts for review here, I noticed variable declaration with a value:
function readConfig {
Param([string]$fileName)
$config = @{}
Get-Content $fileName | Where-Object {...
What does this syntax do: | select @{E={$_.PSComputerName}; L='Server'}, Name, ProcessId, PathName?
I have a Powershell script where there's a line:
$MyServers | select @{E={$_.PSComputerName}; L='AX Server'}, Name, ProcessId, PathName
What is the significance/function of this part? What does...
Windows PowerShell Cheat Sheet
PowerShell Code Sample
Powershell script Select sort output by number
The following powershell script outputs a server diskspace report.
Is there a way of sorting the 'Percent' data in either desc or asc order?
[Script]
$computers | ForEach {
$Disks = Get-WMIObject
Learning PowerShell By Example
PowerShell by Example is a hands-on introduction to PowerShell using annotated example programs.
How to Pass User Input to a JSON File using powershell
I am creating a PowerShell script using Convert To-JSON cmd and i achieved that using below
$body = @{
devices = @(
@{
credentials = @(
...
Installing PowerShell on Windows - PowerShell
Information about installing PowerShell on Windows
Shell、CMD、PowerShell、Bash
Shell 『Shell』 =『图形用户界面(GUI)shell』 + 『命令行界面(CLI)shell』 sh(Bourne Shell)Linux的远古shell。现在L...
What are the different PowerShell file types?
If I try to save a file in ISE, the default extension is Powershell Files with parenthesis (*.ps1, *.psm1, *.psd1, *.ps1xml, *.pssc, *.psrc, *.cdxml) and with descriptions
Powershell Scripts (*.ps1)
about Automatic Variables - PowerShell
Describes variables that store state information for PowerShell. These variables are created and maintained by PowerShell.
Powershell-正则表达式
Powershell-正则表达式 正则表达式是一种特殊的字符序列,它使用模式中的特殊语法来匹配或查找其他字符串或字符串集。 它们可用于搜索、编辑或操作文本和数据。 子表达式 匹配项 ^ 匹配行首。 $ 匹配行尾。 . 匹配除换行符外的任何单个字符。使用m选项也可以匹配换行符。 [...] 匹配括号中
PowerShell笔记 - 13.正则表达式 - 门前有根大呲花 - 博客园
本系列是一个重新学习PowerShell的笔记,内容引用自PowerShell中文博客 定义模式 如果你需要更加精确的模式识别需要使用正则表达式,正则表达式提供了更加丰富的通配符。正因为如此,它可以更
Split strings inside double quotes to array
Given a string, where each path is quoted inside a double quotes, how do I split it into an array with each item is the literal substrings inside the double quotes. For example:
$input=read-host "...