1
vote
1answer
46 views

Trying to list out Web services, Web sites, and App Pools - Windows Server 2003

I am curious on how i would list out Web services, Web sites, and App Pools to a .txt file on a Windows Server 2003 machine. I have Powershell 2.0 configured and have been trying to run some scripts ...
11
votes
8answers
720 views

Expire Files In A Folder: Delete Files After x Days

I'm looking to make a "Drop Folder" in a windows shared drive that is accessible to everyone. I'd like files to be deleted automagically if they sit in the folder for more than X days. However, it ...
0
votes
0answers
41 views

Difference between isntalling a msi using “Invoke-WmiMethod”(via a cmd file) and installing directly on the server

Ran against a server to install the msi; eventlogs were clean and all success; but the key file in bin direstory is still old. Later tried installing it directly doing a double click by RDP into the ...
0
votes
1answer
1k views

Using Powershell to Create Exchange Contacts from a .CSV file

What I would like to do is use a Powershell script to create Contacts within a certain folder in Active Directory from a .csv file. This script should allow me to create the first part of an email ...
1
vote
2answers
547 views

Delegate permissions to Admins for Password reset and “Change password on next logon” in AD

Hello i created taskpads for remote admins to reset passwords for folks at their site.I created a group for admins and gave delegation on site OU. The problem is for doing "force change password on ...
0
votes
1answer
164 views

Script to Uninstall MS Updates by Date

I'm in a situation where I need to uninstall all windows updates before a certain date to troubleshoot a strange bug. I found several vb/ps scripts to do this remove single update However I'm ...
1
vote
3answers
166 views

Does Windows 2012 Server needed to be a Domain Controler for Using it as AD Webservices for Powershell

I am trying to achieve the make use of AD administrative commands such as "Get-ADUser" and "Get-ADComputer" via Powershell. All our domain controllers are Windows 2003 and we have one Windows 2012 ...
1
vote
1answer
189 views

Using Powershell command New-AUDser to set -HomeDrive and -HomeDirectory

I'm trying to create a new user in AD with the New-ADUser command. When i look in the Users and Computers gui, all the parameters i've passed through powershell, is populated to correct fields, ...
1
vote
1answer
126 views

legitimacy of the tasks in the task scheduler

Is there a way to know the source and legitimacy of the tasks in the task scheduler in windows server 2008 and 2003? Can I check if the task was added by Microsoft (ie: from sccm) or by a 3rd party ...
0
votes
1answer
69 views

Using Powershell to migrate folder rights to another server [closed]

I am interested in finding Powershell scripts that can be used\tweaked to migrate folder permissions across servers\environments. Is this a feasible approach? I would like to automate our deployment ...
1
vote
1answer
813 views

Get-WinEvent only works on Vista+ as source and target?

I originally assumed Get-WinEvent cannot be executed on Windows 2003, i.e. source computer must be Vista or later OS. However, it can be ran against a Windows 2003, from a Vista+ computer. It appears ...
2
votes
1answer
332 views

How does the “Last Result” column of Scheduled Tasks in Windows Server 2003 get set from a process or script?

The Last Result column of the Scheduled Tasks Window on Windows Server 2003, displays the result of the execution of the .exe, .vbs, .ps1, .bat, .cmd, etc... that has been run at the scheduled time. ...
1
vote
1answer
117 views

How to relaunch a powershell script if it dies?

I have a powershell script I want to use to monitor the size of a file (at a certain interval) and send me an email alert if the file reaches a certain size. However, after it discovers that the file ...
4
votes
3answers
3k views

Manage Windows 2003 ad domain with powershell?

Can you manage a Windows 2003 functional domain with the AD powershell modules? I have read that you must install the AD management gateway service to do this, but what if you do not have any Windows ...
0
votes
1answer
409 views

Powershell Script Scheduled Task Stopped Running (Could not Start)

I'm running a scheduled task (for Powershell Script) on Windows 2003 Server. I believe the script works fine. The task is scheduled to run every 10 minutes from 7:00am to 11:50pm everyday. However, it ...
3
votes
1answer
250 views

How to monitor a Windows process' working set greater than 4GB?

Apparently the .NET framework has a bug that prevents working set values above 2GB from accurately being determined. Between 2 and 4GB one can apply some xor-ing calculation to obtain the value, but ...
-1
votes
1answer
66 views

Automate Monitor string in different log files

I have few log files in different servers and I want to check output in the end of those log files for e.g . success: 4000 failed: 200 These logs files are getting generated daily and I have to keep ...
3
votes
3answers
2k views

How to export all System event logs of a definite time period

