|
I want to provide an interface for the user to enable/disable all windows access options(My computer, partition access, network setting, log off...). The Disable Task Manager is mentioned only as a sample. I had managed this in a previous version of my program.
The real problem started when I decided to run the program(for security issues) from 'RunAs' option of Windows. So whatever used to work for HKEY_CURRENT_USER does not work anymore. I need to find a way to enable/disable windows access option for ALL users of a PC within the program(I can't use Group Policy Editor). I tried to use HKEY_LOCAL_MACHINE but it does not work at all, despite being mentioned in may websites like http://www.pctools.com/guides/registry/detail/163
That's the story.
I'd be grateful if anybody could help me.
|
|
|
|
|
If you're building a GUI you may find a better answer asking this question in the forum dedicated to your programming language of choice than a more general forum such as this one.
Otoh, you could always build a batch file then use the button click event of your GUI to envoke the batch file....hmmm
-- modified at 15:16 Monday 3rd September, 2007
"We are all repositories for genetically-encoded information that we're all spreading back and forth amongst each other, all the time. We're just lousy with information."
- Neal Stephenson
|
|
|
|
|
If in case i forget the password of PC what i have to do ?...................i know that if we remove the battery inside the c.p.u and place it again we can, but with out removing this how we can do?
|
|
|
|
|
surendrag wrote: if we remove the battery inside the c.p.u and place it again
That is for BIOS Password.
|
|
|
|
|
Hardly you will find that password simply looking through files and folders: surely it is crypted and hided somewhere.
The better way to solve this is to enter into the system as administrator, take the document files of that user, remove the account, create a new accout and copy there the old documents.
Russell
|
|
|
|
|
Is the PC on a Server 2003 domain with AD?
"We are all repositories for genetically-encoded information that we're all spreading back and forth amongst each other, all the time. We're just lousy with information."
- Neal Stephenson
|
|
|
|
|
At the start of a pc every one will give a password to login(its not mandatory) where that password will store in that pc?....
|
|
|
|
|
|
I need a menu that will axiomatically close after 10 seconds but if you press enter then it lunches other batch file...
I did this for now:
@ECHO OFF<br />
TITLE Menu<br />
:MENU<br />
ECHO ----------------------------------------<br />
ECHO Press "ENTER" to enter setup menu...<br />
ECHO ----------------------------------------<br />
ECHO .<br />
ECHO Type Q to Quit immediately<br />
ECHO .<br />
<br />
set INPUT=<br />
Set /P INPUT=">"<br />
If "%input%"=="" goto runother<br />
If /I "%input%"=="Q" goto QUIT<br />
<br />
:runother<br />
CLS<br />
batchmenu2.bat
All of this works but i need a delay that after 10 seconds this automatically closes...
Anny one can help? :->
|
|
|
|
|
I dont think you will be able to do that directly from cmd commands inside the bat file.. But you could make it run some VB scripts which then sleep for 10 secs and then closes the cmd.exe process or alike (! if there are never any others..)
It was a long time ago i worked with *.vbs files from within cmd but i do remember you can do stuff like sleep, emulate keys etc so it should be possible one way or another
//Johannes
|
|
|
|
|
|
please tell me in easy way how to build a windows mobile os. Is the required tool platform builder?
|
|
|
|
|
|
any software I can use to scan workstations in my network for illegal/privated software? We want to make sure all software installed are licensed and we've paid for them
recommendation?
|
|
|
|
|
Well, you won't be able to scan a machine for pirated software, because how do you know what's pirated and what isn't?
What you really need to do is keep a database of all the licenses you purchase, then use a scan tool to compare install count of applications against your database.
I've previously used HP's Enterprise Discovery and Assetcenter to do this. Most systems management tools will be able to collect installed software information from a machine.
|
|
|
|
|
This can not be a one-step process.
1) You need to ensure comparing inventory with Add Remove Programs Applet
2) Network MOnitoring in case some installed Spyware sends network info.
3) A Windows Service to scan additional EXEs can help.
|
|
|
|
|
Hello allof U
When I want to update my Antivirus software,error occured as follow ..
Failed to initialize comman Update subsystem.make sure
the McAfee Framework services is running.
McAfee comman Framework returned error fffffd1f@3
Please Give me solution .
Thanks for this .
nilesh
|
|
|
|
|
Try To rebot or reinstall, and check firewall
|
|
|
|
|
|
Hi I want to monitor a "DIRECTORY" if any log file is writing to it: "Error : xxx" - if located, a specified Exe can be triggered to execute.
Anyone suggest a tool with which this objective can be accomplished?
I also tried to accomplish the same by:
<br />
for /f "eol=; tokens=*" %%x in (C:\temp\*.log) do if "%%x" CONTAINS "error" LogMonAction.exe<br />
Basically I tried to monitor all log files in C:\temp directory, if any log file created/updated since last night, execute "LogMonAction.exe" or another log file.
Problem with above script is, there's no such comparison operator "CONTAINS", and you cant do this on a DIRECTORY. And let aside the additional requirement - only files updated/created since last night.
Reference:
(a) If statement: http://www.robvanderwoude.com/if.html
(b) Textlog Monitor: http://www.sharewareconnection.com/text-log-monitor.htm
|
|
|
|
|
|
Hey know how to do this? It's a MS DOS batch file, I'm having trouble computing "Yesterday" and xcopy /D date command - I want all files updated since yesterday.
<br />
SET YESTERDAY= %DATE% -1 ----- how do I compute *yesterday*?<br />
SET USERNAME=someguy<br />
xcopy %LOGFILEDIR% %SHAREDIR%\%YESTERDAY%\%USERNAME% /e /I /C /K /D:%YESTERDAY%<br />
Bolded part is where the problem is ... Also /D switch takes the following format:
<br />
/D:8-29-2007
Reference: xcopy
|
|
|
|
|
Wow that is long as you said I found this our "examples" on our dev server at work and I don't remember where it is from...
for /f "tokens=2" %%g in ('date /t') do set datesplit=%%g
set mm=%datesplit:~0,2%
set dd=%datesplit:~3,2%
set yyyy=%datesplit:~6,4%
echo %mm%
echo %dd%
echo %yyyy%
set /A dd=%dd% - 1
set /A mm=%mm% + 0
if /I %dd% GTR 0 goto FINISH
set /A mm=%mm% - 1
if /I %mm% GTR 0 goto ADJUST
set /A mm=12
set /A yyyy=%yyyy% - 1
:ADJUST
if %mm%==1 goto SET31
if %mm%==2 goto LEAPCHK
if %mm%==3 goto SET31
if %mm%==4 goto SET30
if %mm%==5 goto SET31
if %mm%==6 goto SET30
if %mm%==7 goto SET31
if %mm%==8 goto SET31
if %mm%==9 goto SET30
if %mm%==10 goto SET31
if %mm%==11 goto SET30
if %mm%==12 goto SET31
goto ERROR
:SET31
set /A dd=31 + %dd%
goto FINISH
:SET30
set /A dd=30 + %dd%
goto FINISH
:LEAPCHK
set /A tt=%yyyy% %% 4
if not %tt%==0 goto SET28
set /A tt=%yyyy% %% 100
if not %tt%==0 goto SET29
set /A tt=%yyyy% %% 400
if %tt%==0 goto SET29
:SET28
set /A dd=28 + %dd%
goto FINISH
:SET29
set /A dd=29 + %dd%
:FINISH
if /i %dd% LSS 10 set dd=0%dd%
if /I %mm% LSS 10 set mm=0%mm%
rem here you can format how you like, from above it should be
set YESTERDAY=%mm%-%dd%-%yyyy%
echo %YESTERDAY%
|
|
|
|
|
Thanks! You saved my life!
|
|
|
|
|
How about a quick .VBS file? That would be pretty more simpler. Isn't it?
|
|
|
|