//
you're reading...
MDT 2013, Microsoft | Solution Accelerators, Technology

Unblock BGInfo in MDT Task Sequence

Here how to unblock BGInfo.lnk that you put in the “C:\ProgramData\Microsoft\Windows\Start Menu\Programs\StartUp” folder during your LTI deployment.

  • Create a simple PS1 file containing the CGI <file> | Unblock-file command line.

Image 05

 gci “C:\ProgramData\Microsoft\Windows\Start Menu\Programs\StartUp\Bginfo.lnk” | Unblock-file

  • In your notepad, copy-paste the command line above and save it as a .ps1 file in the Scripts folder.
  • In your task sequence add a Run PowerShel Script and point to the PS1 script that you have just created.

Image 06

How to manually unblock and verify:

  • This Security Warning pop-up every time you login if you have installed BGInfo and add it to your startup folder.

Image 01

  • If you go to  and check on the properties > general tab you have to unblock it manually to stop the pop-up.

Image 02

  • This is how to unblock the file in PowerShell.

Image 03

  • After running the command, check the BGinfo.lnk’s properties and verify that the unblock button is gone.

 

Image 04

 


Unknown's avatar

About Jay-R Barrios

EUC Consultant | Modern Endpoint Management | Intune | SCCM | Windows | Community Leader | Microsoft MVP Alumnai

Discussion

No comments yet.

Leave a comment

Microsoft Most Valuable Professional (MVP) Alumni

Philippine Windows Users Group

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 40 other subscribers