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
Import-Module "C:\Program Files\Azure\StorageSyncAgent\StorageSync.Management.ServerCmdlets.dll" Invoke-StorageSyncFileRecall -Path <path-to-to-your-server-endpoint> |
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
$cred = Get-Credential | |
$s = New-PSSession -ComputerName server1.contoso.com -Credential $cred | |
#Copy files to server | |
Copy-Item -ToSession $s -Path C:\test\test.txt -Destination D:\Test\ | |
#Copy files from server | |
Copy-Item -FromSession $s -Path C:\Temp\test.txt -Destination C:\test\ |
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
PSEdit C:\inetpub\wwwroot\iisstart.htm |
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
$env:Path += ";C:\Program Files (x86)\Microsoft SDKs\Azure\AzCopy" |
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
choco install azcopy -y |
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
choco search azcopy |
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
iwr https://chocolatey.org/install.ps1 -UseBasicParsing | iex |
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
Enter-PSSession -ComputerName <IP, DNS or FQDN> -Credential (Get-Credential) |
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
#Scan for available updates | |
$ci = New-CimInstance -Namespace root/Microsoft/Windows/WindowsUpdate -ClassName MSFT_WUOperationsSession | |
$result = $ci | Invoke-CimMethod -MethodName ScanForUpdates -Arguments @{SearchCriteria="IsInstalled=0";OnlineScan=$true} | |
$result.Updates | |
#Install all available updates | |
$ci = New-CimInstance -Namespace root/Microsoft/Windows/WindowsUpdate -ClassName MSFT_WUOperationsSession | |
Invoke-CimMethod -InputObject $ci -MethodName ApplyApplicableUpdates | |
Restart-Computer; exit |
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
2016.12.04 07:00 Info: --- CDP 0 --- | |
2016.12.04 07:00 Info: [0] Begin CRL Check of http://crl.fabrikam.com/crl/Fabrikam%20Issuing%20CA.crl | |
2016.12.04 07:00 Info: [0] CRL Download via DNS Lookup | |
2016.12.04 07:00 Info: [0] CRL Downloaded Complete | |
2016.12.04 07:00 Info: [0] Beginning Freshness Checks | |
2016.12.04 07:00 Success: [0] Fresh - Expires in 136 hours | |
2016.12.04 07:00 Info: [0] Finish CRL Check of http://crl.fabrikam.com/crl/Fabrikam%20Issuing%20CA.crl | |
2016.12.04 07:00 Info: --- CDP 1 --- | |
2016.12.04 07:00 Info: [1] Begin CRL Check of https://example.blob.core.windows.net/crl/Fabrikam%20Issuing%20CA.crl | |
2016.12.04 07:00 Info: [1] CRL Download via DNS Lookup |
NewerOlder