Created
December 30, 2015 20:06
-
-
Save anonymous/f1298a5ac9752ab59db9 to your computer and use it in GitHub Desktop.
var=scriptext
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
$myexpansion=' | |
$applicationdrive=Get-Disk 1 | |
$size=$applicationdrive | Get-Partition | Get-PartitionSupportedSize' | |
$maximumexpansion=$size.SizeMax | |
$applicationdrive | Get-Partition | Resize-Partition -Size $maximumexpansion | |
Invoke-Command -ComputerName localhost -ScriptBlock $myexpansion |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I found a link on this topic on windows it pro.com
I've used it before but it's been a while:
http://windowsafg.no-ip.org/win10x86_x64.html
$message = "Message to John"
$ScriptBlockContent = {
param ($MessageToWrite)
Write-Host $MessageToWrite }
Invoke-Command -ComputerName savdalhv20 -ScriptBlock $ScriptBlockContent -ArgumentList $message