Crochet 79 : “falling” cap

My friend liked mu orange “falling” cap a lot, so she asked me to make her one too!

Posted in Relaxation | Tagged , , | Leave a comment

Installation on WIN server 2012 R2

If you have a WIN 2012 R2 server, which is on a local LAN, and during (any) installation gives the error of not being able to download from, do the following :
1. Set gateway on server
2. Set proxy on system and under IE

If that does not help :
3. Disable IE (it can not be uninstalled) :
From cmd :
dism /online /get-features
dism /online /disable-feature /featurename:Internet-Explorer-Optional-amd64
Deployment Image Servicing and Management tool
Version: 6.1.7600.16385
Image Version: 6.1.7600.16385
Disabling feature(s)
The operation completed successfully.
Restart Windows to complete this operation.
Do you want to restart the computer now (Y/N)?Y
Good link.
4. Install for example FireFox, and set proxy in it, and set it as default browser.

If this does not help turn off security settings through Server Manager :

Good link.

Posted in WIN | Tagged , | Leave a comment

Crochet 78 : set head-band and mittens

I had a surplus of yellow wool, and that is my ONLY excuse 🙂

Posted in Relaxation | Tagged , , | Leave a comment

How to view WIN OS version, if there are WMI problems

Since it is a production server, no WMI restart!
So I have to get OS version with alternate methods, that is CLI.
Note : cmd start as Administrator account

Way 1

Microsoft Windows [Version 6.0.6002]
So, it works, but is not exactly full of information.

Way 2
Loading Operating System Information …ERROR: Not enough storage is available to process this command.
C:\Users\veldaebel>systeminfo | findstr /B /C:”OS Name” /C:”OS Version”
Loading Operating System Information …ERROR: Not enough storage is available to process this command.
Not working because of abovementioned WMI problems.

Way 3
THis openes a GUI window with all OS version data 🙂

Posted in WIN | Tagged , | Leave a comment

How to see existing “Scheduled Tasks”

WIN 2003
First way
1. Connect via Remote Desktop-om to your Win 2003 server
2. Go to folder C:\WINDOWS\Tasks and see what is all there, but use “Advanced/View Log” .

Second way
From command line, on WIN 2003 server :

File goes to the folder from which the command was started, and gives the list of ALL task shedule jobs (system ones AND the ones administrators have set up)

Posted in WIN | Tagged , , | Leave a comment

A little UNIX script and crontab

Well, yes, I wrote a little script which prods some things on server, and sends result to a TXT file.
After testing, script should be made to run every 5min, using crontab.

What should be taken into the account when using Unix crontab :
1. Crontab treba da se završava sa Enter – tj sa praznom linijom (new line)
2. Sve putanje do fajlova treba da su APSOLUTNE
3. Ako nešto neće da se izvršava, u skriptu na početak dodati PATH varijablu, npr :
4. Crontab na UX nema opciju */5 za izvršavanje na svakih 5min, nego se to piše ovako :
0,5,10,15,20,25,30,35,40,45,50,55 * * * * /home/velda/
5. Da bi se skripta izvršavala MORA da ima nastavak *.sh
6. Paziti na to ko ima pravo da izvršava skriptu. Ako niste sigurni, za početak staviti 777, pa posle smanjiti prava.
7. Paziti pod kojim šelom se skripta izvršava (ja preferiram BASH) : #!/bin/bash
8. Dali cron proces uopšte trči?

Keep an eye on crontab log : /var/adm/cron/log

Good link.

Posted in Unix | Tagged , | Leave a comment

Logs for scheduled tasks

Connected with my previous post.
Since I have set up scheduled tasks, I want to check if they did what they should have.
PS Logs contain “exit codes”, so here is what some of them mean :
0 – success
0x3 – error path not found
259 – still active

List for some of the Microsoft exit codes : link.

WIN 2003
First option (did not work for me) :
In Windows Server 2003, the Source of scheduled task related events is Schedule. You can find these events by filtering the system event log.
1. Open event log.
2. Right click on System -> Properties -> Filter tab -> Select “Schedule” in the Event source field.
3. Click OK button and the scheduled task related events will be listed.

Second option (worked for me!) :
A ordinary text file : %SystemRoot%\Tasks\SchedLgU.Txt

Problem is that file IS NOT visible using Win Explorer (even if “Hidden files” are chosen)!!!!!
So this is needed (Advanced/View Log):

WIN 2012
Nothing said for Win 2003 works.
First option (worked for me) :

Open Event Viewer and go to: Event Viewer (Local) / Applications and Services Logs / Microsoft / Windows / TaskScheduler / Operational
It is no use to search by using my log-on account (under which I formed the task). Use time instead. Sigh.

Second option (worked too, a much better proposition!!!)
Open Task Sheduler, find your task, right click/Properties :

And under tab “History” see logs for this task!!!

Good link.

Posted in WIN | Tagged , | Leave a comment

Task scheduling – defragmentation

On a few servers some partitions are in a bad need of defragmentation, so I looked up how to schedule it to be done out of the working hours.
In my next post you can see how to check if the task is done.

