0
votes
3answers
356 views

deny local logon for a new user through command line windows server 2008

I am creating a local user account that I want to be able to connect over ftp, but not log on to the server, I believe the way to do this is to deny local logon but am unsure how to achieve this via ...
1
vote
1answer
27 views

command to add permissions to a folder for a local user in windows server 2008

as part of an installer I need to create a user with limited permissions to add the user I will use net user "<username>" <password> /add /fullname:"<username>" I now need to ...
1
vote
1answer
323 views

Full Information from Terminal Services Manager (tsadmin.msc) via command line

I would like to get the full session information that is presented in the Terminal Services Manager via the command line or PowerShell (so that it can be used in automation) or at the very least the ...
-1
votes
2answers
89 views

Command only working when put directly in command prompt, not in batch file

On my SBS 2011 I have a batch file called wakeup-nas.bat, with the following contents: wol.exe 5475e0d59ffa wol.exe is an executable for sending wake on lan packets. It is in the same directory as ...
5
votes
3answers
470 views

Can I start a program from command line for another logged in user?

We have a Windows Server 2008 machine running Terminal Services. When users login, a custom program is launched and resides in the system tray that gives them some customized hotkeys for our company. ...
0
votes
1answer
65 views

single or set of patches from windows update?

Is there a way to install several patches by kb or other means and only install those specific without manually downloading the patches? I want to use automatic update services but don't want every ...
1
vote
1answer
529 views

Pentaho Windows Batch file not running when executed on Windows Server 2008

I'm running a Pentaho Kettle Kitchen batch scripts on Windows Server 2008. When I launch the batch file, the Windows Command prompt pops up and then disappears. I've changed all files in the folders ...
0
votes
1answer
209 views

Path not loaded for user when connecting with SSH

I have an Windows 2008 Server Instance running on EC2. I have installed an application and added it to the path and it is now available to my Administrator user from the Command Line. However, when I ...
0
votes
1answer
218 views

Change Password on Domain Account from CMD Line

Quick background. My organization recently changed from Lotus Notes to Microsoft Outlook. I have some production users that were formerly using Lotus Webmail that will be using Outlook WebApp. With ...
1
vote
1answer
438 views

Change logon /disable Citrix XENAPP 5.0 farm wide or local

I want to disable logons before I do maintenance on a single server in the farm. If i run change logon /disable will that disable logons on that server or will that disable logons on the entire farm? ...
3
votes
2answers
1k views

How to configure Users permissions in Windows Server 2008 R2 by command line?

I have to create about 800 users in our Windows S 2008 R2 and I'd like to make a few settings with them. Create user: net user Joe 1mb4pASs /add /fullname:"John Smith" /passwordchg:no /comment:"no ...
31
votes
2answers
22k views

How can I connect to a Windows server using a Command Line Interface? (CLI)

Especially with the option to install Server Core in Server 2008 and above, connecting to Windows servers over a CLI is increasingly useful ability, if not one that's very widespread amongst Windows ...
1
vote
1answer
821 views

Win2008Server R2 - no window running .bat file via task scheduler

I'm running a couple of batch files via Task Scheduler that call rsync. The .bat files work great when run manually and appear to be running fine via TS as well. HOWEVER, it does NOT open a cmd ...
2
votes
1answer
1k views

How to export User Rights Assignments and import them on another machine

How would one export all of the user rights assignments from one Windows Server 2008 box and import them on another. Neither would be on a domain so this would just be local security policy.
8
votes
2answers
1k views

Is there a way to show an RDP session's encryption level from the commandline/Powershell?

For Windows 2008, I need to create a script that will show whether connected RDP sessions are set at "high" encryption or something else (e.g., "compatible"). Does anyone know of a way to get this ...
3
votes
2answers
996 views

Create a bridged network connection using only the command line

