Saturday, June 23, 2018

Windows Firewall Block all Programs in a Folder

So..Say you want to block all internet connections for an exe(s) in a Windows folder, this bat file will Block All Internet connections save below cmds to a bat file, save to a folder with the exe(s) you want to block, and then Run this bat file. Voila!


@ setlocal enableextensions 
@ cd /d "%~dp0"

for /R %%a in (*.exe) do (

netsh advfirewall firewall add rule name="Blocked with Batchfile %%a" dir=out program="%%a" action=block

)
 

Friday, June 8, 2018

VLC + MPC + GOM Players Resize, Favorites and Bookmark settings

Compare VLC MPC and GOM Player settings and availability, Favs and Bookmarks are key when scrubbing videos in prep to edit, in other works marking videos to be used in Editing.


     MPC


         Disable Resize:
             After r2637, check "Remember last window size" will automatically disable "Auto-zoom",ticket 865 was referring to revisions after that.
     If you would like stick with your 1.4.2499.0, then you can check "Remember last window size", and uncheck "Auto-zoom" in Options->Playback at the same time.

        Playlist:
             "C:\Program Files (x86)\K-Lite Codec Pack\MPC-HC64\default.mpcpl"

        Favortes:
             there are two possibilities:
             1) in the registry
                 look for "HKEY_CURRENT_USER\Software\Gabest\Media Player Classic\Favorites"
             2) in the mplayerc.ini file
                 look for a section named "[Favorites\Files]"
    

     GOM


         Player Disable Resize
             ry right-clicking on player, then video->use default screen size. Might have happened that you set something here.
        
         Playlist
             "P:\2018\20180525_Alberto\20180525_Alberto.GOM.asx"
            
         Favs
             Manage / Add Favs
             Save to Playlist
             or
             Export to reg file
                 "C:\Users\DoyleJ\Documents\gomplayer_20180608.reg"
        

     VLC


         Disable Resize:
             Default is OK
             Select Tools ⇨ Preferences ⇨ Interface then uncheck the box Resize interface to video size.
Finally, restart VLC.
        
         PlayList
             "C:\Users\DoyleJ\Documents\VLC.PlayList.xspf"
            
         favs:
             None?
             bookmarks Add
             creates

Figures:

MPC:


     Playlist ex:
         MPCPLAYLIST
         1,type,0
         1,filename,P:\2018\20180525_Alberto\Video\SOLO0022.MP4
         2,type,0
         2,filename,P:\2018\20180525_Alberto\Video\SOLO0019.MP4
         3,type,0
         3,filename,P:\2018\20180525_Alberto\Video\SOLO0020.MP4
         4,type,0
         4,filename,P:\2018\20180525_Alberto\Video\SOLO0021.MP4
    
     Favs:
         [Favorites]
         RelativeDrive=0
         RememberPosition=1
         [Favorites\Files]
         Name0=MAH01588.MP4;72044246;0;P:\2018\20180525_Alberto\Video\videoThumbs\MAH01588.MP4
         Name1=MAH01591.MP4;316151989;0;P:\2018\20180525_Alberto\Video\videoThumbs\MAH01591.MP4
         Name2=SOLO0022.MP4;238979560;0;P:\2018\20180525_Alberto\Video\SOLO0022.MP4

   

