Windows 10 “Just a Moment”

So I started my Windows 10 Golden image on 1607.  I upgraded to 1703 and then after deployment to the machine it gets stuck on “just a moment”.

Add the following to your unattended and all will be right with the world once more.


For more detail please see source

Print Friendly, PDF & Email

FOG V 1.3.0 on CentOS 7 Full Install Guide

FOG now live, Manual BETA!

Last updated 04/01/2017


Welcome to another FOG guide.  This time, lets install FOG

Base OS = CentOS 7 x64 (DVD Ver)
FOG = 1.3.0

Please note this guide follows the best practice for CentOS7 installation issued by the FOG Team.
I’ve just spent the extra time to hold your hand the hole way.

I will redo this guide into the FOG Wiki when I get time.

Anyway, Lets get on…

Step One – Install CentOS

This is basic but I will list all to make sure we are setting up the same.

1. Download CentOS7 (x64) (Direct Link) & burn to DVD.

2. At installation of CentOS, select the following options:

-Select Language (UK)
-Select complete disk for installation location (unless you want something fancy)
-Setup Static IP (rename port to eth0 if not defaulted already) & Enable NIC
-Select KDE desktop from packages (Why not add some GUI, not required)
-Set ROOT password (no need to add more accounts)
-Wait for install to complete, Remove media and reboot.


Step Two – Configure OS

1. Forget the GUI, Connect to the new server via SSH and lets begin.

2. Lets disable SELINUX & the firewall.

sed -i 's/SELINUX=enforcing/SELINUX=disabled/' /etc/sysconfig/selinux
sed -i 's/SELINUX=enforcing/SELINUX=disabled/' /etc/selinux/config
systemctl stop firewalld
systemctl disable firewalld

3. Lets now update the OS.
(This may take a while to complete, and you might have to accept some overwrites)

yum -y update && reboot


OK, so now we have CentOS7x64  installed, patched, rebooted and ready to go.



Step Three– Adding Applications

1. A few items that FOG / we need to complete the mission.

yum -y install htmldoc ttf2pt1 t1utils fltk subversion wget mariadb-server mariadb


CentOS doesn’t use MySQL as std.  Instead we will be using MaridaDB.
This is mysql just renamed.

2. Now lets turn MaridDB on and keep it on.

systemctl start mariadb
systemctl enable mariadb

3. GOOD !.  Now lets make MaridDB secure.


4. Pick the following options

-current pwd = BLANK
-Set Root = Y (then add new pwd for SQL)
-Remove anon = Y
-Disallow root remote = N (you can pick this one)
-Remove test DB = Y
-Reload = Y


Step Four– Getting FOG

1. Lets 1st get to a DIR we all know (root home)

cd ~

2. Now Lets download FOG and put it into a DIR


Please note version 1.3.0 is in beta

svn co FogDownload


Step Five– Install FOG


Almost there, Just got to install Fog now:


(now is a good time to snapshot if in VM)

1. type below in terminal:

cd FogDownload/bin

2. type below in terminal:


3. Setup as I have below

-Choice = 1
-Type = <press return>
-IP (is shown) = <press return>
-DHCP Router = y  --(Enter IP of your DHCP server)
-DNS for DHCP = y --(Enter DNS Server)
-Change Default eth0 = n
-FOG as DHCP = n
-Language packs = n
-donate = n --(Sorry, not now)
-Continue = y


Fog will start to install before it stops to ask about SQL.

##What is the storage location for your images directory? (/images)

4. A question is asked of you.
did you leave the mysql password blank during install?

answer = n
input password & continue.


!!ALERT !!

! You must read the next bit carefully !


The script now tell you do go do something and then press continue when it’s been done.  

Don’t be the one to just press continue!


5.  When the script stops on “Press [Enter] “, open the following URL on another machine in the browser of your choice. (Lets just use IE 11 as a Standard)

http://<fog server ip>/fog/management

6. Click the button “install“.

