|
|
Hi,
So, do you mean:
for accessing a 64 bit machine, I can still use select * from win32_printers ? even though it points to win32 ?
I did read the link you sent, thanks but there is nothing there that talks about 64 bit operating systems.
Please note that all the machines with 32 bit system, I can access but not the 64 bit systems. They all have the same operating system.
And I am admin on all of them. So the only issue is to access the 64 bit systems.
Any thoughts please?
Thanks
modified on Wednesday, September 24, 2008 3:03 AM
|
|
|
|
|
arkiboys wrote: So, do you mean:
for accessing a 64 bit machine, I can still use select * from win32_printers ? even though it points to win32 ?
I never said anything about that. win32_printer is the WMI class name -
it has nothing to do with 32-bit/64-bit.
All the same reasons for access denied (security) should apply to 64-bit
OSs.
It doesn't matter if you're an admin on all of them - they have to be configured
to allow remote administration.
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
How do I configure to allow remote administration?
Thanks
|
|
|
|
|
I gave you a link that worked for me - there's a LOT of pages of
information starting at that link.
I'm a programmer not an IT person, sorry.
Since you're getting access denied, you're already getting
past firewall/routing issues, so that's a start.
What operating system is running on the remote?
FWIW, your code worked fine for me just setting the
ConnectionOptions object as follows:
ConnectionOptions options = new ConnectionOptions();<br />
options.Username = "username";<br />
options.Password = "password";<br />
options.Authority = "NTLMDOMAIN:myDomainName";
Maybe Kerberos authentication will work for you...
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Operating system on teh remote server is:
windows server 2003 SP2 64 bit
Do you know how to implement Kerberos into the above code?
Thanks
|
|
|
|
|
I added the options.Authority = "NTLMDOMAIN:myDomainName";
as you suggested.
It still says, Access denied.
|
|
|
|
|
NTLM is the default authentication method so you shouldn't need
that line.
This is most likely security configuration issue so throwing code at it
isn't going to help - if you could get past security with code it
wouldn't be too effective
Make sure you've done this on the remote machine:
Enable WMI (Windows Management Instrumentation)[^]
Also, take a look in the registry on the remote machine.
If there's a key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa\forceguest
and it's set to 1, set it to 0.
You can also test using the Computer Management WMI Control snap-in.
Run "wmimgmt.msc", right click on the WMI Control and choose "Connect
to another computer". Try to connect to the remote machine. If it's successful
then your code is probably wrong. If it gives you access denied then
you probably have a configuration issue.
That's all I know. You should definitely ask on an IT newsgroup about enabling
remote WMI on Server 2003.
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Hello,
THe bit in the registry is 0 already.
Using wmimgmt.msc as you suggested just stays on connecting to windows management as if it hangs.
I will keep on checking other issues if I can think of any...
Thanks anyway...
|
|
|
|
|
arkiboys wrote: Using wmimgmt.msc as you suggested just stays on connecting to windows management as if it hangs.
Hangs connecting to the local machine, remote machine, or both?
Regardless, that's a bad sign - if you can't connect with the tool
designed to do what you're doing, then you can't expect your code
to be able to do it.
Again, ask IT people how to enable remote administration on the OS.
It can't be done with code. There's some good Windows administrator types
on the MSDN newsgroups. I'll post a question to the MVPs and see if I
can get you some info.
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
The target machine can not be accessed via WMI and it can not access any other machine from it either.
Thanks.
|
|
|
|
|
Hello,
I have developped a windows application using c#.net.
Now the owner of the business need to use this application from outside the local intranet. He want to use it as a web Site.
Is it any method to do that or do someone know another method that allow us to access the application through the WEB.
Best Regards
Bye.
dghdfghdfghdfghdgh
|
|
|
|
|
Well, you could always deploy it using ClickOnce[^], but I would check very carefully if your architecture would withstand using this application over potentially slow connections (I'm assuming that you have one centralized datastore here).
|
|
|
|
|
hello,
i am using an sql Database
is it possible to use the click once feature ??
best regards.
dghdfghdfghdfghdgh
|
|
|
|
|
Yes, but you'll have to be careful with regards to database authentication and security.
|
|
|
|
|
Pete O'Hanlon wrote: g ClickOnce[^],
how does it handle multiple request?
|
|
|
|
|
I have an application with a regular "main" or "parent" System.Windows.Forms.Form. Sometimes, I would like to display a dialog-looking form as a child form to the main main form. I would like the child form to meet these requirements:
1. When the child form is shown, no additional task is shown in the taskbar on the lower part of my screen.
2. When the child form is shown, it becomes impossible to access any controls on the main form. Basically, the main form can't be activated when the child form is shown.
3. When making the call to show the child form, the calling thread does NOT get blocked.
4. The child form can easily be moved anywhere on the screen, even outside of the main.
5. The child form is ALWAYS in front of the parent form.
How can I accomplish this? I am most grateful for any suggestions.
|
|
|
|
|
Form1 dialog;
private void button1_Click(object sender, EventArgs e)
{
dialog = new Form1();
this.dialog.FormBorderStyle = FormBorderStyle.FixedDialog;
this.dialog.ShowInTaskbar = false;
this.dialog.MaximizeBox = this.dialog.MinimizeBox = false;
this.dialog.Show();
this.Text = "Thread is not blocked.";
}
private void Form1_Activated(object sender, EventArgs e)
{
if (dialog != null)
dialog.Activate();
}
Hope this helps.
Greetings - Gajatko
Portable.NET is part of DotGNU, a project to build a complete Free Software replacement for .NET - a system that truly belongs to the developers.
|
|
|
|
|
That was pretty much exactly what I was looking for. Thanks a bunch!
|
|
|
|
|
arnold_w wrote: 1. When the child form is shown, no additional task is shown in the taskbar on the lower part of my screen.
Set Form.ShowInTaskbar = false;
As for the rest, Form.ShowDialog does all this for you, except for:
arnold_w wrote: 3. When making the call to show the child form, the calling thread does NOT get blocked.
The parent form still pumps some messages: are you sure you care that ShowDialog "blocks"?
If so, try:
private void button1_Click( object sender, EventArgs e )
{
new Thread( () => new Form2().ShowDialog( this ) ).Start();
}
Nick
----------------------------------
Be excellent to each other
|
|
|
|
|
|
Can anyone help me sort out the problem of validating an email id. I just want to know whether there is any way to find out to check whether an email id exists or not,without actually sending a mail.
I am getting the result as the mail id is valid for non-existing mail ids.I have used the smtp cmds within the code. Pls.....help me out in resolving the problem.
Thanks one and all for ur replies.Is there a way to find out by sending a mail and capturing the reply within the code.
modified on Monday, October 13, 2008 6:00 AM
|
|
|
|
|
I'm afraid you can't do it. There is no central registry of email addresses, so you can only identify a valid email by sending them a mail and getting them to reply back.
|
|
|
|
|
Pete O'Hanlon wrote: so you can only identify a valid email by sending them a mail
Checking the MX record notwithstanding. Granted not a perfect method for numerous reasons, but one step in between email-address-looks-valid and send-email-address-mail
|
|
|
|
|
J4amieC wrote: Granted not a perfect method for numerous reasons
It would be a fair start, but as you note - not perfect.
|
|
|
|