Functions/Reset-Desktop.ps1

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
function Reset-Desktop {
<#
.SYNOPSIS
    Forces a reset of the desktop
.DESCRIPTION
    Forces a reset of the desktop and does things like refresh icons
.EXAMPLE
    Reset-Desktop
 
    Would reset the desktop
#>


    #region parameter
    [CmdletBinding(ConfirmImpact='Medium')]
    [Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSUseShouldProcessForStateChangingFunctions','')]
    param()
    #endregion parameter

    begin {
        Write-Verbose -Message "Starting [$($MyInvocation.Mycommand)]"
    }

    process {
        ie4uinit.exe -show
    }

    end {
        Write-Verbose -Message "Ending [$($MyInvocation.Mycommand)]"
    }
}