随笔分类 - PowerShell
摘要:引用:https://stackoverflow.com/questions/29539179/how-to-import-data-from-csv-in-sql-server-using-powershell
阅读全文
摘要:$script:OutMessage = "ok" function WriteLog([string] $content){ #Write-Host $content $script:OutMessage += $content + "`r`n" } Import-Module WebAdministration #获取所有Application Pools Wr...
阅读全文
摘要:Write-Host "- Begining Download Service Bus..."Start /W "c:\Program Files\Microsoft\Web Platform Installer\WebpiCmd.exe /offline /Products:ServiceBus ...
阅读全文
只有注册用户登录后才能阅读该文。
摘要:1 # Config 2 $today = Get-Date -UFormat "%Y%m%d" 3 $LogFilePath = "d:\ftpLog_$today.txt" 4 $UserName = "ftpuser" 5 $Password = "Password01!" 6 7 8 function REM($Msg){ 9 $now= Get-Date10 write-host "$now : $Msg" -foregroundcolor Yellow11 Add-Content $
阅读全文
摘要:## This Script is used to backup folder/files and delete the old backup files.## Author: Stefanie## Last Update Date: 07/10/2013## Copyright (c) Stefanie, All Rights Received. # Declare datetime for now$now = get-date# Declare today string: "20130101"$today = (get-date -UFormat %Y%m%d)# Lo
阅读全文