Forum Discussion
Abinash RGS ICT - Hotmail
Dec 19, 2017Copper Contributor
Is there a PowerShell command to create a Static Page that goes inside \Site Pages\ library ?
Hi, I need to create few Static Pages i.e. the pages that goes inside the \Site Pages\ library, Is there a PowerShell command to do it ?
I have come across following two commands but not for the S...
- Mar 15, 2024
Hi KvotheRCD,
you can try to use something like this:# Step 1: Open Group Policy Management Editor # Retrieve the GPO $GPO = Get-GPO -Name "YourGPOName" # Open Group Policy Management Editor for the GPO Edit-GPO -Guid $GPO.Id # Step 2: Navigate to the Site to Zone Assignment List # This step is manual and requires navigating through the Group Policy Management Editor interface. # Step 3: Enable the Policy and Specify Zone Assignments # Define the list of URLs and their corresponding zone assignments $SiteToZoneAssignmentList = @{ "https://example.com" = 1 # Intranet zone "https://trusted-site.com" = 2 # Trusted sites zone "https://internet-zone.com" = 3 # Internet zone } # Convert the hashtable to a string format acceptable by the registry $RegistryValue = $SiteToZoneAssignmentList.GetEnumerator() | ForEach-Object { $_.Key + "=" + $_.Value } -join ";" # Set the registry value to enable Site to Zone Assignment List and specify the assignments Set-GPRegistryValue -Guid $GPO.Id -Key "HKCU\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMap" -ValueName "SiteToZoneAssignmentList" -Type String -Value $RegistryValue # Step 4: Apply the Changes # Force Group Policy update gpupdate /force
Make sure to replace "YourGPOName" with the actual name of your GPO and adjust the URLs and zone assignments as needed.
Manidurai Mohanamariappan
Dec 19, 2017Iron Contributor
you can create site page using Add-PnPClientSidePage command
- Abinash RGS ICT - HotmailDec 19, 2017Copper Contributorthank you Manidurai