Saturday, March 12, 2011

Well, it's one line in PowerShell, assuming you have all 50 computers in comp.txt in current folder, one workstation per line:

Invoke-WmiMethod -ComputerName (Get-Content comp.txt) -Class Win32_Process -Name Create -ArgumentList 'netsh interface tcp set global autotuninglevel=disabled'

You may have to elevate powershell first. If your account is not admin on remote side you will probably need -Credential there as well.

I've just tested it and it worked as expected. :)


To allow the regular domain users to install the printers in Windows 7 without having admin privileges on a 2k3 domain you will need to add a couple of keys in the registry on the users workstations.

Import this in the registry:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\Printers\PointAndPrint]
"Restricted"=dword:00000001
"TrustedServers"=dword:00000001
"ServerList"="FullyQualifiedPrintServerName1;FullyQualifiedPrintServerName2"
"InForest"=dword:00000000
"NoWarningNoElevationOnInstall"=dword:00000001
"UpdatePromptSettings"=dword:00000002



Mimmo97 Blog Archive