LazyAdmin

Tips from an other Admin

Copy Sharepoint list items to another list with Powershell and PnP

You can easily copy Sharepoint list items to another list with Powershell and PnP. First connect to the source Sharepoint site. You can use one of mine connector scripts for it here at Technet. Or connect to Sharepoint with:

Get the list items Now we need to retrieve the list items that we want to copy:

Copy the items…

Continue Reading →

Share Sharepoint files and folders from a Office365 Group

Sharing files in Sharepoint, that shouldn’t be that hard right? Well if you are using Office 365 Groups you might have noticed that you are not able the share a file or folder from the Groups Sharepoint site to external users. When you try to use the Invite People option you will get the following error: Your organization policies do…

Continue Reading →

Opening UWP apps like Edge in Full Screen Mode

You can run Microsoft Edge and other UWP (Universal Windows Platform) apps in fullscreen mode by pressing the key combo Win + Shift + Enter . But what if you want to open it from command line in full screen mode? There is no command line switch (like -kiosk from Chrome) to start it full screen so I created a small…

Continue Reading →

Connect to Google API with Powershell

We are going to connect to the Google API with OAuth2.0 and the Powershell Invoke-RestMethod cmdlet. Before we can start scripting in Powershell we first need to get a ClientId, ClientSecret, AuthCode and finally the Access and Refresh tokens. It took me half a day to figure out how to connect to where to get what, so I hope you…

Continue Reading →

Using Microsoft Graph API with Powershell

Microsoft Graph API gives you the ability to interact with the continually evolving Azure services through a single endpoint: https://graph.microsoft.com. We are going to connect to Graph with Powershell, OAuth 2.0 and REST. Registering your App To interact with Graph we need to register our app. Go to https://apps.dev.microsoft.com/portal/register-app to get started. Login with your account that is associated with your tenant….

Continue Reading →