windows 8 remote shutdown: Access is denied(5) - windows

How to shutdown a remote computer in windows 8? I had tried certain commands like psshutdown, shutdown.exe etc.Everytime i am getting a message called "Access denied(5)". Help me out.

The remote computer might have its firewall configured to prevent remote access from other computers. That's why you keep getting the access-denied message.

Related

Permissions running NiFi on Windows 2012 Server

At $employer we have a customer trying to run NiFi on Windows 2012 server. We have helped them configure it as a windows startup task using the Task Scheduler. I realise this may be more of a ServerFault question but there's nothing much about NiFi on there.
When this is run as user with local admin rights, it runs perfectly. When run with the user created specifically for this service (with the required "Run as a batch" permission), it starts up and then promptly shuts down with a permission denied error on a TCP connect.
Is there a specific Windows permission that is needed for NiFi to run as a batch and listen on TCP ports?
On *nix systems, if the TCP port is below 1024, you need to run as root. I am not sure if this applies to Windows systems as well (surprisingly little documentation to answer this common question directly), but that could be the cause -- when run as an Administrator this works; when run as another user it fails. Can you share the explicit error you get from the nifi-bootstrap.log and/or nifi-app.log files?

Unable to RDP into windows?

I have a windows 16 machine on AWS. I installed Cygwin on it so that I can connect it as a jenkins slave. But once I connected it as a slave, I am NOT able to MSTSC/RDP into the machine. I can still access the machine via ssh/cygwin.
( I repeated the process several times and ended up losing rdp connectivity everytime )
This is what is actually happening now :
The EventLogs on machine are saying that logoff instructions are being initiated by the RDP client.
RDP client is saying "The disconnection was initiated by the user logging off their session on the server"
Visually, if seems like the remote connection was setup for a split second. Then it vanishes.
So, I believe that somehow my Administrator account is not able to maintain the session. It's getting disconnected as soon as it connects.
Can you suggest me which settings should I debug into ? I am able to extract a few details from my machine using ssh, but I can't explore all the settings.
If you are familiar with this behaviour please suggest me what settings might be reponsible for this.
Addition info:
If I restart my ec2 , it will never come back because a status check starts failing
I am able to telnet to 3389 port. So I guess, firewall rules are not an issue.
I have tried various RDP clients, on MAC as well as on Windows.
I found this in event log (ProviderName: Microsoft-Windows-RemoteDesktopServices-RdpCoreTS) on my remote windows machine:
5/10/2019 3:13:44 PM 103 Information The disconnect reason is 12
.
.
.
5/10/2019 3:13:43 PM 228 Warning Disconnect trace:CUMRDPConnection Disconnect trace:'calling spGfxPlugin->PreDisconnect()' in CUMRDPConnection::PreDisconnect at 4477 err=[0xc], Error code:0xC
It turns out the my problem was occuring due to some cleanup utility deleting up the system files required for mstsc.
Everything started working fine after I switched off the cleanup utility.
Thanks for the help though.

How to restore access to a windows shared folder after host password change?

I have a shared folder on a windows 10 host machine. I could access it from a windows 10 client machine, where I had set "remember credentials" when first accessing the share. I changed the password on the host. Now the client cannot access the shared folder. That was expected. But I could not find a way on the client to allow the user to re-establish access to the shared folder.
I expected it would ask for credentials again. However I got a network error saying that windows cannot access the host machine.
Based on a number of entries on various forums, I tried a few things. The credentials manager on the client does not show the host. I stopped and restarted file and printer sharing on the client, without any change in the result. Network diagnosis and the windows troubleshooter gave no help.
The problem was due to some previous connections remaining in the network table, even though disconnected, as presented by the "net use" command from the command prompt.
>net use
Status Local Remote Network
--------------------------------------------------------------------------
Disconnected \\192.168.1.71\IPC$ Microsoft Windows Network
Disconnected \\HOST\IPC$ Microsoft Windows Network
After deleting them (via "net use /delete") the next attempt to access the host asked for credentials. Yay!
I began the path to the solution when I tried
net use z: \\host\shared /user:admin password
which gave system error 1219 stating multiple connections to a server are not allowed. Disconnect all previous connections and try again. Obviously, even though known to be disconnected, the entries prevented reconnection.

Teamcity ERROR MESSAGE for Server Url?

I am setup teamcity on my windows 7 laptop. I can connect to it on the server with the windows tray notifier. When I try to connect to it from another machine, i get the "Server URL IS INVALID ERROR? Please Help!
Your Windows 7 laptop probably doesn't allow incoming traffic to TeamCity from other machines. You can use the Windows Firewall configuration to allow it.
Also, isn't this the same question as this one: https://stackoverflow.com/questions/1751761/i-need-the-correct-teamcity-windows-tray-notfier-url
Also, this may get better reception on SuperUser!

windows service command RPC error (sc.exe or psservice)

I am getting the following error when i try to run the command from remote machine
C:\>sc \\machinename query
[SC] OpenSCManager FAILED 1722:
The RPC server is unavailable.
I have admin privileges to that machine.
Any solution let me know.
In my case I got this error because I was messed up the name of the server I was targeting. It will give you this error if you accidentally point it at nothing. In my case, the server name was a variable being defined from a text document so it took a while for me to realize.
Also noteworthy: There should actually be two slashes before the machine name (I'm sure it's just a typo, but just in case it could confuse anybody).
The error 1722 is : The RPC server is unavailable.
Verify if RPC service (Remote Procedure Call (RPC)) is running at remote machine with telnet, try at command line:
*>telnet your.server 135
If no errors occurs the RPC server is probably ok, than check system events for issues.
6 years later but anyaway.
Enable File and printer sharing on the remote computer and it will work.
https://support.microsoft.com/en-us/kb/323790
I tested on my localmachine
I tested from another machine on the network
SC is nice..! :)
You need to make sure that the Client DNS service is not stopped. This fixes the problem.

Resources