Error 1219. Multiple connections to a server or shared resource by the same user - windows-xp

I am trying to map network drive, but get error 1219 on Windows XP:
net use z: \\serverA\tests password /user:serverA\alex
I have tried
net use * /del /yes
But it has no effect, and the
net use
shows empty list.
\\serverA\tests is a valid path, as I can open it in Explorer.
What can be done?
EDIT: After reboot it works. But any ideas are still very welcome.

This will usually be caused by a handle left open. Download Process Explorer to find it, and try to close the program that has it open (don't close the handle itself). If it turns out to be explorer.exe, it's probably a buggy preview handler/shell extension.
If you can't find the handle, you can always try using the IP address of ServerA to create a new connection with different credentials, e.g.
net use z: \\10.1.2.3\tests password /user:serverA\alex
Yes, sorry - use Find Handle or DLL with \\ServerA to find the program.

To open it in Explorer it has to be able to logon using your credentials (or the ones you provide when it eventually asks you for credentials).
After that you have a connection and would have to disconnect before you could remap the share with different credentials. (see "Disconnect network share")
You could map it persistently - that way it would always use the credentials you provide.

Related

How to set Powershell's Default Browser eg when opening MS auth popup

OK so this is a tough one, because googling "set powershell Default Browser" only returns results for setting the system default browser in Powershell. What I want to do is change which browser Powershell uses to open an auth prompt when I attempt to use the Exchange Online Management module. I need to change it because I set "use always" when I chose Edge the first time it popped up, then received a message that Edge is blocked by your administrator. (Weirdly, Edge is not blocked normally, only in this context.) I'm running powershell as local PC admin. (Could this be an Azure/m365 policy blocking edge launch from powershell? Intune managed device. ) I need to change it to Chrome.
Using PS7 as 5 just told me "browser unsupported" (guessing it defaults to IE)
Thanks
Tried numerous google search varying wording, still getting same results about system default browser.
Checked properties of powershell, no browser settings apparent unless I'm blind.

How to give File access to Tableau server?

I have a .twb file created using the excel data source that is located in some network file path.
On publishing to server I get this error.
How to resolve this?
I need to provide some access for "Run as user" in my server machine,how could I do that ?
Ensure that when the workbook is created, a connection to the Excel file is created using the full UNC path
Ensure that the Tableau Server Run As user is able to access that file using the UNC path specified in the workbook. An easy way to test this would be to open Windows Explorer as the Run As user, then paste in the UNC path. If the Excel file opens, then you're good to go.
If you still have issues, test access to the file while logged into the Tableau server to make sure there is no firewall or port blocking access from that host. Often Excel isn't installed on servers for security reasons, so the test is not whether Excel opens the file, but whether you can view the contents from the server as the Run As User, even just using the type command at the console.
If you can't get your network access fixed, an alternative is to build and publish extracts to the server. There are multiple ways to accomplish that

RHEL 6 No protocol specified, can't open display

I got this when I try to open nco_event in RHEL 6.3
[netcool#noi bin64]$ nco_event&
[1] 19962
[netcool#noi bin64]$ No protocol specified
Fatal Error: /opt/IBM/tivoli/netcool/omnibus/platform/linux2x86/bin64/nco_event: can't open display
Any idea to solved that?
When executing the command xhost, you are probably receiving
No protocol specified
xhost: unable to open display ":0"
Issue is your user is not allowed to access the X server.
You can use xhost to limit access for X server for security reasons.
Switch back to default user and execute xhost again. You should see something like
SI:localuser:nuwan
The solution is to add the oracle to access control list
xhost +SI:localuser:youruser
Now switch back to original user "youruser". It should be working now.
Do you use Putty & Xming to connect to this machine?
If not, check the Xorg server on your client.
You can also check the $DISPLAY variable
Follow this while while launching Xming :
Launch Xming and select the style you wish to display the X server output.
Hint:
Select Multiple Windows and your X applications will look like they were launched from Windows.
Leave Display number set to 0 Click Next.
Select Start No Client and click Next.
On Server Options, check the box title Disable Server Control. Leaving the box unchecked can give you an "unspecified protocol error" later down the road.
Click Next and save your configuration.
This will create a quick way to launch Xming later.
This will solve "No protocol specified" error .
Thanks.

Run batch file on remote pc *visibly* to logged on user

I've got a batch file dmx2vlc which will play a random video file through VLC-Player when called.
It works well locally but I need this to happen on another machine on the network (will be adhoc) and the result (VLC-Player playing the video) must be visible on the remote screen.
I've tried SSH, Powershell and PsExec, but both seem to run the batch file and the player in the session of the command line, even when applying a patch to allow multiple logins.
So IF I get to run the batch file it is never visible on screen.
Using Teamviewer and the like is no option as I need to be able to call all this programmatically from my dmx program.
I'm not bound to being able to call the batch directly, it would be sufficient for me if I could somehow trigger it to run.
Sadly latency is a problem here as we are talking about a lighting (thus dmx) environment.
Any hints would be greatly appreciated!
You can use PSexec if the remote system is XP with the interactive parameter if you state the session to interact with, 0 would probably be the console (person physically in front of the machine).
This has issues with Windows Vista and newer as it pops up a prompt to ask the user to change their display mode first.
From memory, you could create a scheduled task on the remote system pretty easily though and as long as it's interactive the user should see it.
Good luck.
Try using web interface. It is rather easy: VLC is running http server, and accessing particular URL from remote machine will give full control over VLC. Documentation can be found here

Check if someone is using a remote desktop connection to a computer

I want to check whether a computer is being used by a remote desktop connection from another computer or not.Is there anyway to do it in C#.
WTSEnumerateSessions is the Win32 API to use.
Once you've found the right P/Invoke signature for calling it, you can look at the names of the windows stations returned