please help me to send mail to all as below script output
$ServerList = Get-Content "D:\ServerList.txt"$OutputFile = "D:\Output.htm"$HTML = '<style type="text/css"> #Header{font-family:"Trebuchet MS", Arial, Helvetica,...
View ArticleNeed help to get Disk I/O of all disks in a server
Hello Friends,Can someone please give me the command to get me the Disk name and Disk I/O on a windows 2012 server using powershell
View Articlerun sql server unattended setup on remote host using powershell
running Enter-PSSession -ComputerName MyServer001 -Credential pricing\dbaconnected at[MyServer001]: PS C:\Users\dba\Documents>"for clear post I placed setup params on separate line, in my call...
View ArticleIs there a way to check stored procs affected by change to a view?
I'm trying to see which stored procs (and functions) might be affected by my having added a column to a view definition, which might cause ambiguity errors.Is there a way to do this without a manual...
View ArticleExport Large Tables To CSV Slow
Hi thereI have written a PS script to export a batch of tables listed in a .txt file to CSV:$server = "XXX"$database = "XXX"$TableFile = XXX.txt'#Delcare Connection Variables$connectionTemplate = "Data...
View Articlehow connect to sql server as different user using powershell ?
Example $instanceName ="Host001\Server1,14002" $AppName = "$($ENV:computername.ToString())_$(($MyInvocation.MyCommand).Path)"$conn = new-object...
View ArticleGot what I need, but perhaps a more elegant solution is out there. Looping...
Hey PoSh experts,So I need to get the max size setting of all SQL databases in the primary filegroup, excluding the system databases and the tempdb. I was told I'll have to loop through the DB's to get...
View ArticleExport Output/Log Info to .CSV
[size="2"]Right now, the output of my script looks this:[/size][size="1"]Microsoft (R) SQL Server Execute Package UtilityVersion 11.0.6020.0 for 32-bitCopyright (C) Microsoft Corporation. All rights...
View ArticleEdit the Directory physical path Location for Applications Under Default Website
Hi, I'm currently looking for a way to amend applications physical paths through power-shell instead of manually going into every application.I have a number of applications under the default website...
View ArticleComplete One Invoke-ASCMD Successfully Before the Next
I am working on a PowerShell script that uses Invoke-ASCMD to run XMLA scripts. In some cases, I have multiple XMLA scripts that need to run. How can I make sure each Invoke-ASCMD/XMLA script runs...
View ArticleCalling a Stored Procedure with Output Parameters
I have another PowerShell newbie question. I want to run a stored procedure from a PowerShell script and receive the resulting output parameter values. So basically, I would like to run the equivalent...
View ArticleFile not found error when calling CreateTextFile
Hi,Wondering if anyone has any ideas what might be happening here. I've set up a SQL Server Agent Job that has a Powershell step in it. The job keeps failing when it tries to execute the Powershell...
View ArticleGenerate Create Script for a table - include indexes, keys, statistics
I spent yesterday trying various approaches to this found on google. Couldn't get any to work.What I'm looking for is a powershell script that will work for a single table, generating the create script...
View ArticleSQL Server 2000
Hi community,Question:I have to copy tables+data from a database in sql server 2000 to a sql server 2008r2 database where this table does not exist. Is possible to do it with PowerShell ??Thanks for...
View ArticleParameter on Powershell Script
I'm having some problems sending parameters to a Powershell script when it includes a dash (-) in it. Here's an example on what I'm trying to do. The script is made to run an SSIS package from...
View ArticlePowershell help
Hi Experts, Is there is powershell script which displays top 10 database tables taking up more space in each database on that sql instance in a nice HTML table format. I am not an powershell expert and...
View ArticleNeed help in modifying powershell script
Hi Powershell Experts, I have below PS script which will display the database file info like dbname, physicalfilename, size, free,used etc. It is working fine for 1 instance. However, I want this to...
View ArticleSQL Powershell help
Hi All,Need some help in SQL Powershell. I got the below script from the powershell community. This report works perfectly fine. This is sql powershell report which gives info abt the database files...
View ArticleNevada elections chief refuses to accommodate
[url=https://www.montgomeryvillage.com/sites/default/files/biccuncaaf_florida_vs_georgia_live_stream_ncaaf_collegefootball_online_29_oct_2016_coverage.pdf]Florida vs Georgia Live...
View ArticleBiden: No Interest in Serving
[url=https://www.montgomeryvillage.com/sites/default/files/mokorncaaf_baylor_vs_texas_live_stream_ncaaf_collegefootball_online_cahntui_29_oct_2016_coverage.pdf]Baylor vs Texas Live...
View Article