-
Recent Posts
Categories
Topics
Archives
Tag Archives: PS
Initialising arrays in PowerShell
Initializing arrays in PowerShell (en-US spelling for search engine purposes ). I think it’s taken me three years to work this out and it took a rushed script with a typo to figure it out. Later I finally found the … Continue reading
Obtaining a random result set in PowerShell
Given a set of data how does one return an arbitrary subset? Well in T-SQL we’d do this: So how can we do this in PowerShell? Well in pretty much the same way actually. Pipe to Sort-Object and then to … Continue reading
Invoking (running) SQL Server Agent Jobs using PowerShell
As I navigate the meandering thread of complexities that is the identity management project I inevitably find myself using SQL Server more and more. Forgone is the text delimited management agent; embraced is the database management agent (specifically, SQL Server). … Continue reading
Posted in Scripting, SQL Server
Tagged Example, PowerShell, PS, Script, Scripting, SQL, SQL Server, SQL Server Agent, Tip
Leave a comment
SQL Server aliases
(a.k.a. Honestly…My top Layer-8 issue of 2010) SQL Server aliases: they need to be created on all clients that use them, not just the SQL Server! How do we create them? Two primary ways: CLICONFG.EXE (%systemroot%\system32\cliconfg). Native to Windows, the … Continue reading
Posted in Scripting, SQL Server
Tagged Example, Help, Layer-8, PowerShell, PS, Script, Scripting, Setup, SQL, SQL Server, Tip
4 Comments
Converting System.Security.SecureString to String (in PowerShell)
I appreciate that most people won’t want to ever convert a secure string into a normal string however there’s a couple of reasons why you would even though there are security concerns. In my case I’m providing PowerShell scripts that … Continue reading
Check whether or not the current PowerShell session is elevated
I was reviewing some PowerShell code for a colleague the other day when I stumbled across some code he’d found on the web that I immediately stole, re-wrote into a function, and made use of. Although this information is out … Continue reading
Posted in Scripting
Tagged Elevation, Example, PowerShell, PS, Script, Scripting, Tip, User Account Control
Leave a comment