7. Go back to the install script and now “Press [Enter] “.


Fog will continue to install & finish.


Step Six– Add DHCP Settings

1. Open DHCP



! Installation Complete !



-FOG Login

1. Lets take a look at fog !!

http://<fog server ip>/fog
username = fog
password = password






You can control services as in examples below:

systemctl start <service>

systemctl stop <service>

systemctl status <service>


more e.g.

systemctl status httpd

systemctl status mariadb

Print Friendly, PDF & Email

XenServer – Change DNS Server IP

If you want to change the config of the nameservers in xenserver you can just edit this file.

1) login to xenserver via SSH or console

2) Type "nano /etc/resolv.conf"

3) Make changes

4) Press Crtl+W to write (Y to confirm)

5) Press Ctrl+X to exit.

Print Friendly, PDF & Email

VBS Clean Printer list

If your looking to delete all the printers via script this is your code.
You can change the SELECT to pick certain printers.

This .vbs can be deployed using GPO as a user login script.

strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
Set colInstalledPrinters = objWMIService.ExecQuery _
("Select * From Win32_Printer Where ServerName = '\\\\servername'",,48)
For Each objPrinter in colInstalledPrinters

All Printers

("SELECT * FROM Win32_Printer")

All printers where they are offline

("SELECT * FROM Win32_Printer WHERE ExtendedPrinterStatus = 2")



For more select statements please compile them using the information below.

or search for “WMI Win32_Printer class”

Another useful tool is WMI Code Creator.
This will show you the values of current WMI records and build your select.

Print Friendly, PDF & Email

Specify directory with spaces in /etc/fstab

If you want to add a filesystem to mount in /etc/fstab you need to use the octal ASCII value which is \040. In my case I have created a separate filesystem for VMware virtual machines:

/dev/mapper/vmwarefs  /var/lib/vmware/Virtual\040Machines ext3 defaults 1 1

If you have any other special characters which are causing problems you can check with

man ascii

for the value you need to specify.

Print Friendly, PDF & Email

Windows 7, kick logged on users like XP did

This little program allows any user of the local admin group to log off a user who has locked their machine, just like in windows XP without using fast user switching. It basically takes seconds to install and when a user locks their machine, they get the message stating that user x has locked this machine … “This computer is locked. Only the logged on user can unlock the computer” and to unlock it you need to press control, alt, del and log in with the users details who have locked the machine.


Download Application & Code

Source site: View forum post


Print Friendly, PDF & Email

mount samba share on MAC desktop

Locate apple script on your system under utilities.  Create a new document and do one of the two below actions.


tell application "finder"
map volume "smb://servername/servershare"
end tell

OR with username and password

tell application "Finder"
mount volume "smb://WORKGROUP;username:password@servername/servershare"
end tell

Save the file, I change it from a script to an application so I can still edit it, but i can just double click it to use it.

If you want this to work automatically, add the script to the user account startup options found in the account settings in settings.


Other apple commands, good read 😉

Print Friendly, PDF & Email

Lost MAC password

So someone asked me to access their MAC to which they added they had lost the password and didn’t have any OSX disks.  Difficult I thought, BUT no, EASY !

So this manual doesn’t change or retrieve the lost password. but does allow you to create another administrator account on the MAC. Once your in as a new administrator you can get your data back or just to into account and change the password for the original account.

1) Boot your MAC from off (not sleep) and hold the “command” key and the “S” key at the same time.

2) Once at the prompt root# let go and type the following:

mount -uw /

rm /var/db/.AppleSetupDone
shutdown -h now

4) the MAC will reboot and you will do the welcome setup (where you create a new account)

5) login as that new user and then change the account password for the locked account in settings.

6) Clean up by logging in as your unlocked your and delete the temp admin account we just created in the MAC settings.

Please try and add a note to confirm.

Print Friendly, PDF & Email

Check Windows 7 Activation Using VBS

So i had some issues trying to use windows activation and wanted to be able to report on the OS status using BGInfo.

