Scripting Blog [archived]

Formerly known as the "Hey, Scripting Guy!" blog

Latest posts

Jul 27, 2016
Post comments count 0
Post likes count 0

PowerTip: Use PowerShell to remove a user from all site collections in SharePoint Online

Doctor Scripto

Summary: Learn how to use PowerShell to remove a corporate user from all site collections in SharePoint Online. How can I use Windows PowerShell to quickly remove a corporate user from all site collections in SharePoint Online? Use the following commands (change the login user name as required):

Jul 27, 2016
Post comments count 0
Post likes count 0

Manage your SharePoint Online tenant with PowerShell

Doctor Scripto

Summary: Learn how to manage your SharePoint Online tenant installation by using Windows PowerShell cmdlets. Christopher Weaver is a Microsoft Premier Field Engineer (PFE) who focuses on SharePoint and Office 365 solutions for large enterprise Premier customers. He has been doing PowerShell and SharePoint with Microsoft for nine years. In his spare time, he enjoys backpacking, hiking, kite surfing, and spending time with his kids and dog. You can follow him on his blog at https://blogs.technet.microsoft.com/christwe/. Hello All, Continuing with the topic of how to use PowerShell to migrate a site collection fr...

Jul 18, 2016
Post comments count 0
Post likes count 0

The Scripting Guy: coming to a town near you

I_am_mr_ed

SUMMARY: The Microsoft Scripting Guys, Ed Wilson, upcoming live appearances. Hello Scripters, Teresa (aka. Scripting Wife) here. We have been really busy recently working with PowerShell user groups, and we want to provide you with a convenient listing of upcoming special events. Hope we will be able to see you at one or more of the events. By the way, these events are filling up quickly, so you may want to sign up today. Here is the list: July:  July 19, 2016   Tampa FL  SharePoint User Group Meeting July 21, 2016    Tampa FL   Tampa PowerShell User Group  August: August 17, 2016  Basel Switzerland   Base...

Jul 15, 2016
Post comments count 0
Post likes count 0

Get started with PowerShell and SharePoint Online

Doctor Scripto

Summary: Microsoft PFE Chris Weaver talks about getting started with Windows PowerShell and SharePoint Online. Welcome back Chris Weaver as guest blogger. You can see his previous guest blogs. Christopher Weaver is a Microsoft Premier Field Engineer (PFE) who focuses on SharePoint and Office 365 solutions for large enterprise Premier customers. He has been doing PowerShell and SharePoint with Microsoft for nine years. In his spare time, he enjoys backpacking, hiking, kite surfing, and spending time with his kids and dog. You can follow him on his blog. Hello All, I’ve put the kids to bed, the dog is snoring o...

Jul 14, 2016
Post comments count 0
Post likes count 0

PowerTip: Find all devices connected to a computer

Doctor Scripto

Summary: Use PowerShell to find all devices that are connected to a computer. How can I use Windows PowerShell to list all devices that are connected to a computer? Use the Get-PnpDevice cmdlet and the -PresentOnly switch. Here is an example:

Jul 14, 2016
Post comments count 2
Post likes count 2

Passing through devices to Hyper-V VMs by using discrete device assignment

Doctor Scripto

Summary: Learn how to attach a device from your Hyper-V host to your VM by using a new feature of Windows Server 2016. Today we have a guest blogger, Rudolf Vesely, who has blogged here on previous occasions. Here is a link to his previous posts if you would like to read them. Here is what Rudolf says about himself. I am an Azure Solutions Architect at Rackspace in London. I believe that public cloud is the future for most organizations and this is why I specialize in public clouds (Amazon Web Services and Azure) and hybrid cloud strategy. My unique role at Rackspace is to guide our customers in their cloud st...

Jul 1, 2016
Post comments count 3
Post likes count 0

PowerTip: Get the public IP of an Azure VM with PowerShell

Doctor Scripto

Summary: Use the Azure Resource Manager cmdlets to get the public IP address of an Azure virtual machine.  How can I get the public IP address information for an Azure Resource Manager virtual machine (VM)? All you need to do is use Get-AzureRmVm to find the VM and pass it to Get-AzureRmPublicIPAddress as in the following example:

Jul 1, 2016
Post comments count 0
Post likes count 0

How to alter the public IP address of an Azure virtual machine

Doctor Scripto

Summary: Change the public IP address in Azure Resource Manager by using Windows PowerShell. Honorary Scripting Guy, Will Anderson, shares a personal challenge that he encountered when working with Azure and public IP addresses. He also shares the solution with the rest of us! Take it away, Will! Recently, I incorrectly configured an Azure Resource Manager virtual machine (VM) in my lab environment and needed to make some changes to the public IP settings. A brief look around the Internet came up empty, so I thought I'd share the challenge and the solution to this puzzle with you. The challenge If we take a lo...

Jun 30, 2016
Post comments count 0
Post likes count 0

PowerTip: Get a GUI interface for any PowerShell cmdlet

Doctor Scripto

Summary: Use the Show-Command to build PowerShell cmdlets. I ran into a problem. Some cmdlets have too many parameters to list. Is there an easy way to build a cmdlet with its parameters for the console? You’ll love this trick! Just use the Show-Command cmdlet with any PowerShell cmdlet to get a GUI interface. In the following example, we use this with the Import-MDTDriver cmdlet. When you are done, you will have three options: Run, Copy (for the clipboard), or Cancel.