|
The command to reboot a Solaris machine is reboot . It works also on most other Unix-like operating systems (Linux, *BSD).
|
|
|
|
|
how can LogOff the computer in c# ?
can anybody help me ?
H.R
|
|
|
|
|
|
Hello,
sorry for my bad English.
Hopefully anyone is able to help me. Thank you very much.
What I want to do
-----------------
I am writing an application using Win32 API and Visual C++ 6.0.
This application will perfrom a system warmstart,
but only if a list of programs are *not* actually running.
To do this, I have used the Win32 API-function "EnumWindows()"
to get the same list as Windows' task manager will return.
Everything is tested fine at moduel level.
Now my big problem
------------------
I have added this application as an SQL server agent job to Microsft SQL Server 7.
But now, the application does not work properly, because the list,
returned by EnumWindows(), is empty.
I am a newbie to Windows system development. But it seems, that there are access
problems between user's desktop and server agent's desktop.
How can I get this list of running applications from within running as an SQL server agent job?
I have tried enumeration of winstations, desktops and desktopwindows.
Is this the correct way to sove the problem?
I will get errors #2 (not found) and #5 (access denied).
I have poor knowledge of winstations, desktops and security.
Want I want is:
---------------
I am logged on as administrator to Windows 2000.
I am starting a sample batch (sample.cmd) with "sample.cmd" as its window title.
I can see this batch from within the task manager.
My application can see it, too, if started from inside windows explorer.
Then I start SQL Server 7, and I add my application as an SQL server agent job.
My application will start, but will *not* see "sample.cmd".
What must be done, so that my apllication running as an SQL server agent job,
will see the sample batch?
Thank you very much for any help!
|
|
|
|
|
Under windows Vista I have set up a few non-admin users. On the Same PC I have several volumes which contain sensitive files. I have been playing around with the volumes permissions but so far have not been able to achieve the desired result. I want the other users to be able to see the volume in "My Computer" but be unable to access them without the administrators password. i.e. double clicking on the volume a UAC box should appear prompting for the password. Does anybody know how this can be done?
Waldermort
|
|
|
|
|
If you right click on the drive you want to restrict, click on properties and go to the "security" tab, you can change the security permissions for the drive. If you only allow administrators to be able to access the drive content, I believe that if a non-administrator tries to access the drive a UAC box will appear and ask for the administrator password.
Hope this helps,
--Perspx
"The Blue Screen of Death, also known as The Blue Screen of Doom, the "Blue Screen of Fun", "Phatul Exception: The WRECKening" and "Windows Vista", is a multi award-winning game first developed in 1995 by Microsoft" - Uncyclopedia
|
|
|
|
|
Hi,
I am trying to create a CPU Usage monitoring application. I am using PerformanceMonitor to do it. However as I was observing the data from Task Manager's CPU Usage column (Process Tab) and Performance Monitor (Process - % Processor Time) readings, they don't seem to coincide at all (Not even close). I tried to change the Performance Monitors sampling interval, but I can't seem to make the 2 coincide.
Does anyone, know why the readings are different?
Thanks.
SDE
|
|
|
|
|
Expand the CPU section in the PerformanceMonitor and check the CPU readings for processes that are running against the CPU readings for processes in the Task Manager, where do the differences lie?
alex1205 wrote: they don't seem to coincide at all (Not even close)
How different are the readings?
Regards,
--Perspx
"The Blue Screen of Death, also known as The Blue Screen of Doom, the "Blue Screen of Fun", "Phatul Exception: The WRECKening" and "Windows Vista", is a multi award-winning game first developed in 1995 by Microsoft" - Uncyclopedia
|
|
|
|
|
Sorry for the late response. Been very busy.
Perspx wrote: Expand the CPU section in the PerformanceMonitor and check the CPU readings for processes that are running against the CPU readings for processes in the Task Manager, where do the differences lie?
How do I do this? (Sorry newbie here)
Perspx wrote: How different are the readings?
Very different. Task Manager Says 10% while PerfMon goes to 20% (1 second sampling).
SDE
|
|
|
|
|
alex1205 wrote: Sorry for the late response. Been very busy.
No worries.
alex1205 wrote: How do I do this? (Sorry newbie here)
In the left pane click on Reliability and Performance. In the right pane a window is shown with boxes with headings Resource Overview, CPU, Disk, Network, Memory and Learn more. In the box with the CPU heading, click on the down arrow to the right of it, which will expand this box and show a list of currently running processes with their CPU usage as a header of the table. You can then compare this to the list of processes and their CPU usage in the Task Manager and see what is different - maybe one or two processes aren't being registered in either application, or their CPU reading isn't being measured accurately.
Regards,
--Perspx
"The Blue Screen of Death, also known as The Blue Screen of Doom, the "Blue Screen of Fun", "Phatul Exception: The WRECKening" and "Windows Vista", is a multi award-winning game first developed in 1995 by Microsoft" - Uncyclopedia
Introduction to Object-Oriented JavaScript
|
|
|
|
|
Perspx wrote: In the left pane click on Reliability and Performance.
Could not see this. I am using windows XP perfmon. Is this the same process that is mentioned above?
Thanks.
SDE
|
|
|
|
|
I am writing a script that gets today's date and writes it to a text file (yesterday.txt).
For example, when this script runs, it will place today's date "20083007" into yesterday.txt.
This script works.
I have another script that is supposed to read in the line from the text file and store it in a variable.
When I read it in from my script, it reads it as "20082907 " < There is an extra space.
I do not want this extra space and cannot find anything on how to get rid of it. Any help would be much appreciated.
This writes the date to the text file.
For /f "tokens=2-4 delims=/ " %%a in ('date /t') do set date=%%c%%b%%a
echo %date% > yesterday.txt
This is my code for retrieving the line from the text file.
set /p yesterdaysdate= <yesterday.txt>
</yesterday.txt>
|
|
|
|
|
We're trying to set up a VPN and we are running into some issues. Here is our setup:
We have a linksys router hooked into a 16 port switch. The Router has IPSec Passthrough, PPTP Passthrough, and L2TP Passthrough enabled.
We have 2 servers. The first is our webserver/code repository/sql server, the second is our domain server. The webserver is a member of the domain.
Port forwarding on port 1723 is pointing to the server we are trying to set up as our VPN Server (webserver).
The webserver, also the vpn server, only has one NIC card. Because of this setup we had to do the custom setup. We are not using this server as the router. We just want it to handle the VPN.
We are first trying to set up the VP locally and we want to use our domain accounts. The domain accounts have Allow Access checked under Remote Access Permission (Dial In or VPN)
When we log in on XP we get Error 6. On Vista, we get TCP/IP CP and TCP/IPv6 CP error 733
The logs are showing something that I cannot find any information on. It's called an Admin Reset. So, from the logs we see that the user is connecting and authenticating okay, but then there is this admin reset.
Does anyone know why we can't connect or have any suggestions?
Thanks
Broken Bokken
You can't carry out a ninja-style assasination dressed as an astronaut. It's the luminous fabric; too visible. - Tripod
The story of your fighting is a poem of two words: YOU SUCK.
|
|
|
|
|
My suggestion is that you get routers with builtin VPN.
Trust me, it's gonna save you a lot of grey hairs!
|
|
|
|
|
Our linksys has VPN passthrough and we already have 2 Windows 2003 servers. No need to go buy more hardware.
In either case, I figured out the problem. I had to set an IP range on the VPN server for IP's to be handed out to clients. I set aside 50 IPs (.200-.250) and made sure the router allowed those addresses. The server gives out the addresses in that range, and being a small company we will never eat up 100 addresses in the range 100-200 to have to worry about multiple machines getting the same address.
Broken Bokken
You can't carry out a ninja-style assasination dressed as an astronaut. It's the luminous fabric; too visible. - Tripod
The story of your fighting is a poem of two words: YOU SUCK.
|
|
|
|
|
Environment: Windows Server 2003
I have enabled FTP and created an FTP account. I can log in from another computer via FTP with a specific account and password and can use get and put to transfer files. But I cannot log in with anonymous. The IIS utilities have the option set to allow anonymous. When it asks for a password and I send something like me@here.com, the request is always denied. Is there some other method of controlling access of which I am not aware. ACL (Acces Control List) comes to mind but I know nothing of them.
I found the Microsoft deployment books for Server 2003 from their web site, but that is a bunch of data. I have yet to see anything in the chapter name descriptions that looks like it will lead me to the right place for thd answers I need.
Does anyone know all the ways that anonymous ftp acccess can be denied?
Thanks for your time
|
|
|
|
|
When I upgrade a users XP box I usually need to move all of their local data from their current machine to the new one. In most cases I need to do this online (unless I want to be at work very late). In the past I found that windows explorer was horrible at this (slow, stops on errors, and asks you are you sure too many times...) so I have tried and used a few file synchronizers. Filesync http://www.fileware.com/[^] and unison http://www.cis.upenn.edu/~bcpierce/unison/[^] are the ones I have used.
The problem is now I have 100s of GB of data to move (every user has gigabit to the desktop) and both programs choke and die when stepping into profile folders. Neither program makes it easy to select what folders to sync out of what is different and unison takes hours to get to the sync process.
What I am looking for is a good tool for the purpose and has a license such that I can buy one license and install it on any machine that I want but not pay a fortune for it.
John
|
|
|
|
|
http://www.2brightsparks.com/downloads.html[^]
SyncBack is a nice program and even the free version is very useful, and has pretty good logging too to see what happened. We use it where I work all the time.
The choking and dying could be due to permissions on the profile folders.
|
|
|
|
|
Thanks for the suggestion. I will try that.
requesttimedout wrote: The choking and dying could be due to permissions on the profile folders.
The choking and dying have to do with IE cache folders. I am not sure why but filesync crashed when it hit these folders and unison said it could not copy them and since it hit an error it also did not copy several levels up in the tree. I guess I could have forced the users to empty their cache but I want a program that does not have these problems..
John
|
|
|
|
|
I need to change 'Regional Settings' without going thru control panel, regional options application. I need to do it thru a command text, either typed from command prompt of given into run prompt.
Pls help, I am using windows Xp.
|
|
|
|
|
Hi,
most if not all control panels are files with .cpl extension in the Windows\system32 directory.
So you can type the filename and get the panel opened for you.
|
|
|
|
|
Thanks ........... It had been a great help.
intl.cpl does the job.
|
|
|
|
|
you're welcome.
|
|
|
|
|
There is a handful of Windows dynamic system environment variables,
e.g. %TIME%, %DATE%
But annoyingly these variables once expanded contain the characters "/" and ":" - the very characters you can't use in a filename !!
So the above vars are sadly useless for creating e.g. log filenames.
Doh !! Sad that MS hadn't catered for that usage originally ...
Yes, I could write a bit of script to run each time to generate my own
env vars with an up-to-date and filename-legal time/date stamp.
But it would be interesting/useful to know if there was either:
a) a 'hook' function that would let you e.g. reformat an existing dynamic system env variable
b) an API for creating your own dynamic system env var with a callback with which you set the string value.
Either way I could run a bit of code at system startup, then could use an %env var% string as part of a command shortcut property for auto-log naming.
And MS could address this sadly lacking aspect of %TIME% and %DATE% in their _next_ release ... (only 20 years late !)
|
|
|
|
|
you can try the following syntax
%TIME:~3,2%
see set /? for more info.
I've been usign this for a long time for rotating backup folders through weekdays.
The only problem I found is that the format of the date/time string depends on language and system settings, so you can't easily move one config to another PC.
We are a big screwed up dysfunctional psychotic happy family - some more screwed up, others more happy, but everybody's psychotic joint venture definition of CP blog: TDD - the Aha! | Linkify!| FoldWithUs! | sighist
|
|
|
|