If I have: Write-Host \"[$(Get-Date -displayhint time)] backup starting...\" I get: [02/17/2010 1:26:12pm] backup starting...
I\'m using the app pool and virtual directory created here and I\'m trying to figure out how to set the recycle worker processes in minutes for the app pool and for the virtual directory I\'m trying t
Test script: function outer { [cmdletbinding(supportsshouldprocess=$true)] param($s) process { $pscmdlet.shouldprocess(\"outer $s\", \"ShouldProcess\") | out-null
There\'s already question addressing my issue (Can I get && to work in Powershell?), but with one difference. I need an OUTPUT from both commands. See, if I just run:
I can format the Get-Date cmdlet no problem like this: $date = G开发者_C百科et-Date -format \"yyyyMMdd\"
I want to automate a daily download of a report from our credit card provider\'s website. The file is dynamically generated, so I wont know the actual URL for the file itself.
OK here is my issue: I am trying to run a script remotely on a server. I am an administrator on both boxes, firewall exceptions are in place, remote admin is enabled, and everything else looks goo
I have this code in PowerShell, that executes SQL query to UPDATE my table: $Connection=new-object data.sqlclient.sqlconnection \"server=server;database=mydb;trusted_connection=true;\"
I would like to inject co开发者_JAVA百科mmand line parameters into my psake build script like: .\\build.ps1 Deploy environment=\"development\"
I am trying to replace a sentence in .config file using powershell. ${c:Web.config} = ${c:Web.config} -replace