I want to bridge two network connections on a Microsoft Hyper-V Server 2008 R2. As I'm essentially using a "Server Core", GUI is not available, so I can't use the usual way. (Right click the network ...
1
vote
2answers
145 views

How to see what drive letters are mapped for network drive?

Is there a way to see what drive letters are in use for network drives?
5
votes
2answers
2k views

Installing an SSL Certificate in Windows Server 2008 using powershell

Is it possible to Install an SSL Certificate in Windows Server 2008 R2 using powershell? If it's not, is it possible with cmd command line? I am doing it with mmc now but would it be nice to do that ...
1
vote
0answers
118 views

Windows 2008 Scheduled Tasks and Parallel instance issue

I have a scheduled task launching a bat file which runs a CLI PHP script. The scheduled task is configured to run every 5 minutes, and run multiple instances in parallel. However, windows is ...
0
votes
2answers
698 views

Disable a microsoft update item via command line

We have 5000+ servers and need to hide the 2008R2 SP1 so that our users don't accidentally install the service pack. I can use PSEXEC, powershell, ect. Is there a way to do this from command line ...
0
votes
2answers
2k views

Using DSMOVE to move inactive computers to a new OU

in regards to this post of mine Clean up Active Directory I was trying to run the command dsquery Computer -inactive 52 | DSMOVE -newparent OU=Test,OU=Devices,DC=domain,DC=com,DC=au When I run ...
6
votes
1answer
4k views

What is the Command Line Syntax to create a Windows Local User and Add that User to a Local Group?

What is the command line syntax to create a windows local user and add that user to a local group? Can I do it with something short and simple with net commands?
3
votes
2answers
853 views

How do I change permissions on an existing folder share from the command line without having to delete the share and recreate it?

I used the following to create a folder share called "Running Virtual Machines" on a Hyper V R2 server: net share "Running Virtual Machines"="C:\Hyper V\Running Virtual Machines" Now I need to ...
9
votes
4answers
3k views

Unlock Windows AD account & assign *temporary* password via command line?

Joe Brown is on the phone. He is locked out of Windows because he has forgotten his password. We could reset his password via Active Directory Users and Computers, but ADUC is very annoyingly ...
1
vote
2answers
918 views

Can't move directories across disk boundaries with “move” at command line?

I need to move a huge list of directories from disk C (internal) to disk E (usb) on a Windows Server 2008 box. I'd planned to just make a big .bat file with thousands of "move" commands. Low-tech, but ...
0
votes
1answer
378 views

Is there a command line script I can use to check if servers have SQL Server 2008 DMO installed?

SQL Server 2008 does not install DMO by default. Is there a function or script I can use from the command prompt to check remote servers to see if DMO has already been installed? We were using a ...
3
votes
1answer
5k views

How to list environmental variables on Windows Server 2008 R2

How can list environmental variables on Windwos Server 2008 R2 using command promt?
1
vote
2answers
1k views

Scripting a Windows 2008 Cluster from Windows 2003

Our current environment is all Windows 2003. When we migrate a new version of our service to the cluster, we first stop the service with a command like: cluster.exe <clusterName> resource ...
3
votes
1answer
10k views

Determine machine's logon domain from command line

Trying to figure out if there is an environment variable or another method to get a given machine's logon domain from simple command line script. The variable %USERDOMAIN% will provide me with the ...
1
vote
2answers
2k views

Does anyone have a Windows “at /every:” example to explain how to setup a batch file to run every day?

Microsoft documentation for the "AT" scheduler command shows that it has an /every: switch to schedule a script to reoccur on specified days. I've done it before, but I can't remember the syntax for ...
5
votes
2answers
4k views

Terminal Server - Group Policy prevent command line

I have a Windows 2008 Terminal Server. Terminal Server Configuration(licence server, session broker, etc) is managed by group policy. If i want to disable logon via: change logon /disable The Error ...
2
votes
3answers
2k views

Remotely stopping website in IIS7 on Windows 2008 via command line?

How do I remotely stop a website in IIS7, in Windows 2008, via command line?
1
vote
4answers
1k views

System cannot find file even when it exists

I have a file that my OS (Windows 2008 Server) / File System (NTFS) are having trouble with. Here is a 'dir' of the directory: 07/20/2009 11:28 AM <DIR> . 07/20/2009 11:28 AM ...
2
votes
3answers
7k views

Windows Server 2008, “The requested operation requires elevation”

Sorry for the newbe question, but I'm a developer who hasn't touch a Windows Server in years. A recent project has required me to setup and configure a development VM running Windows Server 2008, IIS ...