Download /Install the PNP module : https://www.powershellgallery.com/packages/PnP.PowerShell/1.12.0 I have find a very usefull script To archive files in Sharepoint This script is setup to clean up 8 Year Old files but you may modify this on the script The files will go into the recycle bin site . Effectively you have a rollback from disaster … Continue reading Cleaning up old Sharepoint Files
Category: PowerShell
Edit host file powershell 1 Liner – Windows OS
In this chapter we are going to explain a little bit what the host file does and how we can make use of it via this powershell 1 liner. Possible uses: Testing a new Server or connectionTesting resolution problems Quick fixes for DNS issues in your enviorment A little bit of history ( wikipedia ) … Continue reading Edit host file powershell 1 Liner – Windows OS
Import & Export Transport rules in 365 Exchange
On this article we will learn how to export and import transport rules in our exchange What Transport rules do? You can use mail flow rules (also known as transport rules) to identify and take action on messages that flow through your Exchange Online organization. Mail flow rules are similar to the Inbox rules that are available in Outlook and Outlook on the web … Continue reading Import & Export Transport rules in 365 Exchange
Powers hell set timezone for UK ( and others )
UK , where do I live! But sometimes I find users laptops , even servers out of my timezone Also there can be gpos blocking you to change the timezone! ( and the system just goes by the US time or European ! ). yes it does! other colleages of you could have set this … Continue reading Powers hell set timezone for UK ( and others )
Powershell Remote desktop sessions
This is a quick made script in 1 line that performs a query to a given list of servers where remote desktop is enabled This is an alternative of using graphical mode on a broker I't can be upgraded next to identify session and log off the desired user ( future post ) The script … Continue reading Powershell Remote desktop sessions