Skip to main content

Edge-Sidebar - EnableDisable

Summary

Enable or disable the Edge Sidebar on a target machine.

Microsoft Edge sidebar

Sample Run

If no action is passed, then Disable will be selected by default.

Sample Run 1

Sample Run 2

Variables

NameDescription
TickIDThe ID of any current ticket for this script.
VarLogA running log of script actions and results.
ResolvedVariable to determine if an issue is resolved for automated ticket completion.
TicketFinishbodyThe body to use for a finished or resolved ticket.
TicketBodyThe body to use for a newly opened or updated ticket.

Global Parameters

NameExampleRequiredDescription
ProjectNameControl-EdgeSidebarTrueDesignates the name of the created ps1 file to be called by the script.
ExpectedReturnHive: HKEY_LOCAL_MACHINE/Software/Policies/MicrosoftTrueDesignates the expected return of the ps1 file.
TicketCreateSubjectEdge-Sidebar - Command Result for %ComputerName%TrueDesignates the desired subject line for a ticket created by this script.
TicketCreationCategory1TrueDesignates the desired ticket creation category for a ticket created by this script.
TicketFinishUserID1TrueDesignates the desired userId for finishing or commenting on a ticket created by this script.
DoNotCommentOpenTicket0 or 1TrueToggles commenting on open tickets for recurrent failures.

User Parameters

NameExampleRequiredDescription
ActionEnableFalseDefaults to Disable. Disable disables the sidebar. Enable enables the sidebar.

Output

  • Script log
  • Ticket

Example Script Log

Script Name: Edge-Sidebar - Command
Run Time : 3/16/2023 2:30:14 PM
Target : DEV-WIN11-2(885)
Existing Ticket ID: 77459
-------------------------------------------------------------------------
Writing PS1 to file on DEV-WIN11-2
File Location: %ltsvcdir%/Packages
File Name: Remove-EdgeSidebar.ps1
-------------------------------------------------------------------------
Executing file: %ltsvcdir%/Packages/Remove-EdgeSidebar.ps1
-------------------------------------------------------------------------
Command Results:
OK
-------------------------------------------------------------------------
The Command has completed successfully,
A reboot / logoff / logon is required for the setting to completely apply to the computer.
-------------------------------------------------------------------------
A ticket already exists for DEV-WIN11-2
TicketId is: 77459
-------------------------------------------------------------------------
Resolution is : True
TicketId: 77459
Finishing ticket 77459
-------------------------------------------------------------------------

Ticket Example

Ticket Example