Jump to content

Recommended Posts

Posted

Hi all,

 

Hope you are well.

 

I am trying to link website hosted background through intune to devices. So students have a wallpaper, staff have a different one etc. Is this possible?

 

What is the best way to do this or if not what is the best method to deploy the wallpapers to the devices?

 

Thanks

Posted

We used the built-in administrative templates.

Desktop > Desktop

Wallpaper name

Wallpaper Style

 

Control Panel > Personalization

Force a specific default lock screen and logon image

Path to lock screen image

Prevent changing lock screen and logon image
 

We only apply one wallpaper to all and push these to the device.

  • Like 1
Posted
2 minutes ago, TechMonkey said:

We used the built-in administrative templates.

Desktop > Desktop

Wallpaper name

Wallpaper Style

 

Control Panel > Personalization

Force a specific default lock screen and logon image

Path to lock screen image

Prevent changing lock screen and logon image
 

We only apply one wallpaper to all and push these to the device.

Thanks mate. Do you put the path in Wallpaper name or anything?

 

If we can't deploy to a user group and it needs to be staff devices have 1 wallpaper and student shared devices have another I can live with that.

Posted

I was sure we picked up the wallpaper from our website but it looks like we have it on a local share and it just picks up the file when it has connection.  I think I will change that over the summer.

Yes the name needs to be full path, with file extension.

 

I can't see why it couldn't be applied to person.

  • Like 1
Posted
13 minutes ago, TechMonkey said:

I was sure we picked up the wallpaper from our website but it looks like we have it on a local share and it just picks up the file when it has connection.  I think I will change that over the summer.

Yes the name needs to be full path, with file extension.

 

I can't see why it couldn't be applied to person.

Thanks again. I have tried using that with the https path to the hosted wallpaper and I am seeing a black block screen.

Posted

I deploy ours via win32 app package. you include the wallpaper in the win32 package along with this script.

 

The install command is:

Quote

powershell.exe -ExecutionPolicy Bypass -File script.ps1 -Action Install

Uninstall command is:

Quote

powershell.exe -ExecutionPolicy Bypass -File script.ps1 -Action Uninstall

Here is the Script code:

param (
    [ValidateSet("Install","Uninstall")]
    [string]$Action = "Install"
)

# ===== CONFIG =====
$FileName = "BackgoundMain.jpg"
$DestinationFolder = "C:\Windows\Web\Wallpaper"
$DestinationFile = Join-Path $DestinationFolder $FileName

# If packaging the file in Intune, this will resolve correctly
$SourceFile = Join-Path $PSScriptRoot $FileName

try {
    Write-Host "Action: $Action"

    if ($Action -eq "Install") {

        # ===== INSTALL (COPY FILE) =====
        if (-not (Test-Path $SourceFile)) {
            throw "Source file not found: $SourceFile"
        }

        if (-not (Test-Path $DestinationFolder)) {
            Write-Host "Creating destination folder..."
            New-Item -ItemType Directory -Path $DestinationFolder -Force | Out-Null
        }

        Copy-Item -Path $SourceFile -Destination $DestinationFile -Force
        Write-Host "File copied successfully to $DestinationFile"
    }

    elseif ($Action -eq "Uninstall") {

        # ===== UNINSTALL (REMOVE FILE) =====
        if (Test-Path $DestinationFile) {
            Remove-Item -Path $DestinationFile -Force
            Write-Host "File removed successfully from $DestinationFile"
        }
        else {
            Write-Host "File not found, nothing to remove."
        }
    }

    exit 0
}
catch {
    Write-Host "Error: $($_.Exception.Message)"
    exit 1
}

 

  • Like 3
Posted

Does anyone know how to do this and push different resolution wallpapers so that the correct resolution screen displays the correct resolution wallpaper through Intune?

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...