Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

bitsadmin and Setting credentials for Proxy

595 views
Skip to first unread message

gordonmytuba

unread,
Apr 11, 2006, 5:10:02 PM4/11/06
to
Fairly new to BITS and the batch files/command prompt. Would like to create
or modify a VB.Net project to do this eventually but gotta start one step at
a time....

Running ISA Server 2004 which requires authentication, getting error
0x80190197 when i do a bitsadmin.exe /geterror jobname in command prompt.
Could anyone tell me if i'm even remotely close to getting the syntax correct:

bitsadmin.exe /setcredentials grc PROXY BASIC "Username" "pw"

Do I need the quotes around the user/pw? Haven't tried with DIGEST or
PASSPORT. Haven't been able to find a good source for examples, for batch
files or vb.net source code. Guess I'll keep digging and trial & error
learning. =)

Phil Wilson

unread,
Apr 11, 2006, 7:13:36 PM4/11/06
to
I don't know much about the syntax - my guess would be that you don't need
quotes - but ISA Server 2004 could have other authentication schemes, so if
you're setting Basic, I assume you *know* that the ISA Server is configured
to require basic. It might actually require NTLM or Digest. Also, where
can your Username account be authenticated? Is it a machine account from
the client, a domain account?

Something I'm not sure about in your context is whether you actually need to
set the credentials at all - your implicit logged-on user's credentials
might be adequate if the ISA Server just requires integrated Windows
authentication.
--
Phil Wilson [MVP Windows Installer]
----
"gordonmytuba" <gordon...@discussions.microsoft.com> wrote in message
news:41822951-1D40-4747...@microsoft.com...

gordonmytuba

unread,
Apr 12, 2006, 1:13:03 PM4/12/06
to
After logging into the domain and adding myself into the local computers
administrator group. Then testing schemes, and authenticating against ISA
proxy with the NTLM with domain\username password worked like a charm!

Now, to try and figure this out for using in VS 2005 with vb.net using this
article by Duncan Mackenzie
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnwxp/html/WinXP_BITS.asp

Phil Wilson

unread,
Apr 12, 2006, 4:38:19 PM4/12/06
to
1. I wouldn't use the interop from that article - use the BitsInterop files
posted by Scott White here, Feb 2006. That's the one the BITS folks would
rather we use. It would be great if they could find a web home for that
because it might not be viewable by now, but I could post a zipped copy here
again.

2. This uses BITS too, the downloader part, source in C#, VB:

http://www.microsoft.com/downloads/details.aspx?FamilyID=c6c09314-e222-4af2-9395-1e0bd7060786&displaylang=en

--
Phil Wilson [MVP Windows Installer]
----
"gordonmytuba" <gordon...@discussions.microsoft.com> wrote in message

news:A67481E7-87A4-42C2...@microsoft.com...

gordonmytuba

unread,
Apr 18, 2006, 4:36:33 PM4/18/06
to
Will take me a while to get a grip on this stuff. I spent a few years
tinkering with VB 6.0 and just learning VB.Net, so this Interop thing with
all the different updater projects in the same Project/Solution is confusing
me. I'm just used to VB6 still.

And yes, don't see that zip file here. But thanks for the help and I'll keep
on tinkering with it, maybe stumble across a breakthrough. =)

Narayana Mahankali [MSFT]

unread,
Apr 24, 2006, 7:23:39 PM4/24/06
to
Regarding the original posting about the bitsadmin syntax, you don't need
the quotes for the username and password. You don't need to be a domain
member and you certainly don't need to be a local administrator to make the
credentials work. You can pass on the NTLM credentials using the command
line too. You only need domain membership if you use the NEGOTIATE auth
scheme and it resolves to KERBEROS. You can set multiple credentials on the
job and BITS will automatically use the correct credentials based on the
server's challenge.

Now regarding Scott's managed wrapper for BITS -- while it is certainly
better than other solutions it is not officially tested by Microsoft. You
have to pretty much use it at your own risk. That being said, we can still
answer any BITS questions arising from the usage of this and other managed
code wrappers. An official managed code solution is being planned but the
schedule is not finalized yet.

--
Narayana Mahankali
Microsoft, BITS

This posting is provided "As Is" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm


"gordonmytuba" <gordon...@discussions.microsoft.com> wrote in message

news:A13C33B7-6F5B-4049...@microsoft.com...

gordonmytuba

unread,
Apr 27, 2006, 1:55:01 PM4/27/06
to
I know it doesn't help that i'm new to vb.net 2005, spent a few years making
some VB6 projects. So this is alot to take in, learning .net, it's syntax,
classes, etc. Let alone a custom wrapper with built by someone light years
ahead of my programming experience.

Using the command line bitsadmin.exe was just me trying to get familiar with
BITS and what it does. Then moving onto trying to create an vb.net app that
sits in background of a server that transfers NTBackup files offsite to other
servers in our VPN WAN.

I have built an app (not using that interop.vb file mentioned) instead using
that bitsmanager.dll file i think. I can transfer files to and from other
computers on the LAN as well as download files off the internet. But that's
not as sophisticated as what is needed in my situation. That wrapper that
Scott wrote in that "Updater Application Block version 2.0" is beyond my
comprehension at this point in time. Not sure how to use it. Maybe I bit off
more than I can chew, but I enjoy programming and want to learn BITS and .Net.

Is there any reference document/website on how to use this wrapper for a
complete newbie that is trying to get a grasp on it? If I had several years
of programming with .net under my belt i'm sure it would make alot more sense.

Thank you to everyone for any and all time spent on answering my questions!
It really does help me alot.

gordo

Narayana Mahankali [MSFT]

unread,
Apr 27, 2006, 7:55:24 PM4/27/06
to
Start with this article
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnwxp/html/WinXP_BITS.asp
that Duncan wrote on how to use BITS with DotNet. Once you understand the
details and are comfortable you can use Scott's wrapper to do the actual
implementation. But don't worry, we will try and answer all your questions
in this regard.

--
Narayana Mahankali
Microsoft, BITS

This posting is provided "As Is" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm

"gordonmytuba" <gordon...@discussions.microsoft.com> wrote in message

news:F1740FFD-CE50-4532...@microsoft.com...

0 new messages