And not what I tell you to do!
Pop quiz:
What does the following Powershell script do?
$MachineName = '.'
$reg = [Microsoft.Win32.RegistryKey]::OpenRemoteBaseKey('LocalMachine', $MachineName)
$regKey= $reg.OpenSubKey("SYSTEM\\CurrentControlSet\\Control\\Session Manager\\Memory Management",$true)
$regkey.SetValue('PagedPoolSize','FFFFFFFF')
Answer:
Cause pandemonium, as it turns out.
If the registry key already exists, the SetValue method helpfully converts it to the appropriate type (Stri…
Continue
Posted on January 20, 2010 at 3:37am — 2 Comments