-1
votes
0answers
19 views

Is it possible to script 'duplicate display on 2 & 3' in Windows 7? [migrated]

We have about 300 computers that have three displays connected to them: One DVI, one DisplayLink USB/DVI, and and HDMI projector. We would like to duplicate 2 & 3 (USB & HDMI). Windows Key + P ...
2
votes
1answer
99 views

Server Reboot Script - No Credentials

I'm looking at running a script to reboot a Windows 2012 server nightly, and all the guides seem to be for using scheduled tasks. As far as I know though, a change in the admin credentials will break ...
0
votes
1answer
38 views

VBscript - returning the path & size of a file

I would like to add a piece of code to SYDI that would return me the location & size of a specific file. For example, a server "X" has a DB file(s) & path like this: ...
0
votes
2answers
104 views

Copy-item FileSystem provider error

Copy-item cmdlet is not working as expected, i don't understand why. This is my code : $Source = "C:\folder1" $Destination = "\\172.22.0.115\c$\folder2\" $Password = ConvertTo-SecureString ...
0
votes
1answer
17 views

How to catch system events when a program is being updated and robotize routine steps when you update software?

I'm a support engineer for an accounting program. The program runs under Windows. I have to update many of this accounting software bases daily. I mean the software is always the same. But users may ...
1
vote
1answer
65 views

Need to get a list of all users within a subnet of servers

I am looking to write a batch or vbs script to gather all users (local to the server. ie. administrators or a local account(not ad users)) on a collection of servers inside my network. I assume I ...
3
votes
3answers
120 views

Update a network driver through GPO/AD

Our organization has just deployed new computers with Windows 8.1. Roughly 50 of them. We've run into an issue with the driver on the new computers which is flooding the network with ipv6/multicast ...
2
votes
2answers
1k views

Powershell: Single Script to “clean” multiple folders of files older than

I would like to create a maintenance script that would run on each of our servers to clean out common drop/archive directories. Preferably the script would use a reference file for the folder path ...
3
votes
1answer
115 views

Change shortcut arguments via script

We have a program here that requires every user to have a shortcut on their desktop that points to an ini file. Each file is unique to the user. Recently, we've done a new install of the application ...
0
votes
2answers
92 views

Execute script on remote machine which is not in windows domain?

Requirement: As part of deployment procedure I have to execute scripts on target servers. Problems: I don't want to log-in into every server using RDP just to execute a script. Some servers are not ...
1
vote
0answers
134 views

Reconnect Windows Network Drive after network connection has been established

User uses a piece of software (simple database and front end app) that connects to a database stored on another workstation, by way of mapped drive. This mode of access is supported by the software ...
-1
votes
1answer
449 views

Vbscript proxy settings

I'm trying to create a script that allows the user to choose which proxy settings want to use among several possible. The changes are applied correctly but takes about 20 or 30 seconds to appear at ...
1
vote
1answer
171 views

Automatic Saving of Windows Event Logs [closed]

I'm looking for a way to automatically save off Windows security event logs from several servers to one central location (connected on the network and domain). I want to be able to do this on a ...
4
votes
1answer
286 views

Run specific script after every Windows Update