GOM


     Playlist examples:
     <asx version = "3.0" >
         <entry>
             <title>SOLO0018.MP4</title>
             <ref href = "P:\2018\20180525_Alberto\Video\SOLO0018.MP4" />
             <duration value = "14" />
         </entry>
         <entry>
             <title>SOLO0019.MP4</title>
             <ref href = "P:\2018\20180525_Alberto\Video\SOLO0019.MP4" />
             <duration value = "152" />
         </entry>
         <entry>
             <title>SOLO0020.MP4</title>
             <ref href = "P:\2018\20180525_Alberto\Video\SOLO0020.MP4" />
             <duration value = "114" />
         </entry>
         <entry>
             <title>SOLO0021.MP4</title>
             <ref href = "P:\2018\20180525_Alberto\Video\SOLO0021.MP4" />
             <duration value = "0" />
         </entry>
         <entry>
             <title>SOLO0022.MP4</title>
             <ref href = "P:\2018\20180525_Alberto\Video\SOLO0022.MP4" />
             <duration value = "49" />
         </entry>
     </asx>

    Bookmark
         http://player.gomlab.com/guide.gom?tab=37&language=eng
          right click the video playback area, select “Bookmark”

        XML:
             C:\Users\DoyleJ\AppData\Roaming\GRETECH\GOMPlayer\bookmark.xml
             <BookMark>
                 <Target path="P:\2018\20180525_Alberto\Video\videoThumbs\MAH01589.MP4">
                     <Element pos="5.529" comment="Bookmark 0">
                         </Thumb>
                     </Element>
                 </Target>
             </BookMark>

        Export
             "C:\Users\DoyleJ\Documents\GOMPlayer.Bookmarks.MAH01606.gbm"
             [Bookmark]
             0=5.697458    Bookmark 0    FFD8FFE000104A46494600010100000100010000FFDB00430006040506050406060506070706080A100A0A09090A140E0F0C1017141818171416161A1D251F1A1B231C1616202C20232627292A29191F2D302D283025282928FFDB0043010707070A080A130A0A13281A161A282828282828282828282828282828282828282828..
     Favs:
         Preferences | Export | Reg files |
             "C:\Users\DoyleJ\Documents\gomplayer_20180608.reg"
         "_FAVORITE000"="[F] SOLO0022.MP4||P:\2018\20180525_Alberto\Video\SOLO0022.MP4"
         "_PSPRESET000"="(Default)
         100 100 100 100"
        

VLC:


     PlayList:
         "C:\Users\DoyleJ\Documents\VLC.PlayList.xspf"
         <trackList>
                 <track>
                     <location>file:///P:/2018/20180525_Alberto/Video/videoThumbs/MAH01595.MP4</location>
                     <duration>4504</duration>
                     <extension application="http://www.videolan.org/vlc/playlist/0">
                         <vlc:id>0</vlc:id>
                     </extension>
         </track>

Tuesday, June 5, 2018

How does Powershell script connect to SharePoint OnPrem?

**some notes from Powershell setup and connectivity**

How will the PS script connect to SP?or
how I can access the PowerShell cmdlets from my client pc?

Everything I read assumes you're in front of the actual server. Is there anything like an RSAT module I can install on my client PC?

https://sharepoint.stackexchange.com/questions/101038/how-do-i-install-the-2013-sharepoint-powershell-module-on-my-windows-7-client-co

PS vs JS vs CS : Different Ways To Add Item In SharePoint 2013 List


https://www.c-sharpcorner.com/UploadFile/sagarp/different-ways-to-add-item-in-sharepoint-2013-list/


1) remote ps


PowerShell REMOTELY (not directly on the server)
  On the SharePoint Servers:
Log onto the SharePoint Server(s) as the SharePoint Administrator

2) csom


https://social.technet.microsoft.com/wiki/contents/articles/29518.csom-sharepoint-powershell-reference-and-example-codes.aspx

rest: https://blog.vgrem.com/2014/04/15/consuming-the-sharepoint-2013-rest-api-from-powershell/

PowerShell and the Client Object Model to write code against SharePoint Online. It can be a little intimidating at first, given the complexity of the work required.


3) PnP


https://sharepoint.stackexchange.com/questions/101038/how-do-i-install-the-2013-sharepoint-powershell-module-on-my-windows-7-client-co/101042

https://stackoverflow.com/questions/43510867/how-to-connect-to-sharepoint-2013-on-premise-using-csom-in-powershell?rq=1

SharePoint Patterns and Practices (PnP) contains a library of PowerShell commands (PnP PowerShell) that allows you to perform complex provisioning and artifact management actions towards SharePoint. The commands use CSOM and can work against both SharePoint Online and SharePoint On-Premises. The advantage is code you have written can be simply replaced with one single commandlet.

Windows 10 + SurfaceBook 2 Performance Tweaks : Update UI & OS Settings, Remove Bloatware & MS Spyware, Tweak Network Adapter

Windows 10 Setup: Tweak UI to look more like Windows 7

  1. Add personalization shortcut to desktop, see Figure 1 below

  2. Add Classis Shell to Windows 10,restore the look and feel of Win7

    1. Download Classic Shell here

  3. Tweak Windows Explorer:

    1. View Hidden, icons only ect per view menu

  4. Tweak System UI Performance: System:

    1. Adjust for best performance

  5. Change Computer name

