随笔分类 - PowerShell
摘要:$source = "http://www.leeholmes.com/favicon.ico"$destination="c:\temp\favicon.ico"$webClient = New-Object System.Net.WebClient$webClient.DownloadFile($source, $destination)
阅读全文
摘要:当我们需要在远程机器上跑一些PowerShell命令或者文件的时候,可以运行以下命令$secpassword = ConvertTo-SecureString "Password" -AsPlainText –Force$mycreds = New-Object System.Management.Automation.PSCredential ("Username", $secpassword)Enter-PSSession -ComputerName ComputerName -Credential $mycreds你可能会遇到以下错误:Enter-
阅读全文

浙公网安备 33010602011771号