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

Tuesday, August 27, 2013

GPO to make domain user as local computer admin


1. Go to Group Policy Management Editor.
2. Expend Computer configuration\Policies\Security Settings\Restricted Groups
3. Right click and hit "Add Group"
4. Type "Administrators" and hit "OK"
5. Click "Add..." under "Members of this group:"
6. Enter the users
7. Click "Add..." under "This group is a member of:"
8. Add the "Administrators" Group. (You may also add the "Remote Desktop Users")
9. Hit "OK".

Monday, August 19, 2013

Uninstall Internet Explorer 10 Silently

 Please make sure IE is closed on the machine before proceeding.
FORFILES /P C:\Windows\servicing\Packages /M Microsoft-Windows-InternetExplorer-*10.*.mum /c "cmd /c echo Uninstalling package @fname && start /w pkgmgr /up:@fname /norestart /quiet"
shutdown -r

Monday, July 15, 2013

Safari - PDF Freezes/Craches

Due to : The default internet speed was set to 56 Kbps in Adobe Reader.

Solution:
Open up Adobe Reader
Click on Preferences > Internet
Adjust the Internet Connection speed.

PowerShell - Notes

Enabling PowerShell Remoting:
Enable-PSRemoting -Force

Workgroup Setup:
Set-Item wsman:\localhost\client\trustedhosts *

On both computers, restart the WinRM service so your new settings will take effect:
Restart-Service WinRM

Verify/Set the settings for the execution policy:
Get-ExecutionPolicy
Set-ExecutionPolicy Unrestricted

Starting a Remote Session:
Enter-PSSession -ComputerName "Computer name" -Credential "User name"

Windows 7 - Path to All Users Desktop and Start Menu


User Desktop
C:\Users\"Username"\Desktop

User Start Menu
C:\Users\"Username"\Appdata\Roaming\Microsoft\Windows\Start Menu

User Account Pictures
C:\Programdata\Microsoft\User Account Pictures

All Users Desktop
C:\Users\Public\Desktop

All Users Start Menu
C:\Programdata\Microsoft\Windows\Start Menu

Wallpapers
C:\Windows\Web\Wallpaper