![]() ![]() Split the registry key ^Īfter processing the parameters, I use a regular expression to separate basekey and subkey. If the parameter is not set, the script will operate on the local computer. If you want to retrieve the registry key of a remote computer, you also have to provide a value to the –ComputerName parameter. If you want to query the value of AutoAdminLogon, you have to submit both parts as parameters to the script. The “HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\” part is the RegistryKey the remaining part, “AutoAdminLogon,” is the KeyProperty. The key decides if automatic logon is active, and it has two possible values (enabled/disabled). ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |