Two months ago Microsoft released the System Center 2012 suite. And now they have released the SDK for Configuration Manager (). It’s a different approach then the consumer products, where Microsoft showed a nice presentation about the features of Windows 8 for developers.
Continue reading System Center 2012 Configuration Manager SDK
Month: June 2012
Control a computer via Powershell
Just a simple script to control a machine via powershell.
#Set computername to control $pc = "[Computername]" #Trust the host because we are not in the same domain set-item wsman:\localhost\Client\TrustedHosts -value $pc -force #Enter the session Enter-PSSession $pc -Credential $pc\Administrator
Changing Network Category via Powershell
For enabling PowerShell remoting its necessary to use a private network instead of a public network. To enable this this nice powershell script from Microsoft can do the trick.
$NLMType = [Type]::GetTypeFromCLSID('DCB00C01-570F-4A9B-8D69-199FDBA5723B') $INetworkListManager = [Activator]::CreateInstance($NLMType) $NLM_ENUM_NETWORK_CONNECTED = 1 $NLM_NETWORK_CATEGORY_PUBLIC = 0x00 $NLM_NETWORK_CATEGORY_PRIVATE = 0x01 $UNIDENTIFIED = "Unidentified network" $INetworks = $INetworkListManager.GetNetworks($NLM_ENUM_NETWORK_CONNECTED) foreach ($INetwork in $INetworks) { $Name = $INetwork.GetName() $Category = $INetwork.GetCategory() $INetwork.SetCategory($NLM_NETWORK_CATEGORY_PRIVATE) }