Modify Local Security Settings For A Remote Pc In Lan?
Mar 17, 2010how to modify local security settings for a remote pc in lan with vb.net?
View 3 Replieshow to modify local security settings for a remote pc in lan with vb.net?
View 3 RepliesI have an VB.NET 2005 application installed on my Windows 2003 Server.I try to access that application for other computer on my network. Read below:I get this error when running a remote VB.NET application.
System.Security.SecurityException: Request for the permission of type 'System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
I had the error on my computer running Windows XP. I am use to that, so I went in the FrameWork .NET 2.0 and set the security to FullTrust and the error disapeared. Now I have the same error on my computer that is running Windows Vista and when I go do the same security changes to FullTrust, it does not work. I still have the error showing.Is there some other configuration to do on a Vista machine to be able to run a remote VB.NET application ?
Im trying to get a list of owners of all the shares on a server. So far I have come up with the following:
colSWbemObjectSet = objSWbemServices.InstancesOf("Win32_SecuritySettingOfLogicalShare")
For Each objSWbemObject In colSWbemObjectSet
Dim securitydesc As Object = objSWbemObject.Setting
MsgBox(securitydesc.Owner.Name, MsgBoxStyle.Critical, objSWbemObject.Element)
Next
[Code]...
I am new to vb.net but know a little of VB6.
I have an application with the window caption of "Checker"
Inside of the application is a text box that has the text (window caption) "12345", but it is locked.
I would like to change the text to abcdefg or unlock the text box.
Im making an application that uses Google Maps Mobile (maps.google.com/m) and it uses a location sensor to give you results. How can i set that up? I would also like to try it with Google Buzz Mobile (m.google.com/app/buzz).
Dustin_K "There are 10 types of people in the world: those who understand binary and those who don't."
I have a VB .Net Application that wants to set an environment variable in the System settings. According to the MSDN, the System.Environment.SetEnvironmentVariable can do this, for example:
System.Environment.SetEnvironmentVariable(_ENV_NAME, value, EnvironmentVariableTarget.Machine)
Problem is, when I execute this code I get a SecurityException. I assume I need to have administrator rights (I am running on Windows 7).I have done some searching in the forums but cannot find a good example of manipulating system settings that require elevated privileges. I have similar issues with modifying a registry key. The variables and keys need to be present for all users of the machine, so that is why I want to modify these settings. I don't even know where to start.
we have several applications in Vb.Net using the built in log system (My.Log) to write log information. Until now this system was configured by the application.config file before execution but now we want to let the user to choose some options.
Is there a way that does not requires to parse the XML file and process it? Is there available something like My.Settings that will do the dirty job done?
An example would be to be able to modify the DefaultSwitch value from Verbose to Warning or changing a property of the FileLog like the maxFiles attribute:
<switches>
<add name="DefaultSwitch" value="Verbose" />
</switches>
<sharedListeners>
[Code]....
I have created a program that allows me to remotely access computers on my network (not all done by me i found some code online) however i want to modify that program to allow me to connect to computers not on my network. How can i go about doing this? My program consists of a client and a server. When the server runs it listens for the client on the client side i enter the IP address and it connects so i can send remote commands to the remote system.
View 4 RepliesI'm working with Crystal Reports in VB.NET in Visual Studio 2005.I have a List(Of Stuff) that I've sorted according to one of the object's members.I've verified in the debugger that the list is sorted correctly.When I define my list as the data source, as in
rptDetails.Subreports.Item("rptSubReport").SetDataSource(theListOfStuff)
and view the report, the list is reversed.So, looking for a workaround, I said, "OK, I'll sort the list backwards before binding it."The list still appeared backwards in the report.So something's happening, and I think it's within the report definition, because I don't know where else the sort order could be changed
How to insert data from local SQL server to remote SQL server (without using linked server) like below?
insert * into [remote server].[northwind].orders
from [local server].[northwind].orders
I put together a small app I want to use on my local network for service monitoring across a few of my servers.
I'm using vb.net express 2010 with system.serviceprocess imported The problem I am having is that my code only seems to work locally, and will not retrieve the service data for any server on my network.
For example, my local machine is called "office-pc", and when running the app on it, I get all the service information.
Dim localServices As ServiceController() = ServiceController.GetServices("office-pc")
For Each localservice As ServiceController In localServices
ComboBox1.Items.Add(localservice.DisplayName)
Next
But, if I want the service info from my web server called "casper", I use the same code, but i change the GetServices() parameter like so;
Dim localServices As ServiceController() = ServiceController.GetServices("casper")
For Each localservice As ServiceController In localServices
ComboBox2.Items.Add(localservice.DisplayName)
Next
After a few seconds delay, nothing happens, ComboBox2 remains empty.
It was my understanding that GetServices() would get the local machines service info unless a machine name was specified, which in both cases is true.
So why isn't it working? Do I need to set something up on the network servers first?
I'm posting this in the vb.net as I will be using visual studio to perform the task. So here is what I am trying to achieve or at least achieve it more efficiently than what I am doing now.
So I have two identical database setups, both with a table , let call it table tblUsers. The local database is edited through vb.net and is a Access database. The second database is hosted on a remote server and is a MySQL databse.
Currently I have no problem connecting and editing either database through vb.net. I'm using OLE DB to connect and handle the Access database and ODBC 5.1 to connect and handle the MySQL database.
Here is what I would like to do:
User opens the program Presses the "update local" button
The program updates the local database to whatever the remote database is The user uses the program to edit fields in the local database
When done, the user presses the "Update remote" button and the remote database fields that have been edited with the program in the local database will be updated to the remote database.
Currently, the only way for me to do this is to go line by line in a for next and use a command builder to compare each field and update that way.
In an app I am writing I need to be able to display the current settings of the following:- Windows "automatically restart on error" setting from advanced, startup and recovery section Paging file size and whether it is custom size or set to system managed Is this at all possible? perhaps VB has a function to do so I cannot find, or perhaps I can do by querying a registry value?
View 6 RepliesIn PHP you can use fopen(Path) to read from a file. The Path can be either a local file (in the usual formats /etc/file or c:file.txt) OR it can be a URL in which case PHP will open a http connection and read from the remote location
I'd like to achieve the same in VB.Net. I'm not aware of any framework function which will achieve this.
I'm currently pattern matching the path against a Regex for a valid URL - If I get a match, I open the file using a httpwebrequest otherwise I try to use the local file system.
Private Function RetrieveBGImage() As Image
Dim Ret As Image
If Not (IsURL(_BackgroundImage) Or IsLocalFile(_BackgroundImage)) Then
Throw New Exception(String.Format("Unable to load from uri ""{0}""",
[Code].....
NB: I'm aware that the logic above is inefficient and actually ends up calling IsURL() more than it has to
I am making a VB.NET application that can download/backup the database that is currently on a remote server. I have Remote Server IP,Username,Password and Database name. I am also able to connect to it. But I don't know what to do after connecting to it. I don't know what all files are need to be backed up. (I think database and log file both must be backed up, I am not sure).
View 1 RepliesI am looking for a way to determine whether a file spec that I provide is local or remote. I am using VB2008. I have a VB6 app that does this by using the PathIsNetworkPath API call, but I am hoping that I can use the .NET framework instead with VB2008. Google gives lots of results on how to determine if a network path is available, but not specifically what I want.
View 4 RepliesI have this partially working but only shows printers for one user, need all local and network printers mapped for ALL users on a remote pc so I can migrate them, I know I need to do some sort of for each method but not sure what will work
[Code]...
i'm working in VB.net to create a program that checks the text in a remote text/html file against a local text file, and if the do not match, the program then does something. I keep getting an exception and i can't figure it out.
Here are the details of the exception:[code...]
I'm not at all used to working in VB, and i'm not sure if i did that HTML right either, so that could be the problem.
I have an off-line project. User uses a laptop to input data off line into local SQL server express. Once connected to domain (on line), local data will sync with remote SQL server using sync framework. (It is done, works fine)One job left:Since another user used another program to update some tables in remote SQL server, such as CUSTOMER, SHIPINFO, my off-line program need to update these new data once connect to domain.Here is what I design in Pseudo (take CUSTOMER as example)
1) In remote SQL server, create a store procedure (sp_customer) to select all CUSTOMERS
2) In application, create a dataset (dst_customer) based on sp_customer
3) Insert all customers data which is in remote SQL server but not in local SQL server based on CUSTOMER_ID
add a domain user to a local group on remote computers
View 2 RepliesI can get the local computer name on a RDC session using Environment.GetEnvironmentvariable("ClientName") if the application is 32 bit and Server is 32 Bit or when app is 64 bit and server is 64 bit
How can I get the local computer name from a 32 bit application when the server is 64 bit
Environment.getEnvironmentvariable("ClientName") returns an empty string
I have a VB.net 2008 Windows forms application which runs on W2k3 server and is accessed by 15 Remote Desktop users I would like to be able to store information such as the default printer for each RDC session plus other info To be able to do this I need to know the local computer name (or some other identifier) so I can store computer specific information (such as default printer) how I can get info about the RDC session from VB
View 1 RepliesI need to impersonate with an account that is local on the remote server not the server where the application is running.
View 1 RepliesI need to change my application settings to use roaming profiles. Therefore I changed the roaming property of the according settings to True. Unfortunately I get now the behavior that the settings are still read from the local store (if they are existing there), but are written correctly to the roaming store.
What's the suggested way to change application settings from local to roaming?
I am using My.Settings to store the path of my crystal reports. Now I wish to place my crystal reports within local execute path. So how do I set within My.Settings to detect the local run path?I tried putting application.localuserappdatapath in application settings which return back as a string.
View 2 RepliesThe following steps give a Guest shutdown policy.
1- Click run, and type the gpedit.msc, to start "Local Group Policy Editor".
2 -Expand "Computer Configuration" -> "Windows Settings" -> "Security Settings" -> "Local Policies" -> Then click "User Rights Assignment".
3- In the Policy window, Select "Force shutdown from a remote system", double click it, it will pop a properties window.
4- Click "Add user or group button", add a user and name it Guest.
I need to know if it's possible to manipulate and add the user or group programmatically. I'm using Visual Basic 2008.
how to use directory services for listing the members of the local administrators group on a remote pc in the following format?
[Code]...
I want to know how to connect to a remote system having some shared folder.(ex, \myservermysharedfolder).Actually, I was supposed to copy a particular file which is available in a shared location of a system. To copy that file, first i need to connect to that system with an user id and password.I know copying of file (), But not getting clear idea on how to connect to the shared folder. I have tried with System.Management class, but no use..
View 2 Repliesusing vb.net I need to access the regional settings on a remote server and check to see if they are en-gb
View 4 RepliesI'm developing application in VB.NET 2008. Here i have Mask Text Box with mask "0000/00/00" (i,e yyyy/mm/dd ).
but when i change the system date separator to "-" in control panel then all mask control is taking 'yyyy-mm-dd'.
I don't want to change mask text box date format based on local system setting. Always this should accept only yyyy/mm/dd .