#PowerShell

在Windows服务器中启动PowerShell方式总结

PowerShell从名字可以知道,他首先是一个shell,而Power就意味他是一个功能强大的shell,从面向用户而言,个人觉得其功能强大体现在以下几方面:(1)微软态度。微软是真正的在推行PowerShell,包括Office等更多自家软件,底层都是调用PowerShell来实现。(2)兼容性cmd。PowerS...

使用powershell来设置时间

https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.utility/set-date?view=powershell-6Set-Date"2018-04-1709:20:28" Set-Date"2018-04-170...

GeHost powershell

TypeName:System.Net.DnsNameMemberTypeDefinition------------------------BeginGetHostAddressesMethodstaticSystem.IAsyncResultBeginGetHostAddresses(stringhostNameO...
代码星球 ·2021-02-08

Module in powershell

https://docs.microsoft.com/en-us/powershell/module/powershellget/install-module?view=powershell-6 https://docs.microsoft.com/en-us/powershell/developer/mod...
代码星球 ·2021-02-08

add environment path to powershell

https://4sysops.com/archives/use-powershell-to-execute-an-exe/https://stackoverflow.com/questions/714877/setting-windows-powershell-path-variable#If,sometimedur...

wirte function in powershell

https://github.com/dahlbyk/posh-git/blob/master/src/Utils.ps1#L102https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_funct...
代码星球 ·2021-02-08

string operation in powershell

https://blogs.technet.microsoft.com/heyscriptingguy/2014/07/15/keep-your-hands-clean-use-powershell-to-glue-strings-together/ powershellconcatstringBecause...

Powershell 常见问题

WARNING:Thenamesofsomeimportedcommandsfromthemodule'todo'includeunapprovedverbsthatmightmakethemlessdiscoverable.Tofindthecommandswithunapprovedverbs,runtheImpo...
代码星球 ·2021-02-08

get the default proxy by Powershell

https://stackoverflow.com/questions/571429/powershell-web-requests-and-proxies$proxyAddr=(get-itemproperty'HKCU:SoftwareMicrosoftWindowsCurrentVersionInternetSe...
代码星球 ·2021-02-08

通过powershell操作eventlog

~Desktop>(Get-CommandWrite-EventLog).ParametersKeyValue--------WarningActionSystem.Management.Automation.ParameterMetadataRawDataSystem.Management.Automation...

powershell如何查看以及设置环境变量

https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_environment_variables?view=powershell-6Get-ChildItemenv:NameValue------...

powershell的stable和preview版本

在看https://github.com/PowerShell/PowerShell/releases的时候发现,已经发布了6.2.0的preview版本的情况下,还会继续发布6.1.3。 在ReadMe中,stable是6.1.3的版本。preview是6.2.0的版本。 ...

powershell脚本的格式化

1.安装visualstudiocode2.安装powershellextension3.打开脚本文件4.F1,然后输入format,找到formatdocument的选项但是这个用起来有点不太理想,傻乎乎的。  通过导入powershellmodule进行操作,module提供了函数Downloa...
代码星球 ·2021-02-08

PowerShell Gallery

https://docs.microsoft.com/en-us/powershell/gallery/getting-startedhttps://www.powershellgallery.com/packages?q=PowerShell-BeautifierNameInstallationPolicySourc...
代码星球 ·2021-02-08

通过cmd调用Powershell脚本

一共需要3个文件,把这3个文件放在一个路径下UTF8NoBOM.bat  这个文件是为了调用ps1pwsh-file"%cd%UTF8NoBOM.ps1"  UTF8NoBOM.ps1  这个文件是为了导入自定义的module,使用自定义module中定义的P...
首页上一页12345下一页尾页