This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Get-ChildItem -path D:\TeamCity\system\artifacts -Filter "bla*" | Where {$_.PSIsContainer -eq $true} | ForEach-Object {$_.FullName} | Get-FolderSize | |
#https://gallery.technet.microsoft.com/scriptcenter/Get-FolderSize-b3d317f5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Taken from original article here: http://blogs.technet.com/b/heyscriptingguy/archive/2012/11/05/use-powershell-to-easily-compare-the-time-between-two-computers.aspx | |
#Compare time on two servers using TimeSpan | |
new-timespan -Start (icm 192.168.1.1 {get-date}) -end (icm 192.168.1.2 {get-date}) | |
#Compare time on two servers using invoke-command | |
invoke-command -ComputerName192.168.1.1 -ScriptBlock {get-date} | Format-List * ; invoke-command -ComputerName 192.168.1.2 -ScriptBlock {get-date} | Format-List * |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Get-ChildItem -path "C:\Development" -Filter "*.xslt" -Recurse | Where { $_.FullName -like "*Mainline*Environment*"} | ForEach-Object {Start notepad++ $_.FullName} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$dscProcessID = Get-WmiObject msft_providers | Where-Object {$_.provider -like 'dsccore'} | Select-Object -ExpandProperty HostProcessIdentifier | |
Get-Process -Id $dscProcessID | Stop-Process | |
Get-WmiObject msft_providers | Select-Object -Property Provider, HostProcessIdentifier | |
#Often we see that the Provider 'WMIEventProv' is left locking files too |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bcdedit /set hypervisorlaunchtype off | |
#bcdedit /set hypervisorlaunchtype auto |
I hereby claim:
- I am lholman on github.
- I am lloydholman (https://keybase.io/lloydholman) on keybase.
- I have a public key ASA5EOBDmwxkBk_2RCPnBCA3uXvHjFXdlRlEV3aykkVjFQo
To claim this, I am signing this object:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#http://boxstarter.org/package/nr/url? | |
choco install visualstudiocode | |
choco install pester | |
choco install poshgit | |
choco install keepass |
OlderNewer