Windows 7 registry permission -command line
Hi
Is there command in windows 7 and XP that I can set permission to spcific entry in registry (set full controll for everyone)
I need a full control for everyone
HKEY_LOCAL_MACHINE\SOFTWARE\SWT
Please provide me exact for the above sample
a. For XP
HKEY_LOCAL_MACHINE\SOFTWARE\SWT ->Full control everyone
b. For Windows 7
HKEY_LOCAL_MACHINE\SOFTWARE\SWT ->Full control everyone
Regards ,
Robert
Robert
There is a good read on how to do this located here:
http://blogs.msdn.com/b/alejacma/archive/2008/03/11/how-to-change-registry-permissions-with-regini-exe-vbscript.aspx
This is using a VB Script. I would also just advise taking great care when setting permissions on reg keys or editing the registry in any way.
Hopefully this helps.
Similar Messages
-
How can I install on Windows remotely via command line?
Hello Folks.
I want to install an application on Windows remotely and via command line, For example, I need a tool like Psexec or WMIC but I don't like the user understand it. Any idea?Hi,
Please also refer to following FAQ article and check if those four general ways will meet your requirement.
[Forum FAQ] How to deploy applications remotely
If any update, please feel free to let us know.
Hope this helps.
Best regards,
Justin Gu
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected] -
Do i put -private-window in the command line of the shortcut?
can someone show me what to do with the -private-window command line of the shortcut? I have windows 8 pro. I want to make a shortcut for this. Thanks
Hi lolnyancats,
there are multiple ways how to start Firefox in private browsing mode. If you want to use a shortcut parameter, follow the instructions below:
# Create firefox shortcut;
# Right-click on the shortcut, choose properties;
# Edit location (not name), file path and file name followed by the command line argument "-private", e.g.: "C:\Program Files\Mozilla Firefox\firefox.exe" -prvate;
# Save changes.
When you double click the modified shortcut you have just created, Firefox will start in private browsing window.
Other cmd line parameters you could possibly use and further info.: http://kb.mozillazine.org/Command_line_arguments -
Install and setup FTP in Windows 7 from command line
Hi
I want to do the following things from command line in Windows 7.
1. Enable IIS and FTP. The command in the following link installs only the IIS: http://www.iis.net/learn/install/installing-iis-7/installing-iis-from-the-command-line
2. Create ftp site and edit bindings as well
Thanks,
Lina :)You are looking for this information
http://social.technet.microsoft.com/Forums/windowsserver/en-US/dc4fcf93-8268-44f4-822a-d463d9443f6c/windows-7-and-server-2003-printer-server-issues?forum=winserverprint
Alan Morris Windows Printing Team -
Is it possible to change network adapter priority in windows 7 by command line?
Ik need to change my users network adapters so that the LAN network adaperts have a higher priority than the WLAN adapters.
I would prefer to do it trouhg a command line so that is can distrubute it with SSCM.
Can annybody help me??I've found the following Blog article for you:
http://win7settings.blogspot.be/2012/04/how-to-set-network-adapter-priorities.html
From the Command Line
Unfortunately there is no out-of-the-box command line interface for these Advanced settings described above. Luckily, there are two ways to set the priorities from the command line. The more difficult way is to set metrics for each network adapter (using netsh). The much easier way (easier to manage too) is to use nvspbind made by Microsoft. If you set the priorities using nvspbind, the effects can also be seen in the Advanced settings in ncpa.cpl. Here is how you use nvspbind:
Go to http://archive.msdn.microsoft.com/nvspbind and download nvspbind. Extract the nvspbind.exe and copy it to the target machine and run:
nvspbind.exe /++ "Wireless Network Connection" ms_tcpip
nvspbind.exe /++ "Wireless Network Connection" ms_tcpip6
nvspbind.exe /++ "Local Area Connection" ms_tcpip
nvspbind.exe /++ "Local Area Connection" ms_tcpip6
And that's it! You're done.
This will set the priorities (IPv4 and IPv6) to:
1. LAN
2. WLAN
3. WAN (if present) -
Windows NT service command line options?
Hi all
Is it possible to start the Weblogic 5.1 (SP8) NT service with the following
command line options:
-Xnoagent
-Djava.compiler=NONE
-XDebug
-Xrunjdwp:transport=dt_socket,server=y,address=<port>,suspend=n
If so, how?
Many thanks in advance
CraigThere is a tool in one of the MS kits that allows you to take a command line
and make it into a service. Use that.
Cameron Purdy
Tangosol, Inc.
http://www.tangosol.com
+1.617.623.5782
WebLogic Consulting Available
"crg" <[email protected]*REMOVE.THIS*> wrote in message
news:3a66bd6e$[email protected]..
Hi all
Is it possible to start the Weblogic 5.1 (SP8) NT service with thefollowing
command line options:
-Xnoagent
-Djava.compiler=NONE
-XDebug
-Xrunjdwp:transport=dt_socket,server=y,address=<port>,suspend=n
If so, how?
Many thanks in advance
Craig -
Access Offline Registry via Command Line
Thanks, everyone.
The goal is to do
this inside a windows PE. Specifically it is for taking care of infection. I know it can be done with regedit, but I want this done automatically. Not asking for the work to be done for me, but I can't find any document on how to access offline registries
with the reg command. Can I simply
reg add "C:\Windows\System32\config\software\HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyEnable /t REG_DWORD /d 0 /f
? The project is all written in batch, fyi.
Also, hate to be a bother, but if anyone could mention in passing any available scripts made by anyone which do PE cleanups of the operating system, I'm looking for those to, but haven't had time to dig yet.The goal is to do
this inside a windows PE. Specifically it is for taking care of infection. I know it can be done with regedit, but I want this done automatically.
Also, hate to be a bother, but if anyone could mention in passing any available scripts made by anyone which do PE cleanups of the operating system, I'm looking for those to, but haven't had time to dig yet.
The command
reg /?
tells you about reg load and reg unload which are the switches to use when modifying an offline registry. I recommend you begin by using regedit.exe to load/unload a hive in order to familiarise yourself with the process.
About a cleanup script - you will have to find the time to do your own search, maybe using a search engine. -
Is there a command line option for VNC to automatically launch in fullscreen mode?
I can launch a VNC window from the command line, as such:
open vnc://username:password@hostname
... but I'd like it to automatically start in full screen mode. Is there a command line option for this?
I'm using an old MacMini purely to connect to another Mac over screen sharing, but when the MacMini boots I'd like it to go straight into the fullscreen of the other desktop.
Many thanks!Set the Integer pref browser.sessionstore.max_resumed_crashes to 0 on the about:config page to get the about:sessionrestore page immediately with the first restart after a crash has occurred or the Task Manager was used to close Firefox.
* http://kb.mozillazine.org/browser.sessionstore.max_resumed_crashes
That will allow you to deselect the tab(s) that you do not want to reopen, but will allow to reopen other tabs.
See:
* http://kb.mozillazine.org/Session_Restore#Restoring_a_session_after_a_crash
* http://kb.mozillazine.org/Browser.sessionstore.max_resumed_crashes -
Hi, I'm new to java and do not understand why when I run this program with the argument * I get a list of files in my current working directory. Can someone explain this?
class test{
public static void main(String args[]){
for (int i = 0;i < args.length; i++) {
System.out.println("File " + i + ":" + args);
if (args.length<=0) {
System.out.println("No files!");
At prompt --
c:\> java test *
would then return list of files.Firstly, I'm sick of Windows bashing. My logic is, if it sucks so much, then why is it so popular and why, when I go to the local video game store, are 85% of the games on the shelf for Windows, 10% for Mac, and 5% for Linux? But that's besides the point.
jschell is right again (as usual), jaylogan. You should listen to him. In Windows, all the command line wildcard expansion is not done by the shell, it's done by the program. If you write some console applications in C/C++, you'll see that passing * as a command line parameter does not cause the expanded file list to be substituted instead (unless you link to some library whose name I can't remember). Ok, so, you type 'dir *.java' and it works, and 'dir' is built in to DOS, so I guess you could say, in that case, the shell is doing it... but it doesn't just automatically do it every time you enter a command, as Linux does.
Additionally, if you actually print args[i] instead of args, you'll see that when you do pass * on the command line, you'll get the files in the working directory, but if you pass "*", the only command line parameter that will get printed is a single asterisk. The reason for this is that enclosing it in quotes tells 'java' that you wanted it to be treated literally and not processed into anything else. The JVM strips the quotes off and does no further processing.
Jason -
Looking for a programmatic/command line approach to auditing registry changes
http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/regedit_audit_key.mspx?mfr=true
I'm looking to enable auditing on registry keys, but not have the user have to manually go through this process. Can you do this via command line or something? I'm trying to write this into my program, and I need it to set auditing on certain registry keys.Hi,
In addition, we might enable the following audit group policy settings to audit registry changes:
Global Object Access Auditing
Under computer configuration/ Windows Settings/Security Settings/Advanced Audit Policy Configuration/
For more information regarding Global Object Access Auditing, please see:
Registry (Global Object Access Auditing)
Global Object Access Auditing is Magic
Best regards
Michael Shao
TechNet Community Support -
Hello I am on a macbook pro (retina IOS 9) i have installed xcodes and command line tools but codeblocks does not compile, terminal gives this message /Users/MacPc/Desktop/Untitled1: Permission denied any one has a solution?? please...
Back up all data before proceeding.
This procedure will unlock all your user files (not system files) and reset their ownership, permissions, and access controls to the default. If you've intentionally set special values for those attributes on any of your files, they will be reverted. In that case, either stop here, or be prepared to recreate the settings if necessary. Do so only after verifying that those settings didn't cause the problem. If none of this is meaningful to you, you don't need to worry about it, but you do need to follow the instructions below.
Step 1
If you have more than one user, and the one in question is not an administrator, then go to Step 2.
Triple-click anywhere in the following line on this page to select it:
sudo find ~ $TMPDIR.. -exec chflags -h nouchg,nouappnd,noschg,nosappnd {} + -exec chown -h $UID {} + -exec chmod +rw {} + -exec chmod -h -N {} + -type d -exec chmod -h +x {} + 2>&-
Copy the selected text to the Clipboard by pressing the key combination command-C.
Launch the built-in Terminal application in any of the following ways:
☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
☞ Open LaunchPad. Click Utilities, then Terminal in the icon grid.
Paste into the Terminal window by pressing command-V. I've tested these instructions only with the Safari web browser. If you use another browser, you may have to press the return key after pasting.
You'll be prompted for your login password, which won't be displayed when you type it. Type carefully and then press return. You may get a one-time warning to be careful. If you don’t have a login password, you’ll need to set one before you can run the command. If you see a message that your username "is not in the sudoers file," then you're not logged in as an administrator.
The command may take several minutes to run, depending on how many files you have. Wait for a new line ending in a dollar sign ($) to appear, then quit Terminal.
Step 2 (optional)
Take this step only if you have trouble with Step 1, if you prefer not to take it, or if it doesn't solve the problem.
Start up in Recovery mode. When the OS X Utilities screen appears, select
Utilities ▹ Terminal
from the menu bar. A Terminal window will open. In that window, type this:
res
Press the tab key. The partial command you typed will automatically be completed to this:
resetpassword
Press return. A Reset Password window will open. You’re not going to reset a password.
Select your startup volume ("Macintosh HD," unless you gave it a different name) if not already selected.
Select your username from the menu labeled Select the user account if not already selected.
Under Reset Home Directory Permissions and ACLs, click the Reset button.
Select
▹ Restart
from the menu bar. -
Windows 7 Defrag from command line does not work
We are running Windows 7 in a virtualized environment. When running windows defrag using schedule or from command line, it does not work. The command that I am executing as administrator is
C:\Windows\system32>defrag /c
Microsoft Disk Defragmenter
Copyright (c) 2007 Microsoft Corp.
It displays the above message and exits back to the command prompt. However if I run the command defrag C: it does work. Defragmenting from the GUI works as well as long as both the disks (C: and System Reserved) are selected and when I click on
Defragment disks, works fine.
I am concerned about defrag running from the task scheduler with the command "defrag /c" (auto scheduled using Configure Schedule... from Disk Defragmenter) does not work and the system never gets defragmented automatically.
This happens only with some of the windows 7 VM's that we have.
There are no entries in Event Log that point to the defrag (using task scheduler). Any ideas what may be going on?Hi,
Could you defrag as below method:
1. Open Disk Defragmenter by clicking the Start button. In the search box, type
Disk Defragmenter, and then, in the list of results, click
Disk Defragmenter.
2.Under Current status, select the disk you want to defragment.
3.To determine if the disk needs to be defragmented or not, click Analyze disk. Administrator permission required If you're prompted for an administrator password or confirmation, type the password or provide confirmation.
Once Windows is finished analyzing the disk, you can check the percentage of fragmentation on the disk in the
Last Run column. If the number is above 10%, you should defragment the disk.
4.Click Defragment disk. Administrator permission required If you're prompted for an administrator password or confirmation, type the password or provide confirmation.
For more information, please read this article:
Ways to improve your computer's performance
http://windows.microsoft.com/en-in/windows/improve-performance-defragmenting-hard-disk#1TC=windows-7
Meanwhile, read this article:
Defrag from the Command-Line for More Complete
Control
http://technet.microsoft.com/en-us/magazine/ff458356.aspx
Karen Hu
TechNet Community Support -
Webstart-deployed desktop app, command line and Windows ShellExecute.
Hi all,
I want to be able to associate Windows Shell registry actions (shellExecute from right click menu, double click, and protocols) with a Webstart Java Swing desktop app. This is pretty key to our deployment strategy.
I have two options that I'm pursuing right now.
OPTION A
Unfortunately I'm encountering a few problems:
1) javaws.exe does not accept parameters, therefore I can't pass parameters directly from a Windows command line
2) The only way to get arguments in is through the jnlp file. Sounds like this is possible using a jnlp written by a servlet. But can I just pass GET parameters to my servlet like so?
http://webstart.com/go/?param=value¶m2=value2Would that work?
2a) subissue: I want to use JNLP's SingleInstance to make sure that only one of my app is running at any time. It sounds like that JNLP interface also allows for new parameters to be passed in as arguments... but if I pass in parameters to my webstart address, will SingleInstance properly recognize that http://webstart/go and http://webstart/go?param=value are the same program?
OPTION B
So the alternative deployment strategy that I'm contemplating is using webstart, but then deploying a separate .jar to the machine and registering that to be the argument acceptor from Windows. So windows would run something like so:
java -jar cmdLauncher.jar argshereFrom there I will do two things:
a) If the program is already running, then I pass the argument in using network sockets and deal with it like so.
b) If the program isn't already running, then I execute javaws http://myurl and then maybe write to the socket when it's ready. This might really suck since i'll have to poll until the socket is ready.
Anyway, was hoping someone with more webstart internals had some idea as to
a) would a option A (dynamic servlet) work in the way I expect?
b) Is option B the only way to really do it? It certainly seems feasible at this point.
Ideally I just wish javaws.exe allowed passing arguments, and thus this entire problem would not exist. It's a pretty powerful and important feature for WebStart to be able to be a fully featured deployment solution.OPTION A
Unfortunately I'm encountering a few problems:
1) javaws.exe does not accept parameters, therefore I
can't pass parameters directly from a Windows command
line
2) The only way to get arguments in is through the
jnlp file. Or the SingleInstanceService.
....Sounds like this is possible using a jnlp
written by a servlet. But can I just pass GET
parameters to my servlet like so?
http://webstart.com/go/?param=value�m2=value
2Would that work?Huh? Assuming the servlet that produces the
launch file fir this application is called 'go', and that
servlet returns the correct content-type, and writes
the two params in the URL into the JNLP as
arguments, then.. yes - this should work.
http://webstart.com/go?param=value�m2=value2Note the lack of one '/'.
( I have not had much direct experience with
JNLP combined with servlets, but am familiar
with both. )
2a) subissue: I want to use JNLP's SingleInstance to
make sure that only one of my app is running at any
time. It sounds like that JNLP interface also allows
for new parameters to be passed in as arguments...
but if I pass in parameters to my webstart address,
will SingleInstance properly recognize that
http://webstart/go and http://webstart/go?param=value
are the same program?As I understand from my experience, the URL
becomes redundant, any params that were in
the JNLP are ignored in preference to the single
-open argument. Here is my buildable example..
http://www.physci.org/jws/#sis
a) would a option A (dynamic servlet) work in the way
I expect?Sounds like it. -
How can I start a second window of a second profile through the command line?
I have two profiles set up, 'default' and 'second'. If both are already running how can I start a second window of profile 'second'?
firefox -p 'second' : opens a new window of the default and,
firefox -p 'second' -no-remote : tells me that firefox is already running.I don't think that this is possible.<br />
You need to open this second instance (Firefox profile folder) with the -no-remote command line switch and that makes it impossible to open external links via the command line or via a double-click.<br />
You can only open a link in such an instance by dragging the link on the tab bar of that Firefox window. -
Testing Java Concurrent Program on the command line in Windows
I'm using the suggestions in:
http://blogs.oracle.com/xmlpublisher/2007/05/02
to test my Java concurrent program on the command line. Our production environment is running on Unix. I've been able to test it successfully on the Unix environment from the command line. However, it fails when I try to test it on the Windows command line with the following stack trace:
Exception in static block of jtf.cache.CacheManager. Stack trace is: oracle.apps
.jtf.base.resources.FrameworkException: IAS Cache initialization failed
at oracle.apps.jtf.cache.IASCacheProvider.init(IASCacheProvider.java:225
at oracle.apps.jtf.cache.CacheManager.activateCache(CacheManager.java:14
44)
at oracle.apps.jtf.cache.CacheManager.initCache(CacheManager.java:752)
at oracle.apps.jtf.cache.CacheManager.<clinit>(CacheManager.java:378)
at oracle.apps.fnd.cache.Cache.setCacheFullName(Cache.java:228)
at oracle.apps.fnd.cache.Cache.initCache(Cache.java:114)
at oracle.apps.fnd.cache.Cache.<init>(Cache.java:89)
at oracle.apps.fnd.cache.AppsCache.<init>(AppsCache.java:86)
at oracle.apps.fnd.cache.AolCaches.getCache(AolCaches.java:155)
at oracle.apps.fnd.profiles.Profiles.<clinit>(Profiles.java:241)
at oracle.apps.fnd.profiles.ExtendedProfileStore.init(ExtendedProfileSto
re.java:498)
at oracle.apps.fnd.profiles.ExtendedProfileStore.<init>(ExtendedProfileS
tore.java:119)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct
orAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC
onstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
at oracle.apps.fnd.common.AppsContext.instantiateProfileStore(AppsContex
t.java:4312)
at oracle.apps.fnd.common.AppsContext.makeProfileStore(AppsContext.java:
1171)
at oracle.apps.fnd.common.Context.setProfileStore(Context.java:970)
at oracle.apps.fnd.common.Context.setProfileStore(Context.java:952)
at oracle.apps.fnd.common.AppsContext.initializeContext(AppsContext.java
:958)
at oracle.apps.fnd.common.AppsContext.initializeContext(AppsContext.java
:918)
at oracle.apps.fnd.common.AppsContext.<init>(AppsContext.java:752)
at oracle.apps.fnd.cp.request.CpContext.<init>(CpContext.java:141)
at oracle.apps.fnd.cp.request.CpContext.<init>(CpContext.java:124)
at oracle.apps.fnd.cp.request.Run.main(Run.java:127)
Caused by: oracle.apps.jtf.base.resources.FrameworkException: null
null
CacheDefaultConfig.properties (The system cannot find the file specified)
at oracle.apps.jtf.base.resources.FrameworkException.convertException(Fr
ameworkException.java:607)
at oracle.apps.jtf.base.resources.FrameworkException.addException(Framew
orkException.java:585)
at oracle.apps.jtf.base.resources.FrameworkException.<init>(FrameworkExc
eption.java:66)
at oracle.apps.jtf.base.resources.FrameworkException.<init>(FrameworkExc
eption.java:88)
at oracle.apps.jtf.base.resources.FrameworkException.<init>(FrameworkExc
eption.java:202)
at oracle.apps.jtf.base.resources.FrameworkException.<init>(FrameworkExc
eption.java:218)
at oracle.apps.jtf.base.resources.FrameworkException.<init>(FrameworkExc
eption.java:249)
... 26 more
Exception in thread "main" oracle.adf.mds.exception.MDSRuntimeException: Cache n
ot initialized
at oracle.apps.fnd.framework.mds.cache.ATGCacheMgrDelegateImpl.<init>(AT
GCacheMgrDelegateImpl.java:325)
at oracle.apps.fnd.framework.mds.cache.ATGCacheFactoryImpl.<init>(ATGCac
heFactoryImpl.java:44)
at oracle.apps.fnd.cp.request.CpContext.getMDSContext(CpContext.java:116
9)
at oracle.apps.fnd.cp.request.Run.main(Run.java:130)
I've put the appsborg2.zip file in my classpath. I've also copied the entire (1 GB) worth of Java .class files for Oracle apps onto my computer and placed it on my classpath. Is there something that prevents me from testing out my Java concurrent program on my Windows machine from the command line?i think if u run the ap in the command line then it has to stay open, you could try writing a .bat file then when that is executed it will only open the command line for the program execution (i think)
Maybe you are looking for
-
How can I move my albums, including the title of the album , with the pictures to a flash drive. Every thing I try I only get the pictures but they are not in the album.
-
iMac 24" suddenly running verrry slow! Every command requires long delay before execution. Is this a Virus???
-
How to make use of datasheet view to edit Photos Site metadata?
Hi, Is that possible to edit metadata in photo site through datasheet view? I just couldn't locate any datasheet view button there.
-
Any problems running Windows 7-created help output on Windows XP machines?
Hi, I feel a bit silly even asking this, but I'm not a coder and don't have the technical knowledge to know for sure that it's a silly question. Background: We are upgrading to Windows 7 from XP in the near future. We will be using RoboHelp 10 and Wo
-
Philips Skype VOIP phone not signing in
There are a numerous amount of post accumulating daily on the chats here and no one including myself can sigh into skype with our VOIP phones. Philips has no idea why and suggest Skype did something. We can all sign into skype with our accounts...But