Is there a way to run a specific script each time Windows update completes (i.e., after reboot or after an update that doesn't require a reboot)? My application is suffering from MSCOMCTL.OCX ...
1
vote
2answers
80 views

computer startup script reporting success to a server

I am using Group Policy to deploy a computer startup script that tries to uninstall one program and install another. I need this script to report its status (whether a certain file exists on the ...
-2
votes
1answer
535 views

Script to copy down portions of a roaming profile [closed]

I'm currently working on migrating users to Windows 7 from XP. We use roaming profiles. Xp creates a folder named "Profile", while Windows creates "Profile.V2". Theses folders are independent of each ...
1
vote
0answers
576 views

Powershell Script Hard drive Inventory

I've created a script to get hard drive information from our servers. The script use WMI to query the Win32_LogicalDisk class and returns "Size (GB)", "Free Space (GB)" and "Free Space (%)" for each ...
0
votes
0answers
70 views

Batch script terminates too soon

I need some help with Windows batch/CMD scripting. I wrote a script to record mic-in to a MP3 for 12 hours. It runs ok when running it manually. It will run with task scheduler too - just that, ...
1
vote
2answers
167 views

Running a script periodically via a GPO

I search a way to run a script each hour via a GPO accross every computers on a domain. The only way I found is a GPO which create a scheduled task. Anybody have a better idea ?
0
votes
3answers
1k views

Local login script to delete folder of currently logged in user

How can I create a login script that will delete the contents of the folder below, each time a user logs off of a PC? (We have a shared PC that about a dozen users use, for a particular program. That ...
0
votes
1answer
295 views

How to reference Domain-Admins with icacls?

I need to reference the "Domain-Admins" group in a batch file. The line in question looks like this: icacls "test\folder" /grant mydomain.com\Domain-Admins:F ... and works as expected. But how do ...
-1
votes
2answers
71 views

Mass create txt file in each folder [closed]

I have a directory with a bunch of folders and I want to create a text file for each folder containing this string: Visit http://www.example.com. How can I do this with windows cmd?
0
votes
1answer
682 views

Export hardware specifications to a spreadsheet for Windows Server

I have a bunch of servers : Windows 2003 and 2008. I just wanted to export these hardware specs to a spreadsheet: cpus : num processors, clock speed, etc total hard disk space total used disk space ...
0
votes
1answer
254 views

powershell script to move backup files

I want to zip sql bakup files and move from one directory to to another directory within a system using powershell 1.0 can you help me since am a beginner
2
votes
3answers
652 views

Recursively move thousands of files into subfolders windows

I have a Windows Server with >300,000 images in a single folder. I am feeling a performance hit on the filesystem and I would like to move them into subfolders as has been suggested by many others. ...
1
vote
1answer
85 views

Generic script to print files of various types in Windows

Is there a command or script in Windows to print a file (various file types such as .doc .xls .txt .pdf) to the default printer? As far as I know one usually has to execute the relevant application ...
1
vote
1answer
81 views

FOR works at prompt, but not in script file?

As part of a task that I am working on for a customer, I need to make some modifications to the enterprise logon script. Windows command-line is definitely not my area of expertise, but I am doing OK ...
2
votes
1answer
2k views

How to Extract command-line output into a Variable?

As part of a task that I am working on for a customer, I need to make some modifications to the enterprise logon script. Windows command-line is definitely not my area of expertise, but I am doing OK ...
1
vote
0answers
102 views

Windows file compare (FC) spurious differences

I'm getting differences like this: a.txt Betty Davis Cathy Edwards b.txt Betty Davis Cathy Edwards There are only two lines listed in the diff (which doesn't ...
8
votes
2answers
574 views

Using Diskpart in a PowerShell script won't allow script to reuse drive letter

I built a script that mounts (attach) a VHD using Diskpart, cleans out some system files and then unmounts (detach) it. It uses a foreach loop and is suppose to clean multiple VHD using the same ...
1
vote
1answer
69 views

Remove content of file but not the file itself with windows scripting

How do I strip the content of a file without removing the file itself in a windows scripting environment?
0
votes
1answer
72 views

How to check authenticated access to MS Windows machines in a batch

I am checking with nessus the vulnerability status of MS Windows machines on a network I do not manage for which I have received appropriate domain-level credentials. It works but the results I get ...
1
vote
1answer
84 views

Batch rename files [closed]

There are lots of questions asked about batch renaming already, but I think my problem is a bit different. I need to rename a lot of files by switching around the components of the filename. Example: ...
1
vote
1answer
489 views

Obtain device driver version and associated GUID using PowerShell?

Right now, I am getting two separate objects A Win32_NetworkAdapter WMI object A Win32_PnpSignedDriver WMI object In my previous scripts, I've made sure I was calling separate objects, and ...
3
votes
1answer
326 views

Force Close a file not a process

I want to write a script that forces closed a specific file and then copies it from one server to another. To manually do this I would use Administrative Tools --> Computer Management --> Shared ...
4
votes
1answer
284 views

I'm looking for a robust way to determine if a service can be stopped or killed

I'm looking for a robust way to determine if a service can be stopped without data loss or corruption, or if a regular stopping will work if the service can be killed via powershell. I thought about ...
0
votes
0answers
49 views

Securely perform a server reboot through script or application

I have a PC that my customer can access with a simple user. I have a server that can be accessed only by an administrator user from my company. I would like to find a secure way to perform a restart ...
0
votes
1answer
43 views

How to know if execution program is ok at windows?

How to know if execution program is ok at windows? I prepare a bat file that runs several programs and I handle exceptions in case of errors . On linux a program return a code after execution.
2
votes
2answers
1k views

Batch script to run multiple wget commands

I'm trying to create a script that has multiple wget commands that include site credentials to download a file. If I run the wget command individually in a command prompt, the file downloads properly. ...
0
votes
1answer
193 views

Batch file to check version on mass computers

Please help me to create a batch file to run the below command (multiple computers) and the result to a text file. dtcheck "computername" /cmd="version"
2
votes
1answer
6k views

Grant MODIFY on “All Subfolders and Files” with icacls, but only give Read to top level folder

One of our Windows servers that has some user folders on it has some pretty screwed up permissions. What I want it for SYSTEM and Domain Admins to have full control of all folders. I want the users to ...
1
vote
2answers
280 views

Remote Wildcard script mapping from site in IIS 7.5 with powershell

I created a site in IIS 7.5 via Powershell; however, the site inherited the parent handler mappings and one of the wildcard script mappings causes problems for this particular application. Is there a ...
1
vote
1answer
237 views

Can I still < CopyProfile > without the /Generalize arg to the default Profile?

The title is self explanatory. I had to remove the /generalize option when going from my sysprep to OOBE but that has now broken my copy profile. I have read multiple places, that /generalize is ...
4
votes
6answers
3k views

email output of powershell script

I found this wonderful script that outputs the status of the current DFS backlog to the powershell console. This works great, but I need the script to email me so I can schedule it to run nightly. I ...
0
votes
2answers
4k views

How to add a shutdown script (not by using gpedit.msc or active directory)?

I have created a script I want to deploy on my XP workstations as a shutdown script. I know I can add my script as a shutdown script with the UI (gpedit.msc), but I want to automate the deployment of ...
1
vote
3answers
265 views

Update saved password for basic authentication using a script

I have a website that uses basic authentication as described on this webpage. Each of the computers I manage have the password saved in their browser. There is only one username and password for ...
0
votes
2answers
257 views

Add time to Windows script

I have this mini Windows Script which is execute every hour it basically create a file every hour but I need to rename the file using date (which is already done) but I am not able to add the time ...
1
vote
2answers
691 views

Silently install/add a print queue to a Windows client

Does anyone know how I can silently install/add a print queue to a Windows client? The clients are 32-bit Windows XP connecting to a Windows 2008 R2 print server, and I tried using the following ...
6
votes
7answers
2k views

Need a script/batch/program that runs a command that won't be killed when the parent is killed

The scenario I use Zabbix to monitor my servers and recently I wanted to add some more metrics for the Windows ones. For security reasons, I used Zabbix's User Parameter feature, but it limits the ...
3
votes
2answers
8k views

Delete registry key via CMD script?

I'm want to edit an already production .cmd script file, to have the script delete a certain registry key in the Windows registry. Firstly, is this even possible, and secondly (if that's not ...