Installing MIM CTP2 using PowerShell DSC
Just downloaded Preview 2 for Microsoft Identity Manager (MIM) and installed it for the first time using PowerShell Desired State Configuration.It comes with a Test Lab Guide, but I’m no button-monkey...
View ArticlePowerShell Script to Extract CMDB Data From System Center Service Manager...
In my previous post Writing PowerShell Module That Interact With Various SDK Assemblies, I’ve explained how to create a PowerShell module that embeds various SDK DLLs and I’ve used System Center...
View ArticleExecuting scripts on multiple servers by SQL Server version and edition using...
As a SQL Server Professional, I maintain different SQL Server environments by version and was curious if you had any useful approaches to automating and obtaining scripts depending on the version of...
View ArticleRunning PowerShell in a SQL Agent Job
When creating a SQL Agent Job to execute a PowerShell script, you have to decide which way that you want the PowerShell to run. Depending upon which version of SQL Server that you are using and which...
View ArticlePowerShell : A deep dive into remoting - part 2
To get PowerShell remoting working, you need to have the WinRM service up and running and configure it for remoting. WinRm is Microsoft’s implementation of the industry standard WS-Management Protocol...
View ArticlePowerShell Problem Solver: Identify Folders with Blocked Inheritance Using...
I’ll be the first to admit that working with file and folder permissions makes my head hurt. It’s one of the most complicated tasks in Windows that IT pros frequently want to automate. A common task is...
View Articleproblem with Get-ADuser
Hi friendsi have lost my patiense & i will cry.it's about 1 hour that i am struggling with a simple issu.in my domain i have 3 users called u1, u2, u3 both names & samAccount names are same...
View ArticleCan't Understand Return Values
I have read several threads about this; must be I'm plain dumb or one of those "traditional programs'...Any way, I set up a form with a DateTime Picker and in my onclick event$button1_OnClick={...
View ArticleBatch to PowerShell - Syntax Differences
I made the argument that you should stop writing batch files (Cmd.exe shell scripts) and instead focus your efforts on learning PowerShell. Of course, there is always a learning curve to new...
View ArticleThe fastest Powershell #1 : Remove carriage return and replace with a comma
The goal is to measure different techniques to perform a specific task and returns the fastest. All these measures are performed with the same task, under the same conditions, in the same environment...
View ArticleStep by Step instructions for installing RDS Session Deployment using...
As you know, PowerShell has been around for quite a few years now (November 2006 to be exact). Over the past 8 years, we have seen PowerShell become an integral part of Windows. One such example is...
View ArticleWindows Server Is Undergoing ‘Deep Refactoring'
Microsoft's decision to wait until next year to release the next version of Windows Server and System Center came as a surprise last month largely because of the company's push toward faster release...
View ArticlePowerShell one-liner: How to find the AD site name?
How can we query the AD site name of a server with PowerShell? One way to do this is through the .NET ActiveDirectorySite Class:Read More
View ArticleClutter evolves to become more useful - but still only for Office 365
I've covered the Clutter feature ever since Microsoft announced it at MEC in April 2014. It now exerts a great influence over my Inbox and lots of unimportant messages are piling up in the Clutter...
View ArticlePowerShell : A deep dive into remoting - part 4
There are two common options for approaching remoting with PowerShell. The first is known as one-to-one remoting, in which youessentially bring up an interactive PowerShell prompt on a remote...
View ArticleHow To Create A Powershell Script To Backup Your Azure Blobs
In this post I will show you how easy it is to create a PowerShell script using Visual Studio that can backup your Azure Blobs. The same concept can be applied to backup Azure Tables and SQL Database....
View ArticleRejoin a Computer from a Domain In One Easy Step!
We all love our Active Directory domains. Being able to provide single sign-on authentication for users and computers is great. It's a secure solution that saves a ton of time -- cutting out the...
View ArticleSet-ADUser from pipe
Hi guys,I'm wanting to clear out any titles that staff have in AD so they are all blank.I'm testing the command with this first:Get-ADUser -Identity testuser -Properties Name, title | select name,...
View ArticleServer 2003 domain issue - Need to use newer cmdlet
Hello,We are trying to get a list of all our DNS forwarders. The bellow script works perfectly for our newer server 2008 forest run from a PS version that support this cmdlet. The problem I now have is...
View ArticleHow to add a string value in registry that has double quotes " "
Hi folks. I've been able to successfully add reg string values by using the get-item -path and new-itemproperty commands in powershell for windows 2012 but am having difficulty adding a value for a reg...
View Article