Windows 10 Setup: Tweak OS to improve performance

** note ** Use of my computer is targeted towards development + some multimedia editing. So what works for gamers doesn’t work for me,

  1. Tweak Services for Performance per Black Viper recommendations,.

  2. [Optional] Tweak Paging File for performance,

    1. If RAM > 8GB I keep defautl setting

    2. If Ram <=8gb, SET TO RAM * 1.5

  3. Disable startup applications

    1. MsConfig

    2. Task Scheduler (Hidden)

    3. CCleaner

  4. Disable system visual effects

  5. Disable search indexing / Modify Indexing

https://www.howtogeek.com/howto/windows-vista/speed-up-or-disable-windows-search-indexing-in-vista/

  1. Disable Diag track

    1. sc config "DiagTrack" start= disabled
      
      sc stop "DiagTrack"
  2. Disable 
    1. Get tips, tricks and suggestions as you use Windows.
    2. See https://www.tenforums.com/tutorials/30869-turn-off-tip-trick-suggestion-notifications-windows-10-a.html
  3. Disable Data Collection:
    1. See https://www.majorgeeks.com/content/page/how_to_disable_diagnostics_tracking_(diagtrack)_or_connected_user_experiences_and_telemetry.html
    2. and https://winaero.com/blog/how-to-disable-telemetry-and-data-collection-in-windows-10/
    3. HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\DataCollection
    4. AllowTelemetry = 0 
    5. and
    6. Diag Track Listener Disable

Windows 10: Remove Bloatware & MS Spyware


Overview:

How to run Debloat Summary

    1. Edit Scripts:

    2. Run scripts in order

        Open PowerShell as an Administrator

        Type the command (without quotes): “Set-ExecutionPolicy Unrestricted” and press enter

    3. Run Other Tools as needed

Debloat-Windows-10-master

    Main debloater with several scripts to remove Win10 bloatware

Debloater GitHub Download Scripts here

Remove Apps Script

How to Debloat

More help...

Other Tools

    WindowsAppsRemover_winxar_102

        Remove/Disable pesky Windows 10 Apps

    O&O ShutUp10

        Disable Windows 10 useless features, O&O ShutUp10 means you have full control over which comfort functions under Windows 10

https://www.oo-software.com/en/shutup10

DisableWinTracking

        Disable MS tracking!

http://www.softpedia.com/get/Tweak/System-Tweak/Windows-10-Tracking-Disable-Tool.shtml

SurfaceBook 2: Tweak Network Adapter for performance:

Boost Surface Book/ Pro Wi-Fi connectivity

The first thing you have to do is to open the registry as an administrator, simply type regedit in the taskbar search box, and hit Enter.

Navigate to the following path:

HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\mrvlpcie8897

Find the item labeled “TXAMSDU”. Double tap and modify the value from 1 to 0.

Restart your Windows 10 PC to complete the workaround.

If everything works as expected, your slow connectivity should be resolved and you should now see an improved wireless connection.

Windows 10 Issues I ran into:

  1. Mapped drives do not work in Windows 10.

    1. Set EnableLinkedConnections = 1'

  2. Surface MS Wireless Adapter does not work

  3. Mapped Drives do not work after switching Wifi spots on same network:

    1. Open Cmd ->

    2. ipconfig /release

    3. ipconfig /renew

  4. Adobe After Effects and other apps have super tiny unreadable font.

    1. Fix Display Scaling in Windows 10 apps!

    2. And here is my manifest I used to fix Adobe After Effects

    Download AfterFX.exe.manifest

Figure 1

Clipped from: https://www.howtogeek.com/277448/how-to-make-windows-10-look-and-act-more-like-windows-7/

Easily Access the Classic Personalization Window

By default, when you right-click on the Windows 10 desktop and select Personalize, you are taken to the new Personalization section in PC Settings. However, the Personalization window from Windows 7 is still available in the Control Panel. You can add a shortcut to the desktop so you can quickly access the classic Personalization window if you prefer it.

Right-click on the desktop and select New > Folder from the popup menu.


Copy and paste the following text into the name of the folder and press Enter.

