Obama ratchets up fight to unseat Rubio
[url=https://www.montgomeryvillage.com/sites/default/files/brischikncaaf_florida_vs_georgia_live_stream_ncaaf_collegefootball_online_pahntui_29_oct_2016_coverage.pdf]Florida vs Georgia Live...
View ArticleAutoalert if SQLAgent stops
Typed in services.mscSelect SQLAgent->Properties->Recovery->Under First Failure select - >Run a ProgramUnder program ->Path to the powershell executableUnder command ->-Command...
View ArticlePowershell drop down list for parameter values.
Hello,I am looking to right a function that will add a sql login to a role. Thing is, when the parameter is entered, I don't want anyone typing anything is because typos are a pain. I have done some...
View ArticleAcces Denied
Good day Experts,I am new to powershell and please help me.Where i work we use powershell script in sql server agent job to retrieve information that is hostname and disk drives size and free space...
View ArticleGroup-object question
Let's suppose I have $objTable, a SQL Server table object, with 3 columns:nUnitType_IdcE_DescritpioncF_DescriptionI swear that at one point a few months ago, this bit of code was returning $DescCols...
View ArticleSet variable values when calling a SQL Agent Job from PowerShell
Hi guys,Is it possible to set variable values when calling a SQL Agent Job from PowerShell? If we can, can somebody please direct me to some documentation?Thanks is advance :-)
View ArticleSQL Policy Management - Invoke-PolicyEvaluation - remote policy file path
Hi,I'm trying to call a number of XML SQL Management Policy files using a remote network path e.g.Invoke-PolicyEvaluation -TargetServer "instancename" -Policy "\\servername\policy.xml"This results in...
View Articlehow add contents of the string to 2 table objects
Hi,I have string with following format$string = @'AvgSQLCpu,AVGCpu,AVGOtherCpu100,97,2alertType,alertStatus,alertGenerate,alertDetailsHIGHCPU,ERROR,0,'@I have 2 table objects[object] $tbl1 = New-Object...
View ArticleHelp calling PowerShell Function via SSIS EPT
Hi,I successfully tested this by using the following expression:"-ExecutionPolicy Unrestricted -File \"" + @[User::Script_Path] + "\\Exec PoSh Script.PS1\" \"" + @[User::FirstName] + "\" \"" +...
View ArticleFree eBook from PacktPub: Getting Started with PowerShell - TODAY ONLY!!!
PacktPub, a well known but smaller publisher, provides a free eBook every day. I believe it is a loss leader that they run in an attempt to generate more sales. Each book is only available for free for...
View ArticlePowershell to send email with attachment only if file is full
Hi All,Hope All is Well.I am new to powershell. I am trying to attach a txt file using the following in a ps file and it works well.Send-MailMessage -To <> -From <> -Subject "System Events"...
View ArticlePoweshell script to script out jobs, databases, users, linked servers,...
create a c:\servers.txt file with list of serversand copy the following into a file .ps1enjoyfunction getwmiinfo ($svr) { gwmi -query "select * from Win32_ComputerSystem" -computername $svr | select...
View ArticleHelp needed with multiple invoke-sqlcmd commands
Hi ,I am using invoke-sqlcmd cmdlet to fetch the data initially then use that data to fetch other details (looping through these details)code:Import-module sqlpls$instance = <servername>$server =...
View ArticlePowershell profile and VS2013
Is there a way to set up Visual Studio 2013 so that my profile.ps1 runs on startup, or do I just have to load the SQLServer modules as needed in each script?
View ArticleWe'll also provide you with the
[url=https://www.youtube.com/watch?edit=vd&v=fIWZGpFehl8]Redskins vs Giants Live...
View ArticlePowershell Slower based on Runtime account
So I have a powershell script that goes out and grabs some database properties on approximately 30 servers. It returns data on a couple hundred databases in under 1minute, however when it gathers data...
View ArticlePowershell vs Sqlcmd
Hi there,I'm wondering if anyone can explain whether I should be using Powershell instead of Sqlcmd, or as well as, which is best for certain situations and what the main differences are between...
View ArticleDeShaun Watson help guide the
[url=https://www.youtube.com/watch?v=sYJ7bm7etJ4]CFP National Championship 2017 Live Streaming[/url][url=https://www.youtube.com/watch?v=O2yP5PHdkfQ]CFP National Championship 2017 Live...
View ArticleGet Visual Studio 2014 Path
Hi,If I run the below path I get the path as : "C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\Tools\"....but I need the below path :'C:\Program Files (x86)\Microsoft Visual Studio...
View ArticleComparing file name and view column in Powershell
Hello experts, I'm learning Powershell to try to accomplish a task. I say "learning" as a disclaimer - so if the code below is as ugly as I think it is, by all means let me know of a more elegant way!...
View Article