Kevin Marquette - The things I do.

Some problems you just can't search on. Here are some I wish were more searchable and this blog is my attempt to make that happen.

Wednesday, November 25, 2015

Here is my custom Powershell prompt

›
Get-Help about_Prompts <# LONG DESCRIPTION     The Windows PowerShell command prompt indicates that Windows PowerShell     is ...
Monday, November 16, 2015

Powershell: Script injection with ScriptBlock.CheckRestrictedLanguage Method

›
I just had a post about importing hashtables from files. It basically loads the file into a script block and executes it.  $content = ...
Sunday, November 08, 2015

Powershell: Importing hashtable from file or a psd1 file

›
Have you ever wanted to import a hashtable from a file? A module manifest that is saved in a *.psd1 file is a hashtable. If you ever wanted ...
Monday, October 26, 2015

Using Powershell to unlock Active Directory account Unlock-ADAccount

›
OK, this is an easy one. There is a command in the ActiveDirectory module that already takes care of this. Unlock-ADAccount kevmar  So...
1 comment:
Saturday, October 10, 2015

Powershell: how to return value from function?

›
Returning a value from a function is really easy in Powershell. Sometimes it is too easy if you are not careful about it. One important deta...

Powershell: how to call a function?

›
Sometimes it is the simplest thing that can be the most frustrating when learning a new language. Calling a custom function in Powershell ca...
Monday, September 28, 2015

Powershell: how to concatenate strings?

›
I was going to write a post on how to concatenate or join string, but the Hey, Scripting Guy! Blog already has a great write up on that.
‹
›
Home
View web version
Powered by Blogger.