How to Run PowerShell Script as Administrator by Default?

PowerShell is an incredibly powerful tool for managing and automating tasks in Windows environments. It’s a common Administrator’s pitfall – forgetting to run a PowerShell script using the “Run as Administrator” option. Failing so could lead to many *weird* issues while running PowerShell scripts. E.g., In SharePoint, we get the “The local…

Read more

Create a Scheduled Task to Run PowerShell Script

Requirement: Schedule PowerShell Script in Windows Task Scheduler. PowerShell is really a game-changer to automate repetitive or time-consuming processes, isn’t it? We have a PowerShell script to generate a report on SharePoint content databases size growth – Storage Report, We used to run it on the first day of every month on…

Read more