Skip to main content

Posts

Showing posts from 2020

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...