Category: General

Active Directory, General, Microsoft Windows Server 2012

Create Active Directory Users using csv file

This script allows to create Active Directory users using a CSV file and set specific password, email address, and add users to one group for each user. import-module activedirectory Import-Csv “C:\Users\admin\Desktop\file.csv” | ForEach-Object { $userPrincinpal = $_.”samAccountName” + “@company.Local” New-ADUser ` -Name $_.”user” ` -Givenname $_.”name” ` -Surname $_.”surname” ` -SamAccountName $_.”samaccountname” ` -Path $_.”path” …

General

SDKDDKVer.h missing but WinSDK installed

This problem often occurs when you are trying to open an older vs project with Visual Studio 2015. > Goto Project Properties > VC++ Directories > Include Directories and add: C:\Program Files (x86)\Microsoft SDKs\Windows\v7.1A\Include\ > Goto Project Properties > VC++ Directories > Library Directories and add: C:\Program Files (x86)\Microsoft SDKs\Windows\v7.1A\Lib\ > Copy RC.exe and RcDll.dll …

General

Get System Uptime with C#

public string GetSystemUptime() { try { string systemUpTime = string.Empty; string query = "SELECT * FROM Win32_OperatingSystem WHERE Primary=’true’";   using (ManagementObjectSearcher searcher = new ManagementObjectSearcher(query)) { foreach (ManagementObject mObject in searcher.Get()) { DateTime LastBootUpTime = ManagementDateTimeConverter.ToDateTime(mObject["LastBootUpTime"].ToString()); TimeSpan systemUpTimeSpan = TimeSpan.FromTicks((DateTime.Now – LastBootUpTime).Ticks);   systemUpTime = string.Format("{0}d : {1}h : {2}m : {3}s", systemUpTimeSpan.Days, systemUpTimeSpan.Hours, …

General, Information Gathering, News, Privacy, Security

Tracking techniques are getting “deeper”…

As people are getting more and more aware of possible security risks, the well known surveillance firms find deeper and lower-level ways for getting access to your data. With just a few days difference, we are hearing about possible spying firmware on our hard drives and stolen encryption keys for our SIM cards! Pretty interesting… …

General

Issuer certificate is invalid. (Error code: sec_error_ca_cert_invalid)

If you receive the following error in firefox when you try to visit a secure web site: https://mywebsite.com/index.php Secure Connection Failed An error occurred during a connection to mywebsite.com. Issuer certificate is invalid. (Error code: sec_error_ca_cert_invalid)https://mywebsite.com/index.php Secure Connection Failed An error occurred during a connection to mywebsite.com. Issuer certificate is invalid. (Error code: sec_error_ca_cert_invalid) You …

General, Protection, Security

Memory Protection Feature

Data Execution Prevention (DEP) is a memory protection feature available in modern operating systems, Linux, Mac OS X, iOS, Microsoft Windows and Android. DEP allows memory pages to be designated as non-executable. Its duty is to prevent the content of a region of memory to be executed as instructions by a program, service, device driver, …

General, Linux, Programming, Ubuntu

First Official Pro Linux Laptop Released!

First official pro notebook that is released with Linux: DELL XPS 13, Developers Edition. Enjoy Ubuntu 12.04 LTS on up to 8GB RAM, 256GB SSD HD, full HD 1080p display on less than 1.40kg. Congrats to DELL for stepping forward on offering the Linux world to the IT/Engineering-Pro world with such nice specs!