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

PowerShell script issue

Good dayI have an issue with a PS script I am writing to retrieve disk space for all my servers.Script :-----------------------------------------------------------------------------------$date =...

View Article


Scripting dynamic mount/dismount of an HDD partition

I am trying to build a technique to circumvent possible infection of the CyberLock virus. Specifically, I'd like to dynamically mount a backup HDD on a timed schedule, then run the applicable backup...

View Article


parallelize my script to process/move files

hello, I am trying to parallelize my script so that it can run on 8 or more threads, I have a folder that contains 6 million or so files, the script I am using now is extremely slow and only runs on...

View Article

Need help in script deployment

Hi All,<o:p></o:p>I am administering a network of 5000+ desktops and 900+ servers, with a deployment manager used for deploying software and custom packages to all of them. But recently...

View Article

Image may be NSFW.
Clik here to view.

I'm trying to run a powershell cleanup script and its completely failing - help

Here is the script im trying to run.  I'm completely new to powershell.   I'm not worried about the Sending email error as this is in my lab and is unable to communicate with my production...

View Article


vbscript to delete files & folders of remote computer

Hi Greeting, First thing I am not an expert in writing VBScripts. I have a requirement of deleting files & folders of remote systems with just 1 click. I was trying to build below VBScript but...

View Article

random conversation batch file

Hey I'm having trouble creating a batch file that will randomly pick from a list of phrases to answer to a phrase such as,  "hello" then the batch file will choose randomly from a list of answers such...

View Article

Resolve group name to SID

Hello!I havethe following problem:we transfer data from theNAS EMCCelerraon HitachiNAS.The problem isthat the rights toshared foldersCelerraappointed by local groupsCelerra withsnap-in windows,and...

View Article


How can we remove legacy network adapter from Hyper-V virtual machine using...

Hi guys,Please any one help me to remove legacy network adapter from Hyper-V virtual machine using wmi classesin powershell 2.0.  Here we can get powershell script to add legacy network adapter to...

View Article


foreach vs foreach

i'm trying to update the msExchExtensionAttribute16 in AD and because I have a lot of users, I decided to write a script. however i'm stuck if the below will assign a value to...

View Article

Image may be NSFW.
Clik here to view.

Powershell Output Format

Hi everyone,is my first time posting in this group, I hope you can help me because I'm getting crazy with formating in PowerShell.I have a small scripts which shows by screen the total size of server...

View Article

"foreach if..then " not working

after finding the correct syntax,$employeeID=60001 if (Get-ADuser -LDAPfilter "(sAMAccountName=$employeeID)") { echo "found it!" Set-ADuser -Identity $employeeID -Add @{msExchExtensionAttribute16=3000}...

View Article

max length of powerhshell string?

In the docs it says that a string in powershell is a fixed length but it doesn't say how long it is.I need to now that to be able to determine if I Can use a string in my code

View Article


Export-CSV Help Please

Hi Guys, Im have a script to extract the needed data from Printers and save to a file in one column (Version1). What I wanted to do is format the output so that it saves in csv format as a table with...

View Article

Change Theme VBS Not working... Thoughts?

I was asked to move this to scripting... Any help is appreciated.This is the Script we use today for Windows 7, but this does not work for Windows 8 / 8.1.  When running it keeps bringing up the...

View Article


Retrieve a list of all client PC's connected to a Windows 2003 server showing...

I need to retrieve a list of all client PC's connected to a Windows 2003 server showing the computer name and ip address.Is this possible?I have searched the internet but cannot find a...

View Article

BGInfo - IPAdress & Name

Hi @all,is it possible that BGinfo will Show IP-Adress and NetworkAdapter Name on same line?f.e. 192.168.10.10 - vLAN1when yes, how can i create ?THX

View Article


Delete specific word from output

Hello guysMaybe you can help me with a problem. What I'm trying to do is that I can filter or delet a specific word from the output that is writte into $file. My results in the textfile "nslookup2"...

View Article

Script to trigger powerpoint on another PC

The CEO of my company has a 60" display behind his desk.  At any moment he wants to display a quote, picture, or whatever else on the screen.  His skills are limited, but he is pretty good with...

View Article

Bulk user modification in AD

Hello,I have 1000 user in my AD, I have to update everyone's street name, what is best practice, kindly help me with that... I dont want to it manually. Please support, thanks in advance.Swaprakash..

View Article
Browsing all 15028 articles
Browse latest View live


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