My below script can be referenced  inside BGInfo.

I might be worth downloading WMI Code Creator v1.0 This can be used to show what other information is ready for the picking.

Editing the below script will be able to report on any of the records WMI can throw your way.


Copy and paste the following code into a new .vbs file

Set objWMIService = GetObject("winmgmts:\\.\root\cimv2")
Set colItems = objWMIService.ExecQuery("Select * From SoftwareLicensingProduct")
Coltest = int(0)
IsWinActivated = True

For Each objitem In colItems
IF int(objitem.GracePeriodRemaining) = 0 Then Coltest = True else Coltest = False
IF Coltest = False then IsWinActivated = False

IF IsWinActivated = False then
call echo "Failed"
call echo "Successful"

Print Friendly, PDF & Email

Bring laptop in for maintenance (Build for windows 7 32/64)

Please Explain…

OK, So at work I was asked to devise a way to make users return their laptops to us in IT for maintenance reviews. Now if anyone else has tried to get users to return hardware of maintenance on their own, it’s impossible…

So I have created a script that disables user logins after a X number of days. They also receive warnings after a different X number of days.  In my environment the PC’s are not connected to the domain. they run Windows7 32-bit.

I would like to know if I could get this to work on a domain system, but I’m going to say no for now.. No user to lockout, but you could amend to corrupt some type of file.

Basicly, I have created a services that runs a script to check the current date is not grater than or equal to the date of lockout. The script then locks specific user accounts if the date is grater than or equal to today’s date. If it’s not grater than or equal to today’s date then it checks if the notify period is grater than or equal to today’s date. Again, if this is grater than or equal to today’s date it will start to display messages to the user. The background login wallpaper will also change to a warning. Once the lockout date as been reached or passed, the lockout action is committed and the users cannot login. The wallpaper on the login screen changes to access denied. Now the only user who can use the computer is the local administrator account.

So now they bring the PC back to you because it’s now useless to them in it’s current state. When you login it runs the notify.bat as it does when any user logs in, but instead or it’s normal action of displaying a pop-up message, it will reset the restriction an set the schedule back to X days in the future. This is because you logged in as administrator, not because you are an administrator of the PC.

This service will lock administrator accounts as well, it just works on username. So even if the user is a local admin, this will still work. Although they could go into the Win7Checker folder and edit the dates so to stop lockout. So a normal user account for users is best. The service runs as an administrator so can make changes that the current your can’t make.

There is also a grace of one extra login after expiry. this is to allow access if the PC have been off for months. It also allows updates of the wallpaper to take place.

Install Instructions…. — DOWNLOAD SOFTWARE

1. Download

2. Extract files to a temp folder

3. Run install.bat as an administrator user with elevated privileges.

NOTE: When installing on x64 OS take the (x86) off the Program files on install of the RKTools.exe

5. Navigate to the folder "c:\windows\system32\Win7Checker\"

6. Right Click run.bat and click properties

7. Under the General Tab, Click Unlock

8. Repeat steps 6 & 7 for notify.bat & doff.exe in the same folder.

9. Reboot And COMPLETE

10. Use the .psd (Adobe Photoshop 3 document) to create your own JPG messages..

NOTE: the JPG files have to be less than 256kb in size otherwise windows will not use it.

Files Explained…

Below is a basic idea of what each files does.

BackgroundDefault.jpg - Normal background wallpaper.

BackgroundDefault2.jpg - Warning Wallpaper.

BackgroundDefault3.jpg - Access Denied Wallpaper.

doff.exe - Required for processing the dates.

notify.bat - Display messages. Admin user login does a reset.

run.bat - service run script. Main processing script

date.txt - This holds the date of expiry

notify.txt - This holds the date of starting to notify user.

today.txt - This holds the current date for processing.

bginfo.txt - This holds a readable date of expiry, I use BGInfo to put this on the desktop wallpaper.
Print Friendly, PDF & Email