Windows 10 Start menu doesn’t work, fix from command line

If in Windows 10 your start menu doesn’t work, try the following:

1. Create a shortcut on your desktop to powershell.

Right click on the desktop, choose new shortcut, type powershell and press enter, press enter. Right click the icon of the newly created shortcut and choose “Run as Administrator”
click Yes if you get a question about making changes to your machine (because that is what we are going to do).

2. Create a new account (from command line that is as follows:)

net user adm adm /add

3. Log off your account, and log in as adm with password adm

4. Repeat step 1 for this adm account, and “Run as Administrator”

5. Move the old start menu database directory to something else.
(replace [account with problems] to your account name, you may want to look this up with doing the cmd ‘dir’ in the directory C:\Users)

mv C:\Users\[account with problems]\AppData\Local\TileDataLayer\Database C:\Users\[account with problems]\AppData\Local\TileDataLayer\Database.old

6. Copy the newly created and fresh start menu database to your original account.

(replace [account with problems] to your account name, you may want to look this up with doing the cmd ‘dir’ in the directory C:\Users)

cp C:\Users\adm\AppData\Local\TileDataLayer\Database C:\Users\[account with problems]\AppData\Local\TileDataLayer\

7. Log in with original account

Now you can log in with your original account again, and have a clean start menu.
You must add your icons again though.

8 Clean up

Open Settings-> Accounts and remove the adm account.

If it works, with explorer, remove the directory C:\Users\[account with problems]\AppData\Local\TileDataLayer\Database.old

If it doesn’t work, I have no other solutions for you, just continue googling :/

 

Shame Microsoft, it really is some sort of bug you have here in this new Start menu database system you’ve created but not tested.

Posted in Bugs, News, Windows | Comments Off on Windows 10 Start menu doesn’t work, fix from command line

Removing Windows10 update, like, right now, from command line.

From command line do this:

wusa /uninstall /kb:3035583 /quiet /norestart

leave the /quiet and the /norestart to see what happens, you must reboot anyway, and wait for -some- time, don’t even speak of it, but it is the way things are. Good luck.

You may want to hide the update next time you run windows updates, so that it doesn’t get installed again.

Hope it helps you, Cheers!

Posted in News | Comments Off on Removing Windows10 update, like, right now, from command line.

Convert PDF using linux

Convert at it again.

I think I have posted something like this before, but ‘convert’ keeps being an amazing tool.

Today converting Pdf’s into png picture format with:

> convert -density <density in DPI> input.pdf -quality <quality ratio> output.png

Found at http://askubuntu.com/questions/50170/how-to-convert-pdf-to-image

Posted in linux | Comments Off on Convert PDF using linux

A memory from past holidays..

I love Norway, but I didn’t have enough time to do some serious timelapsing, however, here a quick blurb at Haugesund camping (August 2015):

http://www.tinkerist.com/?page_id=1429

Posted in News | Comments Off on A memory from past holidays..

Nothing new

It is autumn. Holidays are past. Nothing is new anymore.

I’m currently still working on that gps device (working on fatfs), a camera rig for an old DSLR that I got from a friend for which I don’t have a project page yet, and a side project for electronic fireworks using cheapo laser diodes and some other flashy LEDS and stuff.

Ideas enough, however time is scarce.

I’ll post more when I have some

Posted in News | Comments Off on Nothing new

Looking for multimedia files [list of common multimedia files] -> solution? powershell!

Sometimes as system administrator, you find your file servers are cluttered with stuff you may want to decide to do something about, say, export to the final bin. However the case, you want to know what’s there. [and it is usually big stuff]. On windows you can ofcourse check manually, or make a list based on file extension. That’s simply how it works. It took some sites to google, but there is an abundance of file extensions out there. Most of them aren’t used, but this is a list that may be found common for multimedia files: list-mmfiles

I’m going to use this to list all multimedia files on the network now, when I miss files (by manual checking), i’ll update the list in this post.

Oh well, I skipped that, I just did :

Get-Childitem X:\ -Recurse -ErrorAction SilentlyContinue | Export-csv
-Path C:\all.csv -Encoding ascii

To get all files on the system, and sort it out later, using Excel.
You can then sort on file extension.. pff, sjah.. tssss. No file size info..

I quickly looked up through the file types that were actually on the file system and ran a script that adds up all the file sizes (it does this from the path you’re in):

$totalfs = 0
$files = Get-ChildItem -Recurse -Include *3gp,*asf,*avi,*bmp,*cda,*gif,*jpg,*m1v,*m4a,*m4v,*mov,*mp3,*mp4,*mpe,*mpg,*pcx,*png,*wma,*wmf,*wmv,*wmz
$totalfs = ($files | Measure-Object -Sum Length).Sum / 1GB
"{0:N0}" -f $totalfs

Update: Oh and by the way, this should also list the amount of files.
(I needed that to list all txt files, actually: cookies)

$totalfs = 0
$totalfsc = 0
$files = Get-ChildItem -Recurse -Include *txt
$totalfs = ($files | Measure-Object -Sum Length).Sum / 1GB
$totalfsc  = ($files | Measure-Object -Sum Length).Count
"{0:N0}" -f $totalfs
"{0:N0}" -f $totalfsc
Posted in News | Comments Off on Looking for multimedia files [list of common multimedia files] -> solution? powershell!

Nagios 3.4.1 Columns in status.cgi

That wasn’t nice.

Nagios has 3 columns as a default hard coded inside its status.cgi.
Today we have such wide screens to display things with…

In order to change this default behaviour of old code, in nagios, change the following:

(get a copy of the nagios source code, in my case 3.4.1)
unpack, ./configure it
in /yoursourcedir/nagios/cgi/ change status.c
int overview_columns = 3; into int overview_columns = 10;

then compile with:

make cgis

then you can copy the newly created cgi in place of the old one (for example.)

Be aware that you set the rights correctly.

Hope this helps you.

Posted in News | Comments Off on Nagios 3.4.1 Columns in status.cgi

LDAP Configuration for HP Printers and Active Directory

I had to figure out how to configure LDAP on these HP Color LaserJet Pro MFP M476 series with LDAP support.
The LDAP configuration was a tad bit different than I suspected.

For some reason the SSL function didn’t work, so I switched to normal, old-fashioned way of doing this on port 389.

LDAP Server: Fill in your Windows Domain Name.Extension
Server port: 389

verification: Simple

And here we go, username must be specified, not as username, but as user DN. so:

Username: cn=username,OU=Users, DC=Domain,DC=DomainExtension

The search path should be something like:
Path OU=Users,DC=DOMAIN,DC=DomainExtension
Match cn
e-mail mail

Note that you don’t use spaces in LDAP queries.

Now you can test your configuration.
Fill in some account that you know exists in your directory and hit the Test button.

Should work now.
Hope this helps you.

Posted in ldap, News | Comments Off on LDAP Configuration for HP Printers and Active Directory

Fortigate SSL Login

To log in to a fortigate gui over http-SSL they moved the port from

443

to

10443

Coz 443 is used so much (seriously?)

It is: https://x.x.x.x:10443

This will help you to get this:

fortigate-login

fortigate-login

 

 

Posted in Configuration, Fortigate | Tagged | Comments Off on Fortigate SSL Login

Linux distribution focused on audio

I’m currently trying out AVlinux to have some bits going with sound and audio.
Not necessarily “music”, whatever people think it is.

If this doesn’t work out well next on the list are:

kxstudio
Ubuntu Studio

You got something better? let me know at the regular e-mail address @ this website

Posted in News, sound | Comments Off on Linux distribution focused on audio