Spiceheads,
I'm working on remotely modifying an autologin key value on batches of PCs at a time, and have run into a bit of a 'red tape' snag. I put together the Powershell script below for this task thinking "Sure, Powershell makes this sort of thing easy!"
Most machines in the environment either 1. Do not have Powershell, or 2. Do not have WinRM configured to accept remote management making the following script... worthless:
$admin = Read-Host "Enter domain\username"
$credential = Get-Credential -Credential $admin
$Computers = Get-Content "c:\path\file.txt"
try
{
Invoke-Command -ComputerName $Computers -Credential $credential -ScriptBlock {Remove-ItemProperty -Path "HKLM:\Software\Microsoft\Windows NT\CurrentVersion\Winlogon" -name AutoAdminLogon}
}
catch
{
$msg = $_
$msg
}Does anyone have a dusty VBScript somewhere that does the same thing? Or another idea to get the job done?
Cheers!