Network binding order without nvspbind
Hi,I am lookingto put anewpossibility, theNICbind orderwithPowerShell.The use of nvspbind isunfortunatelynot an option.$ServerName = "work" $objReg =...
View ArticlePowershell 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 ArticleScript 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 ArticleDelete 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 ArticleAppend 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 Articlemailbox 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 ArticleGet-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 ArticleCan 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 ArticlePowershell 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 ArticleHow 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 ArticleModifying 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 Articlesend 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 ArticleNot 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 ArticleGet-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 ArticleHow 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 ArticleFileSystemWatcher 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 ArticleError 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 Articleunlock-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 ArticleSelect (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 ArticleIs 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