Personalization.{ED834ED6-4B5A-4bfe-8F11-A626DCB6A921}


The icon changes to the personalization icon and the name of the folder also changes to Personalization. Double-click this icon to access the classic Personalization window in the Control Panel.

Personalization

Figure 2 : Other Links

scripts

https://community.spiceworks.com/scripts/show_download/3977-windows-10-decrapifier-version-2

https://github.com/bmrf/tron/blob/master/resources/stage_4_repair/disable_windows_telemetry/purge_windows_10_telemetry.bat

https://github.com/W4RH4WK/Debloat-Windows-10

Utils

https://www.computerworld.com/article/3199125/microsoft-windows/top-30-free-apps-for-windows-10.html#slide21

https://www.google.com/search?q=win+10+remove+bloatware&rlz=1C1SQJL_enUS790US790&oq=win+10+remove+bloatware&aqs=chrome..69i57j69i64l2.5956j0j7&sourceid=chrome&ie=UTF-8

https://www.theguardian.com/technology/askjack/2018/jan/18/how-can-i-remove-unwanted-apps-from-windows-10

https://www.computerworld.com/article/3199125/microsoft-windows/top-30-free-apps-for-windows-10.html#slide21

https://sourceforge.net/projects/windirstat/files/

https://www.lastpass.com/

https://support.microsoft.com/en-us/help/3073930/how-to-temporarily-prevent-a-driver-update-from-reinstalling-in-window

https://filehippo.com/download_speccy

https://www.revouninstaller.com/revo_uninstaller_free_download.html

https://docs.microsoft.com/en-us/sysinternals/downloads/autoruns

See here

Run all programs as Administrator on Windows

We have 3 options to run a program as Admin in Windows:

1) Shift Right Click , then run as admin

2) Shortcut –> Properties –> Advanced –> check “Run as  Admin” check box

3) Default all apps to runas admin: Using UAC, we then can disable UAC thereby all apps run as Admin via reduced rights. This is OK for home use but prob. not corp use due to security and policies. If your home environment is secure via router / firewalls and a solid antivirus on the machine consider allow all APPS to runas Admin, this reduces the manual intervention on every app start, see below procedure

3.a

Danger! See here more info

Run gpedit.msc to open the Local Group Policy Editor. Expand Computer Configuration, Windows Settings, Security Settings, Local Policies, and Security Options. Four settings need to be updated:

  1. Set "User Account Control: Behavior of the elevation prompt for administrators in Admin Approval Mode" to Elevate without prompting.
  2. Set "User Account Control: Detect application installations and prompt for elevation" to Disabled.
  3. Set "User Account Control: Run all administrators in Admin Approval Mode" to Disabled.
  4. Set "User Account Control: Only elevate UIAccess applications that are installed in secure locations" to Disabled.

The LGPE automatically saves all changes, so exit it and reboot.

3.b

1 - Add User To Administrators Group And Remove From Users Group:

  1. Log In As Administrator

  2. Go To Run ( WinKey + R )

  3. Type "control userpasswords2"

  4. Select Your Account And Click On "Properties"

  5. Select "Group Membership" Tab

  6. Select "Administrators"

  7. Click OK And OK


2 - Disable Approval Mode

  1. Log In As Administrator

  2. Go To Run ( WinKey + R )

  3. Type "secpol.msc"

  4. Go To Local Polices > Security Options

  5. Find "User Account Control: Switch to the secure desktop when prompting for elevation"

  6. Open It Click Disable It And Click Ok.

  7. Restart Computer( Very Important Log Off Doesn't Work )


Now Every App Will Be Run As Administrator In All Administrator Users

Surprised smile

Monday, June 4, 2018

Fix Adobe After Effects small font on menus or other windows apps with tiny fonts

See below reg file, use when font on UI is too small to read even though DPI is at normal level (100% or 125%)


1) Tell windows to prefer an external manifest file

--------------------------------------------------------------------------------

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\SideBySide]
"PreferExternalManifest"=dword:00000001

--------------------------------------------------------------------------------

2) Create and place the external manifest files

and then add this to program.manifest in PF dir of Adobe After Effects (or said app)



See also:

https://forums.adobe.com/thread/1692469

and

https://www.danantonielli.com/adobe-app-scaling-on-high-dpi-displays-fix/


for more info