Net Use Savecred Error
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and net use delete a command was used with conflicting switches policies of this site About Us Learn more about Stack Overflow the net helpmsg 3510 company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags savecred conflicting switches Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 6.2 million programmers, just like you, helping each other. Join them; it only takes net use savecred persistent conflicting a minute: Sign up Net.exe use 'Error: A command was used with conflicting switches.' while using /savecred up vote 15 down vote favorite 3 I am trying to use following command to map a drive in persistent mode, and I don't want it to ask login credentials everytime I reboot the machine: net use P: \\server\folder Password123 /user:user123 /savecred /persistent:yes But
Net Use Save Credentials
I am getting folowing error: A command was used with conflicting switches. More help is available by typing NET HELPMSG 3510. I followed this article: http://pcsupport.about.com/od/commandlinereference/p/net-use-command.htm Please help with this issue. networking windows-services command-prompt drive-mapping share|improve this question asked Aug 1 '13 at 14:27 sabertooth1990 4101414 add a comment| 2 Answers 2 active oldest votes up vote 17 down vote accepted When we use /savecred switch we should not give the credentials in the same line. The correct command should be: net use P: \\server\folder /savecred /persistent:yes It will ask for username and password. share|improve this answer answered Aug 2 '13 at 9:55 sabertooth1990 4101414 The help doesn't give any indication of this at all :/ It's worth noting if you have credentials in the vault already, the command line won't ask you for them. –Mooing Duck May 14 '15 at 2:50 add a comment| up vote 6 down vote You can add your credentials to Windows Vault and then map you drive, this way you can avoid the limitation sabertooth1990 mentioned: CMDKEY /add:%server% /user:%username% /pass:%password% NET USE \\%ser
in with Microsoft Sign Up All Content All Content This Topic This Forum Advanced Search Browse Forums Downloads Guides Calendar Forum Rules Online Users More Wiki
Net Use Options
Bug Tracker AutoIt Resources Release Installer Help file Editor Beta Installer Help file cmdkey add Editor Git More More More All Activity Home AutoIt v3 AutoIt Help and Support AutoIt General Help and Support Trying to net use delete yes SaveCred with Net Use Sign in to follow this Followers 0 Trying to SaveCred with Net Use Started by gcue, February 10 6 posts in this topic gcue 8 just a wannabe Active http://stackoverflow.com/questions/17996846/net-exe-use-error-a-command-was-used-with-conflicting-switches-while-using Members 8 2,062 posts #1 · Posted February 10 hello world! i am trying to save credentials in windows 7 using net use /savecred. however not sure why i am getting a wrong password error - password is correct, account is not locked and when i try the same username and same password manually (not via script - it works). i also have a pass check function which also verifies the https://www.autoitscript.com/forum/topic/180528-trying-to-savecred-with-net-use/ password is correct. expandcollapse popup#include
Cluster DB Snapshots SQL Server Services/Features SQL Server Agent Integration Services Reporting Services Analysis Services DB/SQL Mail Notification Services Ful Text Search Browser Services Policy http://blogs.lostincreativity.com/sqldba/how-to-use-net-use-and-fix-related-errors/ Based Management Tools TDP for SQL Server Veritas Net Backup Legato backup utility Symantec Veritas Cluster (VCS) Scripting Powershell T-Sql VBScript Tips & Tricks Useful Tweaks and Tips Issues and Resolutions Other DB Tech MySQL Oracle MS Office Excel Outlook Windows Windows Cluster Active Directory Registries Win OS Virtualization Links and Articles Articles I like to read again My Link Mania Automation Link•o•logy DBA Useful net use Resources Join us on LinkedIn! Follow Us on Twitter! Subscribe to our RSS Feed! Jul122013 Automation // Scripting // Useful Tweaks and Tips // Windows How to use NET USE and fix related errors An article by contactng No Comments NET USE command syntax: net use [{devicename | *}] [\\computername\sharename[\volume] [{password | *}]] [/user:[domainname\]username] [/user:[dotteddomainname\]username] [/user:[username@dotteddomainname] [/home {devicename | *} [{password | *}]] [/persistent:{yes | net use save no}] [/smartcard] [/savecred] [/delete] [/help] [/?] Refer for more details: http://pcsupport.about.com/od/commandlinereference/p/net-use-command.htm Examples of NET USE: Net Use Command Examples: net use * "\\server\my media" /persistent:no In this example, net use command is used to connect to the my media shared folder on a computer named server. The my media folder will be mapped to my highest free drive letter [*], which for me happens to be y:, but I don't want to continue mapping this drive every time I log on to my computer [/persistent:no]. net use e: \\usrsvr00123\test Ae123Ci /user:usr01\test123 /savecred /p:yes Here's a slightly more complicated example that you might see in a business setting. In this net use example, I want to map my e: drive to the test shared folder on usrsvr00123. I want to connect as another user account I have [/user] by the name of test123 that's stored on the usr01 domain with a password of Ae123Ci. I don't want to map this drive manually every time I start my computer [/p:yes] nor do I want to enter my username and password each time [/savecred]. net use p: /delete Error faced when automating N