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

Deleting one semicolon in the end of a file using Batch script

Hi,I have a file which structure is belowName : a.datValue : abcde; vdeerf;    ;I want to delete only the last semicolon entered in the end of the file.I need a batch script to do this, Can you guys...

View Article


Significant Byte Calculation

Hello All,Whilst not strictly a scripting question, whether anybody can answer or not will decide whether i attempt to write the script! We use a fairly old document management system that, before the...

View Article


Need Help Creating Child Folders for New Users.

Hello Scripting Guys,I'm completely new to scripting and reach out to the experts for assistance.  I have been tasked to come up with a Powershell script that will query Active Directory for any new...

View Article

List XML child nodes with names of parent nodes in CSV file

I am trying to take an XML file with multiple children of the same parent and list them into a CSV file with the parent name. I have been unable to find information on data structures similar to this...

View Article

Get-AdUser error checking

Hi all,I have a script that reads from a CSV and then uses one of the fields to match the username in AD (SamAccountName property).  I need to do some error checking though to stop the script if the...

View Article


Active Directory Query

I'm trying to find a way to search AD to find all users who have the 'userWorkstations' ADSI attribute populated with a certain computer name. (ex. COMPUTER001) Anybody have any ideas?G14TS

View Article

Windows Update Script

I don't want to control my Computers Windows update with Powershell, I want to query all the Servers in my text file list and return,The values for how each servers windows update settings. I have this...

View Article

Powershell will run wmi query but not in a loop

If I run this command I can get the mac address off a pc with no problems. Get-WmiObject -Class Win32_NetworkAdapterConfiguration -Filter IPEnabled=TRUE -ComputerName computer| Select-Object -Property...

View Article


VBScript to logon/off from secured network connections using Windows Credentials

Hi, I am looking for a VB Script to log on/off from secured network folders connecting through Windows Authentication.My reason is that I have local NAS devices which are used for backing up various...

View Article


WScript.Shell on Windows RT

I get an error anything I try to create a wscript.shell object on windows ARM. Do you guys have any workarounds or suggestions? The goal is to enable me to start an application such as notepad.exe from...

View Article

Unable to find hotfix via powershell/command prompt

I've been beating myself up over this...When I use the vbscript below, it can't find hotfix KB2837643. I get "Not find hotfix KB2837643".When I use ps and run get-hotfix, it's not listed in the list...

View Article

vbscript and xml - apparently for dummies

Hi  y’allWriting a vbscript for monitoring purposes I try to get some information out of an XML file.I thought that should be REASONABLY straight forward but I’m now reconsidering that. Started up in...

View Article

Using Task Scheduler for a powershell script on server 2008

I have a powershell script I am trying to run as a scheduled task, but I cannot get it to run. if I run in from within powershell or in an elivated command prompt it runs fine. Task Scheduler says it...

View Article


Unexpected token in in expression or statement (Powershell help?)

#$ConfirmPreference = "None" $H = import-csv \\networkpath\HOL.csv $MB = import-csv \\networkpath\testgroup.csv foreach ($U in $MB) { get-mailbox -identity $U.user | foreach ($sub in $H)     {...

View Article

Script to Delete file with exclusions

We have a requirement to delete all .xls file in a drive apart from certain file with name as Team.xls and Corporate.xlsI have got a script but this is creating all files. I am testing by creating a...

View Article


dont want script to run in W7 but do in XP

I have an issue, i have just started a Windows 7 Migration Project and i was originally brought in to do GPO, now i have bene asked to do something else and i am a little stuck. Basically we still run...

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


DNS suffix for this connection - change

I'm trying to change the DNSDomain but it doesn't seem to be working with the below script. any ideas?Get-WmiObject -Class Win32_NetworkAdapterConfiguration -Filter IPEnabled=true -ComputerName . |...

View Article

VB Script

Hello, I created a vb script to automate mouse clicks for an application. The script works all along but the last line is not working. I am really confused why would that be if the rest of it is...

View Article

VBScript and Telnet

Below is my script. Basically it is a sample script. I use it to test run the VBScript and Telnet. I has been working for a while. Then it stopped working. When I go to the command prompt and manually...

View Article
Browsing all 15028 articles
Browse latest View live


Latest Images

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