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

vbscript to copy file to another folder by taking backup of old file

Hi Guys..Can you help me out ..I vant to move the file named as RAJA from c drive to d drive.now i want to take a bac-up of existing file raja in d-drive vith a date(for example file name is raja it...

View Article


PowerShell Multiple Choice Menu

Building further on menu script that Bill_Stewart posted @ below link; Taking that as example, I want to tweak it so that I can select 'A' AND 'C' (more than one) choices and script should run BOTH...

View Article


VBS Expected Statement error

IHi there:Hi there:I am trying to build an XML file from a string and I am getting a Expected Statement Error.  I am not sure what is wrong that would cause this error with a simple loop for a bar...

View Article

Powershell Script to export AD data

Hi all, I am a newbie to the world of powershell scripting and I have been looking around at other users scripts but none quite fit the bill.  I am looking to retrieve the following data from AD and...

View Article

To create event log server

Hi,I want to create a event log server at my data center, I mean, I want to collect the event logs from all my servers and manage the logs centrally, please guide me the steps for this.Swaprakash..

View Article


iisapp equivalent in Powershell

Hello, We're in the process of upgrading our web servers from Windows 2003 to Windows 2008R2 and I'm learning Powershell in the process. I wanted to know if there is an equivalent command to iisapp, as...

View Article

Streaming basics - reading large file from RESTful API

Hey all - My command of PowerShell is pretty rudimentary, though I have written a number of scripts.  In a recent example, I was trying to redirect the output of my firm's RESTful API - a small .txt...

View Article

Batch file to connect to remote desktop session help!

The Problem: Ive got this script in a batch file :? Batch file: cmdkey /generic:"servername" /user:"user id" /pass:"password" mstsc /v:"servername" , which logs me into a remote server (remote desktop...

View Article


URGENT!!!! How to list users from a content of groups in Quest PowerShell!...

Hi everybodyI have this script:$out = @()Get-Content D:\Tools\Reportes_Power_Shell\Contenedor_Power_Shell\Users.txt | ForEach {    $date = (Get-Date).ToString()    $username = $_    $displayName =...

View Article


PowerShell Difference between Set-StrictMode V2,V3,V4.

Could somebody please explain the difference between setting Set-Strictmode -Version 2, -Version 3, and -Version 4, as opposed to just using -Latest?

View Article

Removing ReadOnly attribute for folder

Hi Everyone,I am trying to remove the ReadOnly check mark from a folder. I have used the VBscript option and the script is below. The script executes, but does not remove the check mark' Modify Folder...

View Article

CMD line to delete domain group from a local machine

I want to delete a domain secuirty group from my local machine. The security group name is XYZ\Desktop Administrator where XYZ is a domain.I tried to delete it using the command line:1. net localgroup...

View Article

Creating/Working With Nullable Objects in PowerShell - How?

Hi,how do I create and work with Nullable objects in PowerScript.None of the tips I found worked:> ([System.Nullable[System.Int32]]1).GetType().Name Int32>...

View Article


How can I send an email when a function returns false?

Im trying to make this code work, but i still receive an email when the function is equal to false. Can anyone assist me in finding the issue? What the program does is look for servers that has a set...

View Article

I have a script that works with no issues in XP but fails every time in...

All the script is supposed to do is get the ip address of the client and add .5 to the last octet passing this ip address through to remote desktop. It performs fine in XP but fails on a join error in...

View Article


Multidimensional array with start-job

Hi! I'm trying to improve a script that will read in a CSV file to an array, divide it up to 4 chunks. So I will have 4 arrays and inside each array I have properties for computername, ip addresses and...

View Article

gpupdate /force

I'd like to run the command gpupdate /force on a remote system and display the results using powershell.

View Article


Search ID's with a pop up message box using VBScript via folder...

I have really no idea where to start and end because I am really very new to scripting world. I have done a few simple VBScript and Batch file scripting but not as complicated as this task. I need to...

View Article

Looking for Boe Prox

Boe Prox,I found a script of yours called Get-ProductKey for powershell and as I was the unlucky one in the company to get this dropped on let me outline the problem:We need to find a product key for...

View Article

script keeps freezing at same spot

when running scripts i keep coming across the following issue - for example, if i run a script to gather the computer name, model, serial number etc from AD it gets stuck on 1 pc-- multiple scripts...

View Article
Browsing all 15028 articles
Browse latest View live


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