windows-vista

Command/Powershell script to reset a network adapter

柔情痞子 提交于 2019-11-29 23:00:55
OS: Vista enterprise When i switch between my home and office network, i always face issues with getting connected to the network. Almost always I have to use the diagnostic service in 'Network and sharing center' and the problem gets solved when i use the reset network adapter option. This takes a lot of time (3-4 min) and so i was trying to find either a command or a powershell script/cmdlet which i can use directly to reset the network adapter and save myself these 5 mins every time i have to switch between the networks. Any pointers? You can use WMI from within PowerShell to accomplish

How do I grant SeCreateSymbolicLink on Windows Vista Home edition

☆樱花仙子☆ 提交于 2019-11-29 21:27:16
问题 I want to be able to use mklink to create symbolic links on my Windows Vista Home edition computer. However, I must grant SeCreateSymbolicLink before mklink will be able to function on Vista Home edition (by default the right is revoked). Home edition provides no UI or tool facility to grant/revoke discreet rights. A Wikipedia link on NTFS symbolic links says the ntrights.exe tool that comes in Windows Server 2003 Resource Kit Tools can be used to grant this right on Home edition. However,

Virtualbox host-guest network setup [closed]

若如初见. 提交于 2019-11-29 20:46:36
How do I set up a network between the Host and the guest OS in Windows vista? Give the guest two network adapters, one NAT and the other Host-only. The NAT one will allow the guest to see the Internet, and the Host-only one will allow the host to see the guest. One of them also allows the guest to see the host. I'm not sure which, but I know it works since I've tested web server stuff with it. You just have to choose the right IP address, 10.x.x.x or 192.168.x.x. Also, you may have to be careful about having File and Printer Sharing running on both adapters at once, since the guest will see

Qt: Erase background (Windows Aero Glass)

匆匆过客 提交于 2019-11-29 20:29:24
Update see Using Blur Behind on Windows for an example of using Qt and DWM . alt text http://labs.trolltech.com/blogs/wp-content/uploads/2009/09/blurbehind2.png Original question: I want to create a Windows Aero Glass window with Qt, now it looks like this: But after calling some my_window->repaint() my window's label becomes broken: But now if I resize the window slightly, it repaints properly. The question is : how do I erase the window background, so that widgets would paint themselves on a clean glass? The short code to reproduce the problem is (Vista with Aero): class Window(QWidget): def

How do I find which application is using up my port? [closed]

冷暖自知 提交于 2019-11-29 19:30:40
I am unable to start GlassFish, because it keeps showing this error message: SEVERE: Shutting down v3 due to startup exception : No free port within range: 8080=com.sun.enterprise.v3.services.impl.monitor.MonitorableSelectorHandler@ed7d1 How can I find what applications are using what ports on Windows Vista? I have tried using nmap zenmap using the following target: http://127.0.0.1:8080 But all I get is this: Starting Nmap 5.51 ( http://nmap.org ) at 2011-08-05 12:05 Central Daylight Time NSE: Loaded 57 scripts for scanning. Read data files from: C:\Program Files\Nmap Nmap done: 0 IP

Blocking mouse input from a service in Vista

隐身守侯 提交于 2019-11-29 18:07:51
I maintain a variety of managed userlabs on a university campus. These machines all currently run Windows XP and we have a windows service that is used to "lock" a machine by blocking any keyboard or mouse input. The locking happens during our scripted OS installation so that users aren't able to accidentally halt or break the process. It is also used to prevent users from logging into machines until they are checked out at the front desk of a given lab. Ctrl+Alt+Del is blocked via a keyboard filter driver and the rest of the keys and mouse are currently blocked using the BlockInput() function

Session 0 Isolation

天涯浪子 提交于 2019-11-29 18:00:52
Vista puts out a new security preventing Session 0 from accessing hardware like the video card, and the user no longer logs into session 0. I know this means that I cannot show the user a GUI, however, does that also mean I can't show one at all? The way my code is set up right now, it would be more work to make it command line only, however if I can use my existing code and just programmatically manage the GUI it would take a lot less code. Is this possible? The article from MSDN says this: • A service attempts to create a user interface (UI), such as a dialog box, in Session 0. Because the

Command line subversion client for Windows Vista 64bits

霸气de小男生 提交于 2019-11-29 16:39:30
问题 Does anyone recommend any particular command line SVN client for Windows. Being 64 bits would be a bonus. I do have TortoiseSVN, but it doesn't come with command line, which is required for my build scripts. I searched the subversion site and found not one, but four different options. Therefore, my question. 回答1: SlikSVN (download) looks like the most appropriate option given what you want. 回答2: They aren't 64-bit, but the official Collabnet binaries work fine in 64-bit Windows: http://www

Windows Vista/7 Programmatically login

安稳与你 提交于 2019-11-29 16:12:20
Is it possible to create a service or application which can programmatically log a user in when windows(vista/win7) starts up.... if a user has a token eg biometrics or smartcard Justin Grant Yep, it's possible. In older (XP and before) windows, this facility was called a GINA . In Vista and Win 7, the architecture is changed... you need to build a Credential Provider . The previous link is to an overview article, here's a link to some samples . Kudos to Login to windows xp programatically for providing most of the answers here! ;-) 来源: https://stackoverflow.com/questions/1493311/windows-vista

How to run a process as current user privilege from an admin process

删除回忆录丶 提交于 2019-11-29 15:47:27
When a setup program(built by like Inno Setup) does launch a process, the process always be run as administrator privilege. -because setup program had been run as admin. I want to run the child process as current user's privilege. Is there a good way? Although it is not considered best practice (or even good practice), it is possible to launch a medium IL process from a high/admin IL process: See this post on codeproject I can confirm that this code works on Vista 32 and 64-bit with and without UAC enabled. This question comes up every 3 or 4 months internally at MSFT. The answer that the