Category: Scripting

Editing SharePoint Online User Profiles with PowerShell 22

Editing SharePoint Online User Profiles with PowerShell

Borrowing heavily from these TechNet contributors, I cobbled the following PowerShell script to enable editing of User Profile properties in SharePoint Online. Don’t just run the script blindly, it updates the AboutMe property for...

PowerShell Image Resize Function 3

PowerShell Image Resize Function

One for the toolbox. Some bits were done by someone else but I can’t remember who, I just parameterised the input, quality, size and output for easy use. Read on…

PowerShell .NET and GUI Interfaces 0

PowerShell .NET and GUI Interfaces

I’ve been grabbing a bit of software from Technet (you know, that thing that Microsoft are shutting down! <_<) and with their download links, they provide SHA1 hashes of the ISOs. I had a...

Backup all Active Directory authorised DHCP Servers 14

Backup all Active Directory authorised DHCP Servers

Use the following VBScript code to interrogate Active Directory for a list of all authorised DHCP Servers which are then piped to a Net Shell (NETSH) backup command. See below for the up-to-date PowerShell...

TIP: List members of a group 0

TIP: List members of a group

To list all members of a known group in human readable form (without the DN) from Active Directory: dsget group “CN=MyGroup,OU=MyGroupOU,DC=domain,DC=com” -members | dsget user -fn -ln > MyGroup.txt OR to just get their...

Convert GET to POST with jQuery 0

Convert GET to POST with jQuery

A bit of code to convert GET values obtained from a clicked link in to a POST and send it as a post using jQuery.

If you generate href values in your code...

Batch scripting is not dead 0

Batch scripting is not dead

There’s still a little place in my heart for a decent batch script. This morsel prompts the user to enter a new computer name and then, using NETDOM, it renames the computer on the...

Use netsh to set a static IP 0

Use netsh to set a static IP

Since I often seem to forget the correct syntax for setting a static IP address using netsh, I’ve decided to blog it then I know where to come to remind myself!

And when...