Skip to main content

Posts

Showing posts with the label PowerShell

Remove Banner in SharePoint Online Modern Page

When we create a new page in SharePoint Online, The title area appears on the top with a banner image and the page title. SharePoint Online doesn’t allow you to save and publish a modern page without its “Title”. If you try to save a page with no title, you’ll get an error popup, “ Could not complete that action: Page title cannot be blank. ” We can use the following PowerShell Script to change the page layout type into a "Home"

Bulk Update Managers of the Azure AD Users using powershell script

In Azure AD we do not have an option to update the Manager of multiple users. Followig PowerShell script can help us to overcome this repetitive task.  First we need to create a 'csv' file with following columns User Manager User column contains the list of User Emails. Manager column will contain the Manager's Email of the respective User. Update the 'csv' file path & run the PowerShell script as Administrator.

Windows 10: PowerShell to Assign Drive Letters

If a drive is missing on your device, it could be a letter assignment issue. Follow the steps below to using PowerShell to quickly assign a new letter. Step 1 Search for Windows PowerShell in the start menu, right-click the result, and select Run as administrator. Step 2 Run the following command to get the disk information Get-Disk Step 3 Run the following command to get the partition information Get-Partition -DiskNumber 1 Step 4 Run the following command to assign the drive letter Get-Partition -DiskNumber 1 -PartitionNumber 2 | Set-Partition -NewDriveLetter Z In the above command, replace the following; 1 with the Drive Number you want to assign letters 2 with the Partition Number you want to assign letter Z with the Drive Letter you want to assign Once you’ve completed the steps, the hard drive will now appear in File Explorer.

SharePoint Online: PowerShell to Change Page Layout

Single part app pages provide the capability to host SharePoint Framework web parts or Teams applications in SharePoint Online with a locked layout.  Pros: Single Part App Pages cannot be edited by end-users using a browser It will take the entire width & Header banner area Cons: Currently supports hosting only a single web part or Microsoft Teams application Developers can change page layout programmatically from normal page layout to a Single Page App Page To deploy the Single Web Part App Page in your tenant follow the next steps: Install PowerShell Gallery Open PowerShell as Administrator & run the following command Update Page Template Change the "About-Us.aspx" to the name of the page you want to update Before After Happy Coding...