I am working on a Windows Server 2003 SP2 with Powershell v2, and I am looking for a way to export all System event logs of a definite time period, (say, from Saturday 2000 hours to Sunday 1100 ...
2
votes
3answers
318 views

Copy-Item not working as expected

I cant figure out what I am doing wrong with this command and would like another set of eyes to point it out. I want to copy the directory structure but not the files the structure contains. ...
1
vote
1answer
658 views

Powershell window preventing shutdown

If I have a PowerShell window (at the PS command prompt) on display it prevents the computer shutting down. i.e. if I open a powershell window and then try to shutdown the server, I get the End ...
0
votes
1answer
101 views

Running external programs from PowerShell results in error. Why?

I have a PowerShell script that starts several external programs and batch files. All of calls worked fine on my Windows XP/PowerShell 2.0 machine. On a Windows Server 2003/PowerShell 1.0, however, ...
5
votes
2answers
1k views

Issues with patching servers remotely using winrm and Microsoft.Update.Session

I have a network with windows 2003, 2008 and 2008r2 servers. I have a powershell script that I wrote to patch a local machine using the "Microsoft.Update" com objects. (Similar to Windows Update ...
0
votes
0answers
313 views

Win32_Process Create returns error 3 - Insufficient Privileges. Options

I've been trying to remotely create a process using WMI (through PowerShell) and i'm experiencing some trouble : The details : Remote Server : Windows 2003 R2 (Domain controller). Local ...
2
votes
4answers
239 views

possible efficient ways of transferring files from one server to another

what are the possible good and efficient ways of transferring files from one server to another? In this case it will be from windows server 2003 to windows server 2008 r2. I am thinking Powershell ...
1
vote
1answer
2k views

List _all_ AD user properties with powershell

We have a former Win2k AD domain, which is migrated to W2k3 servers, and has a slew of schema extensions (Exchange, msSFU, and self-defined) from the past and various parts of the forest. Searching ...
0
votes
1answer
495 views

Discover network drives users have manually mapped via remote script

I am trying to write a script that will pull computer names from a text file, then query the remote registrys for any subkeys under hkey_users\SID\network. Then translate the SIDs into the username ...
0
votes
1answer
177 views

Uninstalling PowerShell 1.0

I am attempting to standardize our PowerShell deployment and usage across all servers, which involves uninstalling PS1.0/installing PS2.0 on Server 2003 machines. In searching for KB926139 through CMD ...
1
vote
1answer
290 views

Can powershell be used to install SMTP service for IIS 6 and configure the options

I want to install the SMTP service for IIS 6 on windows server 2003. The GUI process is explained here on technet. Then I want to configure the properties (e.g. first retry interval) and create new ...
2
votes
1answer
2k views

Changing file Ownership with PowerShell 2.0

We have an issue with a file server, whenever a user account is deleted the ownership of his/her files returns to their SID number, which shows up in our report as unknown. Has anyone found a way to ...
0
votes
2answers
279 views

Powershell v2 script need some help

I have a powershellv2 script for starting services but I can't get it to work propparly I know the start-service command only works localy but I can't seem to get the (gwmi win32_service -computer ...
2
votes
2answers
433 views

Recursive CMD or BAT Windows Script

How can I create a BAT or CMD which will iterate through a folder tree and run same command agaists each folder file? E.g myexe.exe C:\Documents and Settings\folder1\filename.txt myexe.exe ...
2
votes
2answers
3k views

How to run powershell script as Logon/logoff script on Windows 2003?

I've installed PowerShell Version 1.0 on my Windows 2003 server. How do I run a PowerShell script during logon or logoff event? I tried this through Local Computer policy>User ...
0
votes
2answers
81 views

Which tool / technology: System management for databases and dependent services

I'm looking for advice on how to enable our team to take down and re-start our company systems for maintenance purposes. The scenario includes several Oracle db machines several MS SQL Server ...
0
votes
2answers
842 views

How do I check for available “Automatic Updates” via script / cli

I asked this on superuser, but I think this may have been a more apropriate place. We are trying to automate server reboots, but one of the "gotchas" we are running into are that they want us to ...
3
votes
2answers
1k views

Printer monitoring script (PowerShell)

I am going to write a script of some sort to check event viewer in a windows server 2003 for all printjobs, and then write them to a comma delimited textfile like printername_floor_room.txt I am ...
3
votes
2answers
1k views

How to get DNS SERVER Statistics ? Total Queries per day ? (windows Server 2003)

Using a script (powershell for example) How can i get the total Queries on a DNS Server (Windows Server 2003 - Active Directory Environment) ? Thanks
0
votes
3answers
794 views

Console apps don't work in Powershell

I've inherited a Windows Server 2003 r2 box. I've got a Powershell script that I'd need to get running on the machine, but something seems terribly wrong with the system. For example, opening a ...
1
vote
1answer
216 views

Resource Lock and the Power Shell

is there a way to use the windows power shell to trace what application has a resource lock on a file? Here is what i am looking for: A command line or script to show the application that has a ...
37
votes
22answers
13k views

PowerShell? Do you use it? Can you show me some cool system administration things I can do with it?

I keep reading everywhere that PowerShell is the way of the future. When it was first released I did a whole bunch of virtual labs, but since then I still haven't used it in a production environment. ...