Jan 18

SCCM set a custom variable dependency using Powershell or Vbs

Stef DriessenComments Off on SCCM set a custom variable dependency using Powershell or Vbs

When you are a frequent user of SCCM, sooner or later you will want a custom variable on which u can set a dependency for jobs further on in the task sequence.

After searching online for a while and not finding a satisfying answer I decided to create a short how-to.

Continue reading »

Dec 15

RES One Automation PowerShell Module

Michaja van der ZouwenComments Off on RES One Automation PowerShell Module

Note: This blogpost is also posted on my personal blog.

resam-posh

When you’re a system administrator and a PowerShell enthousiast a single solution to a problem can result in something big and elaborate. A while ago I was implementing a MDT environment for a customer. I wanted to fill the MDT database with all existing client computers. For that I needed all the clients names and their MAC addresses. Client names weren’t the issue but MAC addresses were a little bit more challenging. I decided to turn to RES One Automation (RES AM) for help. I knew RES AM has the ability to identify agents by their MAC address so it has to store all agent MAC addresses in the datastore. After figuring out how to pry this information from the database I started to wonder what else I could find in there. This resulted in a complete PowerShell module (my first!) for RES One Automation!  Continue reading »

Nov 16

Configure WER User-Mode (Application) crash dumps PowerShell-style

Michaja van der ZouwenComments Off on Configure WER User-Mode (Application) crash dumps PowerShell-style

Note: This blogpost is also posted on my personal blog.

When you’re a system administrator you’re likely to encounter a few application crashes during your career. In order to troubleshoot these crashes Windows Error Reporting (WER) comes in handy. It can be configured so that full user-mode dumps are collected and stored locally after a user-mode application crashes. You can than send the dumps to the software supplier or analyse it yourself using your tool of choise. Continue reading »

Feb 18

Copy AD group memberships from a source user to other users

Michaja van der ZouwenComments Off on Copy AD group memberships from a source user to other users

Note: This blogpost is also posted on my personal blog.

One of those mondaine tasks you get to do as an IT administrator is assigning users to security groups for access to resources in the domain. Usually, when you ask the person making this request which security groups the user account needs membership for, they’ll tell you to use some other user account as a reference. Sometime you’ll even get a list of users that need to have the same memberships. Continue reading »

Feb 18

Change network connection category using PowerShell

Michaja van der ZouwenComments Off on Change network connection category using PowerShell

Note: This blogpost is also posted on my personal blog.

 

refwin-advfirewall-img4

I recently came across an issue with PSRemoting to a Windows 7 XenDesktop VM. I discovered remoting was disabled on the remote system because one of the network connections was a Public connection (it was the PVS connection). To change this using PowerShell is quite easy in Windows 8 or higher: the Set-NetConnectionProfile command is available to do just that. However, in Windows 7 this is not so easy. Even though PowerShell 4 was installed, the command was absent. So I decided to create my own functions to facilitate this, based on this script by Microsoft: LINK. This script utilizes the Network List Manager to make the change.  Continue reading »

Jun 19

When you’re using HP OneView to manage your HP hardware (virtual connect etc.) you can manually create a backup by using the web interface.
Because its a manual proces, it would be an to intensive process to do that on daily or weekly base.

That’s why i created this HP OneView Appliance backup script that uses the Rest API to create a backup and then download it from the appliance.
The script also can archive older backups, to keep everything nice and clean ;).

Please email me when you have any question or suggestion.

Save the script as Oneview-backup.ps1 and run it once (per host and per user) to provide the password which will be saved encrypted.

Continue reading »

Sep 30

Powershell: Backup Lync 2013 configuration

Hendricus KramerComments Off on Powershell: Backup Lync 2013 configuration

One of the most important things to do when using Lync 2013 is to backup the Lync 2013 topology and configuration.
With these backup files and your ssl certificates you can restore your basic Lync environment (without the data).

With this powershell script you can easily backup these configuration files and as a bonus you can also backup the persistent chat database.

You have to run the script on a machine with the Lync cmdlets (Administrative Tools).

Continue reading »

Sep 29

Powershell: Enable multiple Lync 2013 users

Hendricus KramerComments Off on Powershell: Enable multiple Lync 2013 users

When you have a large Lync 2013 environment with several OU’s, you want to “Lync enable” users automatically, and maybe you require a specific user policy for those users. (As you can see i used a VDI policy in my example) With this powershell script you can add as many OU’s as you like as long as you separate them with a comma. Users to enable within a specific OU are selected by: AD account is not disabled, AD account has an e-mail address, AD account is not Lync enabled yet. When you fill out the configuration lines at the begin, your ready to go. You have to run the script on a machine with the Lync cmdlets (Administrative Tools). I’ve tested the script for Lync 2013 implementations.

Continue reading »

Aug 11

Starting PowerShell as default within Windows Core

Robin PlompComments Off on Starting PowerShell as default within Windows Core

LD0001467786_1 My lab environment runs on Windows 2012 R2 Core, with Hyper-V installed. It runs smoothly. When I need to manage the environment I can do the most common task right there on the prompt.

But with Microsoft pushing everyone to use PowerShell I don’t understand why Windows Core start with a normal prompt instead of a PowerShell prompt.

In this article I will describe how you can change the prompt that is launched when Windows Core boots from CMD to PowerShell.

Continue reading »

Jun 10

PowerShell coding on a Mac

Robin PlompComments Off on PowerShell coding on a Mac

Screenshot 2014-06-10 13.30.13 Because my main workstation is a MacBook pro, I use a Windows 8.1 virtual machine for most of my PowerShell coding work or I connect via RDP to my management server. But sometimes I want to quickly edit a script to send it to a coworker or friend. It is possible to edit a PowerShell script in any text editor that is available. But for PowerShell coding it handy if your editor is PowerShell language aware.

Continue reading »