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

Pseudo Server performance

I have a number of small offices that are using a windows XP computer as a file server.  The problem arises when someone turns off the 'server' instead of simply logging off.  I would like a script...

View Article


XML Namespace and PowerShell

I am trying the following: [[System.Xml.XmlNamespaceManager] $nsm = $meta.NameTable $nsm.AddNamespace($null, "http://schemas.microsoft.com/ado/2009/11/edm") $nsm.AddNamespace("edmx",...

View Article


Convert Functions to Powershell from VBScript

Is there an easy way to convert these two functions to powershell functions?Function checkProcessAndWait(strProcessName)    Dim i    ' Check if setup is running    For i = 0 to 30        If...

View Article

Function Call Help

Good Afternoon,I am trying to call a function based on a conditional statement. If True the script is supposed to run a file that coincides with the correct function. So far this is what I have and it...

View Article

Copy Group Members excluding existing members

I use this script to copy members from one group to another. I need to update it to ignore members that are already a member of the destination group. Otherwise it crashes when it encounters a user...

View Article


SCCM Fix Bat File command Help

Ok have this Bat file and it may hang on the second part of the install how to time this out and allow this to continue.@echo off set /p adminid=Enter admin ID: if "%adminid%"=="" goto error1 set /p...

View Article

Script: Check activation status and activate if not

Hello,I know a script like this must exist out there, but I have been unable to find it through searching.What I'm looking for is a script that will run as a machine start up script, check the license...

View Article

Set-ACL folder permissions across domain

I work at a school where we have two different domains.  Lets call them staff and students to keep it simple.  The student domain trusts the staff domain, but the staff doesn't trust the student (this...

View Article


Get IP of the first NIC on a server

All servers have Private static IP and I'm trying to get the IP of the first NIC in the binding order withing the range of 10.0.0.0 - 10.255.255.255        $IP = Get-WmiObject...

View Article


Query for expiration date of AD user accounts within "x" number of days

Hello Everyone,I'm not big on scripts, but was wondering if there is a vb script I could use to scan my AD domain for accounts that will expire in a set amount of days? (ex. 30, 15, or 7 days) I would...

View Article

Assign a Static IP Address to User

Is there a way to assign a static IP address to users form command line in Windows Server?I mean, in Windows Server 2003, VPN server, how to set a value from command-line to a "Assign a Static IP...

View Article

VB Script to connect to a specific Domain Controller and launch AD User &...

Hi,I am looking for VB script to connect to a specific domain controller and launch Active Directory User and Computers. We are having several DCs spanned over distant location and the current...

View Article

batch file to check for os versions

what command should i use to check for os versions?windows xp, windows 7, windows 2008,R2, 2012?

View Article


Compare Two CSV Files.

Hi,I have two csv files as shown below.CSV1             COLA    COLB1700 8 1800 4 1800 13 3100 12 3100 13CSV 2COL A   COL B 1700 17 1700 8 1701 14 1800 3 3100 12 3100 13 3100 14 3100 15 3100 5 3100 6I...

View Article

Compare Two CSV Files.

Hi,I have two csv files as shown below.CSV1             COLA    COLB1700 8 1800 4 1800 13 3100 12 3100 13 CSV 2COL A   COL B 1700 17 1700 8 1701 14 1800 3 3100 12 3100 13 3100 14 3100 15 3100 5 3100 6I...

View Article


Self-Service Portal for developers and testers to execute DevOps's PowerShell...

Goal:  Offload Operations team and let devs and QA teams to execute basic tasks such as : - reset IIS - compare folders on two servers (to make sure that released build is sync'ed on load-balanced...

View Article

How to combine AD Properties & Exchange Properties to get a script of Mailbox...

Dear Script Experts,I am in a need of scripting for the Exchange mailbox size reporting purpose,1. Report should contain Column of Users' Mailbox Size, Email ID, Alias - Need to pull from exchange...

View Article


Filename compare and move

This one isn't so straight forward or I would be asking, :-)... I have a directory with files and need to do a compare and move a file that matches my search and move it. Here's what I've got, there...

View Article

Set-Printer cmdlet - Not applying on Default Setting? - Server 2012

Hello everyone,I'm using powershell cmdlet from 2012 Server to automate print queues configuration on other servers. I managed to use Get-PrinterConfiguration and Set-PrinterConfiguration to apply...

View Article

Newbie Question

I am a complete newbie to batch scripting, so I hope this question isn't totally "dumb."  I have a .txt file that includes three columns.  The first column contains ID numbers of students, the second...

View Article
Browsing all 15028 articles
Browse latest View live