Wednesday, June 18, 2014

icacls - Manage file/folder permission to users via the command line

Manage in Command Prompt:
icacls C:\Users\Public\Desktop\Share /grant Everyone:(OI)(CI)F
Manage in PowerShell:
icacls C:\Users\Public\Desktop\Share /grant "Everyone:`(OI`)`(CI`)F"

WMIC - Uninstall application via the command Line

WMIC - Windows Management Instrumentation Command-line

Use Command Prompt and enter "WMIC" to bring up wmic mode
wmic:root\cli>

Generate a list of installed applications.
product get name

Uninstall a specific application (Ex: uninstall Java 7 Update 51)
product where name="Java 7 Update 51" call uninstall
Enter "Y" to continute the uninstallation process

Friday, March 14, 2014

Local Group Policy - Force Windows 7 to Work/Private Network

Open "gpedit.msc" -> Go to Computer Configration –> Windows Settings –> Security Settings –> Network list manager

Wednesday, February 19, 2014

Mac OS X - Enable Screen Sharing (VNC) via the command line

The following command should be typed as one line of text.
sudo /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -activate -configure -access -on -clientopts -setvnclegacy -vnclegacy yes -clientopts -setvncpw -vncpw VNCPASSWORD -restart -agent -privs -all

Thursday, January 30, 2014

PowerShell - Change Computer Name

Execute the command below and restart the computer.

$computerName = Get-WmiObject Win32_ComputerSystem
$name = "New Computer Name"
$computername.rename("$name")

Thursday, January 23, 2014

Mac OS X - Install wget via the command line


curl -O http://rudix.googlecode.com/files/wget-1.12-0.dmg
hdiutil mount wget-1.12-0.dmg
sudo installer -package /Volumes/wget.pkg/wget.pkg -target "/Volumes/Macintosh HD"
hdiutil unmount "/Volumes/wget.pkg/"

Wednesday, January 8, 2014

Enable VNC Remote Controll Macbook Pro


1. Go to System Preferences -> Sharing -> Remote Management
2. Check "Allow access for All Users"
3. Click on "Computer Settings"
4. Check "Anyone may request permission to control screen"
5. Check "VNC viewers may control screen with password" (Enter your own password)
6. Hit "OK" and done.