How do I shut down or restart my Windows computer via command prompt?
Microsoft Windows offers several ways to shut down or restart your computer, one of which is via the command prompt.
To access the command prompt window from Windows 8, 10 or 11:
- Go to the Start menu
- Type cmd in the "Search field" and open them with administrator privileges
- Press Enter
From an open Administrator command prompt window:
Type shutdown, followed by the option you wish to execute:
- To shut down your computer, type shutdown /s
- To restart your computer, type shutdown /r
- To log off your computer type shutdown /l
For a complete list of options type shutdown /?
After typing your chosen option, press Enter. The computer will execute your desired task
Multiple connections to a server or shared resource by the same user, using more than one user name, are not allowed.
Windows appears with "\\ip_address\shared is not accessible. You might not have permission to use this network resource. Contact the administrator of this server to find out if you have access permissions.
Multiple connections to a server or shard resource by the same user, using more than one user name, are not allowed. Disconnect all previous connections to the server or shared resource and try again."
Apparently, first message has nothing to do with the problem.
I disconnect all previous connections.
I used the basic command
DISM .exe /Online /Cleanup-image /Restorehealth
sfc /scanow
net use * /d
- From the Command Prompt, type:
net use /delete \\servername\foldername(where the servername\foldername is the drive that you wish to delete.)
The net use / delete command did not work for everyone, but the following commands do work:
net stop workstation /y
net start workstation
How do I automatically run an application when the system starts
How do I automatically run an application when the system starts - REGISTRY
Registry entry could do this.
Automatic launch of the application can be done by entering an entry into the Windows registry - "HKEY_LOCAL_MACHINE" or "HKEY_CURRENT_USER"
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run
"c:\Program Files\calc.exe"
or
Add a new startup application for current User
Open your registry and find the key:
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run]
For each program you want to start automatically create a new string value using a descriptive name, and set the value of the string to the program executable.
For example, to automatically start Notepad, add a new entry of:
"Notepad"="c:\windows\notepad.exe".
Remove a startup application
If you're trying to remove a program and can not find it in the StartUp folder (usually C:\WINDOWS\Start Menu\Programs\StartUp), then it may be launching from one of the registry keys below. To remove it, delete the value associated with the program you want to remove.
[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run]
[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\RunOnce]
[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\RunServices]
[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\RunServicesOnce]
[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\Winlogon\Userinit][HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run]
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\RunOnce]
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\RunServices]
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\RunServicesOnce]
[HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Windows]
How to start Analysis Services that state is "Change Pending..."?
SQL Server Analysis Services' state is "Change pending...", and I can't start it.
When I try to start it, they occur error, show information "The request failed or the service did not respond in a timely fashion. Consult the event log or other applicable error logs for details".
Where can I see the "log" and how can solve this problem?
How can I start this service?
Here you should check error log of analysis services: Usually, you will get problem along solution, but in case log does give you specific information then.
C:\Program Files\Microsoft SQL Server\MSAS12.MSSQLSERVER\OLAP\Log
In case you don’t get valid information, there are 2 options left
Go to task manager and kill Analysis services “msmdsrv.exe process”, this will stop services and then you can restart
Page 30 of 93

