WindowsServer

Powershell – How to disable NetBios

Disable Netbios

If you want to use Powershell to disable Netbios on several computers, you can execute this script:

$adapters=(gwmi win32_networkadapterconfiguration )
Foreach ($adapter in $adapters){
  Write-Host $adapter
  $adapter.settcpipnetbios(2)
}

Options

Parameters for settcpipnetbios are:

  • 0: Enable Netbios via DHCP.
  • 1: Enable Netbios on the interface.
  • 2: Disable Netbios on the interface.

For more information on this function: http://msdn.microsoft.com/en-us/library/aa393601(v=vs.85).aspx

Verification

After the script was runned, you will have this configuration:
Disable netbios

Share
SCCM

SCCM 2012 – Detection Method for Update

With Configuration Manager 2012, you have a new feature to deploy your software: Application. To use Application, you need to add a Detection Method. This detection method is based on several criterias and it will check if the application is already installed on the computer.

SCCM included three built-in detections:

  • File/Folder: check if a file exists on the drive. Date modified, Version and Size can be used.
  • Registry: Check if a registry key exists.
  • Windows Installer: Check if a product code is installed.

Moreover, you can user another detection:

  • Custom script: write and execute you own script to detect the application. You can use Powershell, VBScript and JScript.

However, when you want to install a software update using Application, there is no built-in function to detect if the update is installed. You have to use a custom script.
Continue reading

Share