Win 2003
Microsoft has a excellent link for this one!
1. Open Control Panel
2. Double-click Scheduled Tasks
3. Double-click Add Scheduled Task
4. On the Scheduled Task Wizard dialog, click Next
5. Click Browse
6. In the Select Program to Schedule dialog, navigate to the windows\system32 folder
7. Select defrag.exe
8. Click Open
9. In the Scheduled Task Wizard dialog, type a name for the scheduled task (Disk Defragmenter, for instance)
10. Under Perform this task, select how often you wish Disk Defragmenter to run
11. Click Next
12. Set the time at which you wish the Disk Defragmenter scheduled task to run. This should be a time when your computer is on, but not in heavy use.
13. Select the frequency at which you want the Disk Defragmenter scheduled task to run (Every Day, Weekdays, or Every days, where is the number of days between scheduled runs)
14. Click Next
15. Enter a user name under which the Disk Defragmenter scheduled task will run. Note: This user must be an administrator on the local machine.
16. Enter the password for the user you entered in the previous step
17. Confirm the password for the user
18. Click Next
19. Check Open advanced properties for this task when I click Finish
20. Click Finish
21. In the Run text box, you should see the full path and command for defrag.exe. By default, this path is C:\WINDOWS\SYSTEM32\defrag.exe
22. Append the drive letter for the drive you wish to defragment to the command in the Run text box. In a default installation, your Run command will look like this :
C:\WINDOWS\SYSTEM32\defrag.exe C:
23. Click OK
24. In the Set Account Information dialog, enter and confirm the password for the user listed in Run as
25. Click OK
Now when task has been added it can be seen here :

WIN 2008/2012
Good link.
Here defragmentation task is by default set to go once a week, which is in principle enough. Partition status can be checked by using Server Manager :

Click on “Analyze” and see if defragmentation is necessary.

There are two commands from CLI which do this (defrag.exe and cmdlet Optimize-Volume), but neither has scheduling per se.
1. Start Task Scheduler (click on Start/click on magnifying glass, and put in the search term)
2. In the Actions Pane, click Create Basic Task

3. Follow the instructions in the Create Basic Task Wizard.
Task is formed in the same way as in WIN 2003 server :

Link1 (for the above mentioned)
Link2 (for “Task Sheduler”)

Posted in WIN | Tagged , , | Leave a comment

Unix and KILL command

Nice explanation : link1.
Some additional info : link2.

SIG=SIGNAL – a signal is the means Linux uses for sending information between processes or between the kernel and a process.

This is most important (to me) :
0 SIGNULL Null Check access to pid
1 SIGHUP Hangup Terminate; can be trapped
2 SIGINT Interrupt Terminate; can be trapped
3 SIGQUIT Quit Terminate with core dump; can be trapped
9 SIGKILL Kill Forced termination; cannot be trapped (forced terminate)

15 SIGTERM Terminate Terminate; can be trapped (not forced terminate)
24 SIGSTOP Stop Pause the process; cannot be trapped
25 SIGTSTP Terminal stop Pause the process; can be trapped
26 SIGCONT Continue Run a stopped process

I use “-9” a lot 😉
If as a process PID you put “0” (no quotation marks) all processes on server will be killed, except some special system ones.
If you use “-3”, it leaves a data “dump” in the log of the killed process, or it creates a file with name “core” which will have in it a memory image of the process when it received a kill signal.

How to see supported signals on the system :
#kill -l
General syntax :

What is “trap” for : Trap will allow us to trap some or all of these signals, and perform operations on the trapped signal (There might be situations when you don’t want users of your scripts to exit untimely using keyboard abort sequences, for example because input has to be provided or cleanup has to be done. The trap statement catches these sequences and can be programmed to execute a list of commands upon catching those signals).

Posted in Linux, Unix | Tagged | Leave a comment

How to get rid of the POP SUGAR pop-ups

1. Using Control Panel do the uninstall for :
AlllCheapPeruiCe 5.2, YoubeAdBlocker 1.2, TheBlooccker 1.3, Video Player, Plus-HD 1.3, BetterSurf,
CouponMeApp, TubeAdblOCkER, BLoCkTheADApp 3.2, WatchItAdBlocake, Media Player 1.1, Savings Bull, Start Savin, Websteroids, ScorpionSaver, HD-Plus 3.5, Media Watch, Re-Markit, Remarkable, SupTab, Key-Find uninstaller, Feven Pro 1.2, HD-Plus, HD-Professional-HQ, Quick Share i bilo koje sumnjive programe koji su skoro instalirani.

2. Evict unwanted pop-ups from browsers ( in my case Chrome 62.0.3202.94/64 and FireFox)
Go to Settings/Advanced Settings to “Return to factory settings”, and return it as it was, or turn off these add-ons :
a.Click the menu icon “≡” at the top right of the browser window, choose “Tools” and choose “Extensions” to open a new “Options” tab.
b. Uncheck “Enabled” to disable an extension, or click “Remove” to delete it completely.
c. Enter “chrome://plugins/” in Chrome’s address bar to view plugins that add compatibility and functionality, such as Apple QuickTime or Adobe Flash,
d. Click the “Disable” link under the plugin you want to disable.

3. Let some anti-addware tool run, like AdwCleaner (link). It is a fresh tool, so it should get all the “nasties”.
Take care, since when it works it closes ALL the windows, and needs a restart.


4. Also, for future, put some add-blocker in browser (link).

Posted in WIN | Tagged , | Leave a comment