Tuesday, January 7, 2014

PowerShell - How to Enable-PSRemoting on Windows XP

1. Use Command Prompt and run "Secpol.msc" to bring up Local Security Settings.
2. Go to Local Policies -> Security Options
3. Double click on "Network access: Sharing and security model for local accounts"
4. Change to "Classic - local users authenticate as themselves" and hit OK.
5. Enter PowerShell and execute the following commands:
Enable-PSRemoting -Force
Set-Item wsman:\localhost\client\trustedhosts *
Restart-Service WinRM

Done!


Saturday, January 4, 2014

iPhone/iOS - Change Mac Addres


Supported version: All iOS version (3,4,5, 6, 7)

Change mac address:
nvram wifiaddr=XX:XX:XX:XX:XX

Restore to the original mac address:
nvram -d wifiaddr

Restart iPhone after executing change/restore command above to finish the process:
reboot

Friday, November 15, 2013

Powershell - Enable Firewall Rules


netsh advfirewall firewall set rule group="Remote Administration" new Enable=yes
netsh advfirewall firewall set rule group="Remote Desktop" new Enable=yes
netsh advfirewall firewall set rule group="Remote Event Log Management" new Enable=yes
netsh advfirewall firewall set rule group="Remote Service Management" new Enable=yes
netsh advfirewall firewall set rule group="Remote Scheduled Tasks Management" new Enable=yes
netsh advfirewall firewall set rule group="Remote Volume Management" new Enable=yes
netsh advfirewall firewall set rule group="Windows Firewall Remote Management" new Enable=yes
netsh advfirewall firewall set rule group="Windows Management Instrumentation (WMI)" new Enable=yes
netsh advfirewall firewall set rule group="File and Printer Sharing" new Enable=yes
netsh advfirewall firewall set rule group="Performance Logs and Alerts" new Enable=yes

Tuesday, October 8, 2013

Group Policy - Adding Trusted Sites to IE

1). Open Group Policy Management Editor

2). Go to Computer Configuration > Windows Components > Internet Explorer > Internet Control   Panel > Security Page.

3). Double click on the "Site to Zone Assignment List".

4). Choose "Enabled".

5). Click on "Show...".

6). Add website as Value name and 2 as Value.
     Value: (4 Security Zones.)
     1. Intranet zone
     2. Trusted Sites zone
     3. Internet zone
     4. Restricted Sites zone





Friday, September 27, 2013

CCTK - Remote Manage Dell BIOS

1. Download and install the Dell Client Configuration Toolkit - CCTK
 
2. Use Dos Prompt and change directory to C:\Program Files (x86)\Dell\CCTK\X86_64\

View boot order:
cctk.exe bootorder
Change boot order: (ex: 1=Hard Disk, 2=USB device, 3=CDRom, 4=Embedded NIC)
cctk.exe bootorder --sequence=1,4,2,3 --valsetuppwd=PASSWORD
Enable Device: (ex: 1=Hard Disk, 2=USB device, 3=CDRom, 4=Embedded NIC)
cctk.exe bootorder --enabledevice=4 --valsetuppwd=PASSWORD
Disable Device: (ex: 1=Hard Disk, 2=USB device, 3=CDRom, 4=Embedded NIC)
cctk.exe bootorder --disabledevice=2 --valsetuppwd=PASSWORD

** For some reasons, "CCTK --valsetuppwd" not accepting the correct password.
Solution:
cctk.exe --valsetuppwd=PASSWORD --setuppwd=
cctk.exe bootorder --sequence=hdd,embnic,usbdev,cdrom
cctk.exe --setuppwd=PASSWORD

Examples of the PowerShell command:

Setup BIOS PASSWORD:
Invoke-Command -ComputerName COMPUTERNAME -scriptblock { &'C:\Program Files (x86)\Dell\CCTK\X86_64\cctk.exe' --setuppwd=PASSWORD }
Remove BIOS PASSWORD:
Invoke-Command -ComputerName COMPUTERNAME -scriptblock { &'C:\Program Files (x86)\Dell\CCTK\X86_64\cctk.exe' --valsetuppwd=PASSWORD --setuppwd=  }
Wake On Lan Without PXE:
Invoke-Command -ComputerName  COMPUTERNAME -scriptblock { &'C:\Program Files (x86)\Dell\CCTK\X86_64\cctk.exe' --embnic1=onnopxe }
Force PXE On Next Boot:
Enter-PSSession -ComputerName COMPUTERNAME
&"C:\Program Files (x86)\Dell\CCTK\X86_64\cctk.exe" --embnic1=on
&"C:\Program Files (x86)\Dell\CCTK\X86_64\cctk.exe" --forcepxeonnextboot=enable
Exit


Tuesday, September 10, 2013

Tricking your Mac into creating a new user account

  1. Power on or restart your Mac (should work for any Mac OS X system).
  2. At the chime (or grey screen if your chime is turned off), hold down Command+S on your keyboard to enter single-user mode.
  3. This step is optional, but it’s a good idea because it checks the consistency of the hard disk before moving on. At the prompt, type fsck -fy and press Enter/Return. Wait for the checks to complete before going to the next step.
  4. Type mount -uw / and press Enter.
  5. Type rm /var/db/.AppleSetupDone and press Enter.
  6. Type shutdown -h now and press Enter.

Tuesday, September 3, 2013

Manually Uninstall WSUS 3.0

1. Open Regedit
2. Go to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Update Services\Server\Setup
3. On the right side, find wYukonInstalled
4. Change the value to "0"
5. Open Command Prompt and CD to C:\Program Files\Update Services\Setup
6. wussetup.exe -u