remote-registry

Why does the handheld device ignore the “FileSyncPath” Registry key's value?

寵の児 提交于 2019-12-02 00:24:48
We don't want file syncing between our handheld device and the PC. The handheld device puts certain (SQL CE database) files in the \My Documents folder on the handheld. These are, in particular, the files we don't want synced to the PC. I first added "sdf" (and "SDF" just to be sure) to the "ExcludeExts" registry key. That didn't help. I then changed the "FileSyncPath" and "NoSubfolderIn" registry keys from the "My Documents" folder to the "profiles" folder: private void UpdateRegistry() { RegistryKey key = Registry.LocalMachine.CreateSubKey(@"SOFTWARE\Microsoft\Windows CE Services"); if (key

How to call a method with output parameters in PowerShell?

匆匆过客 提交于 2019-11-30 16:49:12
I'm working on a script to get started in PowerShell . I'm trying to convert a working VBScript script that enumerates mapped network drives on a remote Windows computer. One of the tasks is to use remote WMI to read the registry and find the process owner of explorer.exe in order to determine who is logged in. This seems easy enough going by this guide . However, the WMI method I need to call is GetOwner() from Win32_Process , which requires two output parameters to store its return value. How can I call a method with output parameters? When I try to give it two strings, I get the error: