windows-users

Pull NT user ID from powershell

筅森魡賤 提交于 2021-02-02 09:54:27
问题 get-wmiobject -class win32_computersystem -computername c73118 | format-table username Will output something similar to: username -------- GHS_NTDOMAIN\amacor Is it possible to only output the amacor part only? 回答1: first, you don't really want FT for this I don't think. Use Select -Expand instead. So doing that we get back the string GHS_NTDOMAIN\amacor . Once you have that, you can do .Split("\") to split it into an array of strings, and [-1] to specify the last string in the array. So it

Trying to find the MSI product code for Java 8 Update 25 in to work with WSUS Package Publisher

半城伤御伤魂 提交于 2020-01-13 07:14:29
问题 I'm trying to create a 3rd party custom update through WSUS Package Publisher however I can't manage to get the MSI code for Java as there is no MSI installer to use MSIReader on. If anyone knows how I can find this code then it would be much appreciated. It's managing to make me look bad as a Sys Admin at work. Cheers, Glympse. 回答1: Two solutions : Install the product and search in : HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall Or to be aware that Oracle always used

Trying to find the MSI product code for Java 8 Update 25 in to work with WSUS Package Publisher

…衆ロ難τιáo~ 提交于 2020-01-13 07:14:09
问题 I'm trying to create a 3rd party custom update through WSUS Package Publisher however I can't manage to get the MSI code for Java as there is no MSI installer to use MSIReader on. If anyone knows how I can find this code then it would be much appreciated. It's managing to make me look bad as a Sys Admin at work. Cheers, Glympse. 回答1: Two solutions : Install the product and search in : HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall Or to be aware that Oracle always used

Windows registry keys for applications for all users in machine

蓝咒 提交于 2019-12-23 04:33:47
问题 If I install an application on windows XP and that application writes some keys to HKCU registry , then will those keys be copied to HKCU for other users? I tried installing one application and verified some keys getting created in HKCU. Now I logged in into another user and I can find same keys in HKCU for that user. Both the users were in same Administrator group. I repeated the same steps in VMWare image of windows xp but I was not able to find the registry keys in other users in vmware

Get Windows username of current user using php? [duplicate]

两盒软妹~` 提交于 2019-12-17 19:36:38
问题 This question already has an answer here : Closed 7 years ago . Possible Duplicate: How to read Windows loged in username with PHP/IIS I'm work on php tool that generate Data Access layer and generate some folders and files to user but i need to know how can i get username for current windows user to generate these folders on desktop ex: C:\\users\\<username>\\desktop I need to know the username. Thanks 回答1: If by current windows user you mean the user running the script then that is set in

How to install files for each user, including future new users, in Inno Setup?

╄→гoц情女王★ 提交于 2019-12-10 10:49:02
问题 I have an installer which needs to distribute some default files for the user to modify. Each Windows user profile needs to have its own copy of these (writable) files, including when a new user is created in Windows in the future. I already know how to distribute to the current user's profile, but have no idea about all user profiles, especially future users. I've seen how some software can automatically include files in a new Windows user's profile. How can I make Inno Setup distribute

Trying to find the MSI product code for Java 8 Update 25 in to work with WSUS Package Publisher

大憨熊 提交于 2019-12-04 21:06:37
I'm trying to create a 3rd party custom update through WSUS Package Publisher however I can't manage to get the MSI code for Java as there is no MSI installer to use MSIReader on. If anyone knows how I can find this code then it would be much appreciated. It's managing to make me look bad as a Sys Admin at work. Cheers, Glympse. Two solutions : Install the product and search in : HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall Or to be aware that Oracle always used the same schema for these MSI Product code Java 8 : 26a24ae4-039d-4ca4-87b4-2f8 32 1 8 0 25 f0 = 32 Bit -

Get windows users with C#

旧时模样 提交于 2019-11-30 20:06:09
How can I get a list of all windows users of the local machine with the usage of .NET (C#) ? Here is a blog post (with code) that explains how to do it: http://csharptuning.blogspot.com/2007/09/how-to-get-list-of-windows-user-in-c.html The author lists the following code (quoted from the above site): DirectoryEntry localMachine = new DirectoryEntry("WinNT://" + Environment.MachineName); DirectoryEntry admGroup = localMachine.Children.Find("users","group"); object members = admGroup.Invoke("members", null); foreach (object groupMember in (IEnumerable)members) { DirectoryEntry member = new

Get windows users with C#

大城市里の小女人 提交于 2019-11-30 04:20:50
问题 How can I get a list of all windows users of the local machine with the usage of .NET (C#) ? 回答1: Here is a blog post (with code) that explains how to do it: http://csharptuning.blogspot.com/2007/09/how-to-get-list-of-windows-user-in-c.html The author lists the following code (quoted from the above site): DirectoryEntry localMachine = new DirectoryEntry("WinNT://" + Environment.MachineName); DirectoryEntry admGroup = localMachine.Children.Find("users","group"); object members = admGroup

How to ScheduleReboot in wix only if several sessions are opened

女生的网名这么多〃 提交于 2019-11-28 11:06:14
问题 I am looking for a way to use prompt ScheduleReboot action in WIX installer only in the condition there is more than one user logged in to the target machine. So far I couldn't find a condition or other built in way to do that, I decided to ask here before writing a custom action. Thanks. answers to @Stein Asmul qustions: The app is a dev tool that could be deployed on any type of machine with any type of windows os newer than Windows xp. I need to restart on the case of more than one opened