Using PowerShell to access event logs for SQL Server
This tip will introduce a few PowerShell cmdlets related to accessing and handling Windows event logs. The event logs capture various system events that occur for both Windows and specific...
View ArticlePowerShell script to extract T-SQL code from RDL files
One of the things I do in my day job at Microsoft Services is to review database design and T-SQL code. Now, when it comes to code, there is a challenge just to find ALL the possible code which hits...
View ArticleWindows Server Backup for multiple servers.
Hi Team, I amp writing a powershell script for my windows infrastructure. And the idea is > A script will run on multiple servers and will get the details about windows server backup in excel file....
View ArticlePowerShell Security and Delegation - PKI and PSRemoting
Yesterday, I had a great time with the CincyPowerShell user group discussing security and delegation in PowerShell with PKI, code-signing certificates, PowerShell Remoting and PowerShell Web Access (...
View ArticleMicrosoft Refreshed Windows Azure with Point-to-Site, Dynamic DNS, Remote...
Microsoft has released enhancements to Windows Azure which includes support for Point-to-Site Connectivity, Software VPN Device, Dynamic DNS, Remote PowerShell, and Linux SSH in addition to remote...
View ArticleDisplay what OU the objects belong to
This PowerShell Script shows what OU the objects belong to.Read More
View ArticleMVP Pro Speaker Series: Automating the Hyper-V Administration with PowerShell...
Leandro Carvalho gave a great presentation on 4.23.2013 titled Automating the Hyper-V Administration with PowerShell. If you would like to review the deck, you may find it located here. If you have...
View ArticleOut-Gridview to Excel with column headers
I am running an external application that creates a Powershell Out-Gridview, perfoms sendkeys for ^a and ^c then pastes the values into a new instance of Excel.Works fine, but would like to include the...
View ArticleVerifying audit settings of files listed within a text file
The script below was written to verify the audit settings of a specific group of files. The script performs the required task, however it only reports if a file matches the requirement or if I change...
View Articlestart-CMPackageDeployment is broken, how to bypass?
I am looking for some help or ideas. We used Greg Ramsey's script as the base to handle the scenario in the subject, unfortunately the Cmdlet to do the same for legacy packages seem to be broken by...
View ArticlePowershell Script For SQL backups
Hi i want to zip .bak sql backups and move these backups from one server to another server. and keep it in a folder .Say If the backups have Source:000.00.21.19 D drivedestination :000.00.21.29 e...
View ArticlePop Quiz: Windows Server 2012: Migration Tools
Q: A company's administrator needs to configure various network servers for migration using the Windows Server 2012 Migration Tools. Which of the following does the administrator need to configure on...
View ArticleWMI CIM-plified Part 4: Remote to Second PowerShell
The new CIM cmdlets in PowerShell 3.0 rely on a remoting feature called a CIM Session. By default this session utilizes the WSMAN protocol, Specifically the newer version of the protocol. So creating a...
View ArticleResistance is futile: You will use PowerShell
Let me state at the outset that I like PowerShell, Microsoft's command-line scripting tool for its various servers. I don't "love" it because I'm not a PowerShell guru -- I'm an Exchange guy. I love...
View ArticleExtracting Cisco hardware data from Rancid
Hi all,I have extracted data from RANCID using egrep across the CVS to provide information on the device FDQN, Chassis Type, Serial No and the part number and serial numbers of any cards or slots...
View ArticleCompare something in the notes field
Hi,I like to compare a value in the notes field of my Active Directory.In sample Code: if (notes field cotains at Office == "branchoffice"){ go on}else {leave}Any idea? I dont know how to get the...
View ArticleUsing PowerShell to configure live migration networks in a Hyper-V cluster
A long time ago, Didier Van Hoye asked me how to configure the networks that should be used for live migration by a Hyper-V cluster using nothing but PowerShell. Unfortunately, I never got around to...
View ArticlePowerShell Script to Start SQL Job
Following Uses Windows Authentication to connect to the SQL Server called “(Local)” and Start the SQL Job called “test”.Read More
View ArticleUsing PowerShell for SQL Server Analysis Services tasks - Part 1
ProblemThere are several repetitive SSAS tasks that I perform on a regular basis and I want to know what options there are to automate some of these tasks such as processing partitions, creating...
View ArticleThe Red and the Blue - Azure SDK for Ruby
The SDK is being backed up with Ruby client libraries, PowerShell tools, and command-line tools for Mac and Linux. There's a set of tutorials on the Windows Azure Ruby Developer Center website showing...
View Article