Quantcast
Channel: The Official Scripting Guys Forum! forum
Browsing all 15028 articles
Browse latest View live

Move mailbox

HI allI in need to move mailbox from one server to another server.I would like to be point or if anyone has used a PS script to the following that would be appreciated. I would like the PS script to...

View Article


Powershell- how do I find a line in a text file then replace the characters...

I am trying to edit a batch file to edit the SET environment variable on my script. Basically my script is copying one file to another location. I will get the filename of the copied file and then...

View Article


Windows batch script FindStr to search for a string and matching line

Hi Gurus,I've been having some problem in using FIND or FINDSTR command to find a particular string in a log file and return its output with the matching string along with 1 line above and 1 line below...

View Article

Use the “powercfg” command to change the power plan. - Powershell 3.0

Disable screensaver /Never turn off display & HDD when using both AC and DC./Never go to sleep mode including standby and hibernate when using both AC and DC

View Article

I want to compare 2 Printer Servers

I have 2 Windows 2008 r2 Servers (one in the north and another in south of the country), I want to make sure that both servers have same printers and the same drivers, and ip port settings,   Before I...

View Article


Check if any elements in one array exist in the other

Is there any way I can check to see if one array, say $arrayOne, contains any elements from $arrayBase? They may not necessarily contain the same elements, and may be in a different order, so iterative...

View Article

how to validate staus of domain-binding in windows 7

Hello guys,i am currently scripting some things against common issues. One of those issues is an improper domain-bind which must be resolved by doing a rejoin. Sometimes it is easy to see, because the...

View Article

Password expiry notification!

Experts out there !I am running the below script to send out email notification to all AD users whose password is going expire (mainly for the remote users who do not login to domain), below script...

View Article


How do I search for all .mdb files on a server and create a report (or csv...

How do I search for all .mdb and accdb files on a server and create a report (or csv file) that contains the names of the files and the file sizes?Greg Anson

View Article


Powershell Command to identify image files older than a certain date

HI AllI need a script that would be able to identify (not remove) image files on a network share that is older than 2 yrs. Thanks in advance

View Article

Batch script to launch the xml files from set of folder

I need to create a generic batch script to launch the batch  files from any folders and scheduling through windows task sheduler at predefined time.These batch xml files are from financial reporting...

View Article

powershell: run vba script with alternate credentials

How can I run a vba script with alternate credentials? I wrote the following script to convert csv files to xls files and I would like to add a credential parameter to it:Param(...

View Article

Why does Get-Acl return values not useable in Set-Acl?

$Acl =Get-Acl$AclPath$AclAccess=$Acl.Access | Where-Object {!$_.IsInherited }The above code returns permissions like         NT AUTHORITY\Authenticated Users Allow  Modify, Synchronize         NT...

View Article


Changing passwords for scheduled tasks

Has anyone found a way to change passwords on scheduled tasks that works for tasks on 2003, 2008 and 2008R2 either via script/WMI/commandline/programatically.I have tried with schtasks.exe and the...

View Article

Using standard input in this vbs script

At the following technet location they show a script that retrievs the SID with a username and domain.http:...

View Article


Windows XP to Windows 7 user profile move script.

Hey guys I have a huge project that will be all over the country. I have over 1000 machines each with 5 to 10 users in every machine that I need to move data to a server located in Florida.What am I...

View Article

Installing additional PowerShell v3 modules on Windows 8, eg DNS Server module

Is there a way to install PowerShell v3 modules on Windows 8 without having to install the corresponding server management tools / components?Since using the new Commands functionality makes playing...

View Article


Windows 2008 R2, VBS (obj.shell.run) issue?

We recently migrated to 2008 R2 from 2003 and in porting our deployment scripts over have run into an issue with one of our VBS scripts. The script runs locally on the 2008 server under an admin user,...

View Article

Script 2008R2 SP1 QoS bandwidth throttling

Hi,I have a simple QoS rule setup to limit bandwidth to our offsite backup server. Now I want to be able to change the bandwidth assigned to that rule through a script or commandline.I found the...

View Article

Trying to translate a C# snippet (to use itextsharp to convert an html file...

I'm trying to use the iTextSharp library to convert an html doc to a pdf and found a useful C# snippet here itextsharp-to-rescue-converting-html:try { // set the file name string file =...

View Article
Browsing all 15028 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>