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

Network binding order‎ without nvspbind

Hi,I am lookingto put anewpossibility, theNICbind orderwithPowerShell.The use of nvspbind isunfortunatelynot an option.$ServerName = "work" $objReg =...

View Article


Powershell to import a computer list and remove an icon

I need to import a list of domain PCs. For each entry, I have to remove a .lnk file from Public Desktop (Win7) and write the results to a .log

View Article


Script Repository "publisher could not be verified" error

Hello,I'm trying to add a script to the script repository, but when I test it to download it, I get the "publisher could not be verified" error. My script is not signed. I do not get this error when...

View Article

Delete multiple AD users from Task Scheduler with PowerShell script

I'm hoping someone can assist with my issue. We have a termination script that will move users to a specific OU, disable the account, and set the expiration date to 60 days from now. That works great...

View Article

Append anything to an email somehow to make it unique

We have a bizarre scenario I am having trouble wrapping my head around, I hope someone can help. I am new here (To my current employer and to script center) and trying to replace this terrible way of...

View Article


mailbox database size before & after backup

Hi there i recently made a similar thread and someone told me that i should do it here so here is my issue :i've been assigned to do a specific report related to exchange and its backup  so what we...

View Article

Get-Aduser(Inactive accounts)

I am able to use the script below just fine and save it to a .csv file. My issue is the distinguished name part, the script adds just part of the distinguished name and cuts off the rest with 3 dots...

View Article

Can I have both static text and the output of an array in the body of an email?

I have been scouring forums for something on this for a while now and have not found a whole lot. I'm trying to send a group of emails out to server owners in our company for a cleanup/consolidation...

View Article


Powershell Results Output

I am using the following script to import a computer list and remove specific desktop icons:Get-Content C:\Data\PS\Imports\24.csv |       ForEach-Object{           Get-Item...

View Article


How to code it in powershell script?

In window 7, there are 2 power switch mode available for selections (balance or eco).I would like to know on whether it is possible to code powershell script to switch those 2 modes within window 7 or...

View Article

Modifying attribute values in Powershell

Hi,I am working on a script that is supposed to modify the value of an AD account attribute should it be blank.The script is suppose to check if there is a value already present which would be either...

View Article

send s/mime encrypted mail with attachment

Hi Guys!I've a tricky challenge.I try to send powershell generated emails with an attachment and - on top - s/mime encrypted.My current state of work:send encrypted emails (without attachment) -...

View Article

Not able to run powershell script?

Under powershell, I get Unrestricted for this commend Get-ExecutionPolicy.When I input .\ABC.psl, it returns not able to recognize '.\ABC.psl' as Cmdlet, number, command or executable file.Location...

View Article


Get-wbsummary FOReach

Hi, please help! i'm sooo close! i run a FOREACH on the function below against 4 servers.  if one of the servers is offline i only get 3 results back, how do i make it spit out a row indicating...

View Article

How to add values to custom powreshell object

Hi Guy I'm new to powershell, i created a custom object via following codes$a ='aaaa' $b ='bbbb' #Create a custom objec to save the output $object = New-Object –TypeName PSObject $object | Add-Member...

View Article


FileSystemWatcher failing to read all new files in directory and hangs -...

Hey guys,        I have FileSystemWatcher app watching for any new files created in a directory and writing a log file of everything new created. This part works great. However, I'm also trying to...

View Article

Error poweshell script (else command)

Hi  I'm trying to make a script to run multiple commands depending on whether the equipment is online or not, but I get an error in the "else".  Any idea? $path = “E:\Inventory\” $serverlist =...

View Article


unlock-adaccount schedule task

how do i run a schedule task with the commandunlock-adaccount -identity "CN..........DC=COM"i need it to run it every 2-3 hours

View Article

Select (copy, move or delete) larger of 2 files

hi all -how do I move (or delete) the larger of 2 files within a directory?I have a bunch of files with same name but different extension, e.g.,  file001.gif; file001.jpg; file002.gif; file002.jpg;I...

View Article

Is it possible to merge cell without specifying a range?

I am running a script with an XLSx function where I can output from multiple script and the output are stored in seprate worksheets. In 2 of my worksheets I have row name for each column, I have...

View Article
Browsing all 15028 articles
Browse latest View live


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