Powershell – Failed to enumerate SSL bindings, error code 234.

This is sometimes due to misconfiguration of the SSL certificate bindings in the registry, under HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\HTTP\Parameters\SslBindingInfo
In my case I had 0.0.0.0:443 in the directory multiple times.

Fix: GOTO HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\HTTP\Parameters\SslBindingInfo and clean up multiple entries.

Cannot assign to read only property ‘$methodName’ of false Use –force to continue

One receives this error with Grunt, AngularJS if the grunt-ng-annotate is out of date.

Open your project.js and remove the grunt-ng-annotate, most of the time it is an old edition like 0.4.0. save an push to your server if you are remote.

Then on the server reinstall your grunt-ng-annotate

CODE – Coldfusion dump all ColdFusion variables in all scopes.

How to dump all Adobe ColdFusion variables from all scopes.

Requirements: Adobe ColdFusion

[skill_bar heading=”Difficulty” percent=”1%” bar_text=”ColdFusion”]

ColdFusion 9

ColdFusion 8

Use the cfdump tag to get the elements, variables, and values of most kinds of ColdFusion objects. Useful for debugging.

Syntax

CODE – PowerShell list inactive computer accounts

How to list all computer accounts not active for X number of days.

List all computers that have been  Inactive in “Active Directory” for a specified Number of Days

Compatible with

Windows Server 2008 R2,
Windows Server 2008,
Windows Server 2003,
Windows 7,
Windows Vista,
Windows XP
Not Compatible with
Windows 2000

CODE – PowerShell create a new computer object

How to create a new computer object on Active Directory without any plug-ins.

If you need to change the container you can do so:
“$objDomain = New-Object System.DirectoryServices.DirectoryEntry(“LDAP://OU=ASDF,DC=asdf,DC=asdf”)”
sAMAccountName requre a string $ at the end.

Works with:
Windows Server 2008 R2
Windows Server 2008
Windows Server 2003
Windows 7
Windows Vista
Windows XP

CODE – PowerShell get domain computer accounts

Searches Active Directory for computer objects older than the date specified

CODE – PowerShell auto start services that have stopped

Start AutoStart Services that have Stopped

‘Get services that should be started (StartMode = Auto) but are stopped (State = Stopped), then start these services

CODE – PowerShell shutdown-computer

Function Shutdown Computer

Synopsis: Will shutdown, Log Off or Reboot a remote or a local computer.
Description: Will shutdown, Log Off or Reboot a remote or a local computer. Force will shutdown open programs etc.
Example: Shutdown-Computer mycomputer ‘Log Off’
Will Log Off the computer mycomputer
Shutdown-Computer mycomputer ‘Shutdown’
Will Shutdown the computer mycomputer
Shutdown-Computer mycomputer ‘Reboot’
Will Reboot the computer mycomputer
Shutdown-Computer mycomputer ‘Power Off’
Will Power Off the computer mycomputer
Shutdown-Computer mycomputer ‘Log Off’ other
Will Log Off the computer mycomputer with other credentials

CODE – PowerShell get-features information

Function Get-Features

Synopsis:Will get features on your computer
Description:Will get features on your computer.
Works on Windows 7 and Windows Server 2008 R2
Get-FeaturesWill list all installed and all avaiable features
(Get-Features).countWill show how many features you have on your computer
Get-Features installedWill list all installed features
(Get-Features installed).countWill show how many installed features you have on your computer
Get-Features availableWill list all avaiable features
(Get-Features available).countWill show how many avaiable features you have on your computer