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

How to automate dates in a Quest Powershell script?

HiI have this script:Add-PSSnapin Quest.ActiveRoles.ADManagementGet-QADUser -SizeLimit 0 -CreatedAfter (Get-Date 12/12/2013) -CreatedBefore (Get-Date 13/12/2013) -IncludedProperties...

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


VBScript to remotely collect the version version of a file is failing on most...

Hi,I'm trying to write a vbscript to poll each of my 300 servers and give me the version number for a specified file so I know if they are running the correct executable. I first check if the OS is 64...

View Article

Script ADSIEdit

Our organization is implementing Cisco Presence.  Like MS UC, Presence requires a SIP address but it seems that Cisco's instructions for configuring this is to use ADSIEdit - for every user OU. I could...

View Article

help, no success using any method of sending this complex string to file

I am using powershell to build sql to manipulate data in tables. it works but instead of copy/paste the output into a file from the console, I want to output to a file. The output line includes strings...

View Article


Powershell - Select-Object -Unique vs Group-Object

Hi,I have the following problem with powershell.I have a list of strings call it $machine_list which I know there are duplicates.The following  code produces the following output:#...

View Article

Using Powershell to get NIC settings

I have been searching for this for a while now to no avail.  I need to write a powershell script that returns the specific NIC settings for all NICs on a server.  This is the first leg in a larger...

View Article

How to recognize string in txt file and set it as variable

Hi, I have txt file and somwhere in it string starting with:data directory....:How (using batch file) find it in the text, read and set the value as a variable? I mean the string is:data directory....:...

View Article


Batch file extracting all files from nested archives

I have managed to leverage a powerful forfiles command line utility with the mighty 7z compression program.Below is a simple batch file extracting all files from nested archives hidden at any depth...

View Article


Make batch/vbscript do something if removable disks exist, how to do this?

I already know how to check if theres removable disks connected with cmd with the following command: wmic logicaldisk where drivetype=2 get deviceid, volumename, description but now I would like to...

View Article

Help with a script - How to identifiy name of Admin Groups

Hello,I have this script below.Someone can help me and explain me how to add a way to dynamically fill the name of Administrators group depending of the computer (for some computers it's...

View Article

Shutdown abort batch script fails to run at shutdown/logoff or too slow

EDIT:I have made some progress since what I wrote earlier! I have succeeded in running the script while shutting down and logging out and also been able to make the script visible by changing some...

View Article

PowerShell Console Outputs

HiIs there an easy way to prevent certain functions from not appearing in the console output text? I have some 'reboot' functions and I want to basically run the functions but not show any data in my...

View Article


Get-ChildItem Issue With Variable

I hope some very clever person out there can resolve this without even thinking, however my brain seems to be blocked.$FileVersion=...

View Article

How to monitor an entire folder tree for new files with PowerShell?

Hey guys,I am still a PowerShell noob and I have seen this blog post for monitoring a folder for new files.I was wondering how easy it would be to modify it so that rather than montoring the specified...

View Article


Little help for a novice - Need a ps script to list user with their email only.

Hi,I need to extract every month the user list which have their email information on it, so i don't need to extract the user services etc from the AD.Today, i'm using this script i made :clear-host...

View Article

Automate User creation using PowerShell ShowUI

What I would like to do is create a GUI to create users in AD.  The following is what I need it to do.1. Need to copy another user to get the group information2. needs to add address, Telephone#, IP...

View Article


Changeing preferences on network printer queue with Powershell

Hi,I found a script on this page - http://gallery.technet.microsoft.com/scriptcenter/878e6bac-e2a1-4502-9333-5b1420f8b957 - that I am trying to adapt to work on my users computers and not only on...

View Article

How to check if a specific file exist and which exit code to use ?

Hi, First I'm not a scripting guy and I know almost nothing about VB scripting.I have a deployment of 6 tasks and I want to make sure that step # 2 will not be process if it failed in step #1, and so...

View Article

Install a software on a list of machines remotely

hi Sir,I have a list of machines on which i need to install one software (Ex - a anti-virus, who's setup is on my server location\\servername\anti-virusetup.exe). The setup will be present on my...

View Article
Browsing all 15028 articles
Browse latest View live


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