随笔分类 -  PowerShell

摘要:引用:https://stackoverflow.com/questions/29539179/how-to-import-data-from-csv-in-sql-server-using-powershell 阅读全文
posted @ 2018-05-26 13:29 stefanie 阅读(301) 评论(0) 推荐(0) 编辑
摘要:$script:OutMessage = "ok" function WriteLog([string] $content){ #Write-Host $content $script:OutMessage += $content + "`r`n" } Import-Module WebAdministration #获取所有Application Pools Wr... 阅读全文
posted @ 2016-03-25 17:25 stefanie 阅读(2069) 评论(0) 推荐(0) 编辑
摘要:Write-Host "- Begining Download Service Bus..."Start /W "c:\Program Files\Microsoft\Web Platform Installer\WebpiCmd.exe /offline /Products:ServiceBus ... 阅读全文
posted @ 2014-06-20 09:59 stefanie 阅读(374) 评论(0) 推荐(0) 编辑
只有注册用户登录后才能阅读该文。
posted @ 2013-07-23 18:36 stefanie 阅读(4) 评论(0) 推荐(0) 编辑
摘要: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 $ 阅读全文
posted @ 2013-07-17 22:30 stefanie 阅读(2231) 评论(0) 推荐(0) 编辑
摘要:## 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 阅读全文
posted @ 2013-07-10 14:38 stefanie 阅读(607) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示