Search This Blog

Wednesday, October 17, 2018

RunOnce

This one will be familiar to every IT pro that has ever had to deploy something through Group Policy, when you dont have SCCM and have it only apply once, instead of at every start.

Here is a solution:


#cs ----------------------------------------------------------------------------

 AutoIt Version: 3.3.14.2
 Author:   Alex Belenkiy © 2018
 Created:   09/21/2018
 Last Update:  09/24/2018

 Script Function:
 Run an install or a program only once
  To execute run as follows:
   RunOnce.exe "\\server\share\folder\file.exe" "/i /qn" "c:\program Files\RunOnce\test.txt"
   or
    RunOnce.exe "\\server\share\folder\file.exe" - "c:\program Files\RunOnce\test.txt"
#ce ----------------------------------------------------------------------------

if $CmdLine[0] <> 3 then Exit
$CommandFile = $CmdLine[1]
$Switches = $CmdLine[2]
if $Switches = "-" then $Switches = ""
$FlagFile = $CmdLine[3]
if FileExists ($FlagFile) then Exit
$a = RunWait(@ComSpec & " /c " & $CommandFile & " " & $Switches, @SystemDir, @SW_HIDE)
if @error then Exit

$File = FileOpen ($FlagFile, 10)
if @error then Exit
FileWriteLine($File,"RunOnce Executed")
FileClose($File)




If the file named by the third variable exists when the runonce.exe executes, the program will just exit. If the file does not exist, the first variable will be executed along with the switches passed in the second variable. Use a - for the second variable to specify no switches. Once the execution has completed, the file in the third variable will be created.

Enjoy and modify as needed :)

Friday, September 7, 2018

Chrome missing recently visited tiles

I have come across a strange issue with Chrome suddenly missing recently visited sites.

The issue can be resolved by typing the following into the address bar:
chrome://flags

Find the #use-google-local-ntp flag and enable it. Hit RELAUNCH NOW.



The tiles should be back now.

Came across this on REDDIT 

Wednesday, February 22, 2017

Dual boot Windows and Linux time offset

Good day,

long time no post.
I have come across an interesting fix for an annoying problem.

Issue:
If you dual boot Linux and Windows, every time you go into Windows after Linux, the time is wrong.
This is due to Linux using GMT while Windows trying to get the local time.

Fix: create the following DWORD value under 

HKLM\SYSTEM\CurrentControlSet\Control\TimeZoneInformation
RealTimeIsUniversal 

and set it to 1
Reboot and problem solved.

Source: 

Tuesday, May 6, 2014

Citrix Receiver 13 on Ubuntu 14.04

Long time no post...

I have just come across something awesome that actually works:
http://phpraxis.wordpress.com/2014/05/03/installing-citrix-ica-client-in-64-bit-ubuntulinux-mint-redux/#comment-123

Was able to install the latest Citrix client on a kubuntu 14.04 system without a hiccup.

Enjoy!!!

Wednesday, May 30, 2012

Symantec NetBackup 7 console opening delay fixed

If you are a user of Symantec NetBackup, i am sure you have experienced the long delay before opening the application after upgrading from 6.x to 7.x

To fix the issue just run the following on the master server:
\netbackup\bin\bmrsetupmaster.exe

-Update(05/26/2020) Removed link as it was dead.